@tamagui/alert-dialog 2.0.0-rc.9 → 2.0.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.
- package/dist/cjs/AlertDialog.cjs +230 -227
- package/dist/cjs/AlertDialog.native.js +312 -313
- package/dist/cjs/AlertDialog.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/AlertDialog.mjs +199 -198
- package/dist/esm/AlertDialog.mjs.map +1 -1
- package/dist/esm/AlertDialog.native.js +277 -281
- package/dist/esm/AlertDialog.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/AlertDialog.mjs +199 -198
- package/dist/jsx/AlertDialog.mjs.map +1 -1
- package/dist/jsx/AlertDialog.native.js +312 -313
- package/dist/jsx/AlertDialog.native.js.map +1 -1
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/package.json +21 -22
- package/types/AlertDialog.d.ts +14 -14
- package/dist/cjs/AlertDialog.js +0 -209
- package/dist/cjs/AlertDialog.js.map +0 -6
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -6
- package/dist/esm/AlertDialog.js +0 -209
- package/dist/esm/AlertDialog.js.map +0 -6
- package/dist/jsx/AlertDialog.js +0 -209
- package/dist/jsx/AlertDialog.js.map +0 -6
package/dist/esm/index.js.map
CHANGED
package/dist/jsx/AlertDialog.mjs
CHANGED
|
@@ -1,220 +1,221 @@
|
|
|
1
1
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
|
-
import { isWeb } from "@tamagui/constants";
|
|
3
|
-
import { Slottable, View, createStyledContext, styled } from "@tamagui/core";
|
|
2
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
3
|
+
import { Slottable, View, createStyledContext, isTamaguiElement, styled } from "@tamagui/core";
|
|
4
4
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@tamagui/dialog";
|
|
5
5
|
import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
|
|
6
|
+
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
6
7
|
import * as React from "react";
|
|
8
|
+
import { Alert } from "react-native-web";
|
|
7
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
const getAlertDialogScope = scope => scope
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (props.__native) {
|
|
16
|
-
const {
|
|
17
|
-
__native,
|
|
18
|
-
onPress,
|
|
19
|
-
__onPress,
|
|
20
|
-
...rest
|
|
21
|
-
} = props;
|
|
22
|
-
return /* @__PURE__ */jsx(NativeAlertDialogTriggerFrame, {
|
|
23
|
-
...rest,
|
|
24
|
-
onPress: composeEventHandlers(onPress, __onPress)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
10
|
+
const getAlertDialogScope = scope => scope;
|
|
11
|
+
const ROOT_NAME = "AlertDialog";
|
|
12
|
+
const NativeAlertDialogTriggerFrame = styled(View, {
|
|
13
|
+
name: "AlertDialogTrigger"
|
|
14
|
+
});
|
|
15
|
+
const AlertDialogTrigger = NativeAlertDialogTriggerFrame.styleable(function AlertDialogTrigger2(props, forwardedRef) {
|
|
16
|
+
if (props["__native"]) {
|
|
27
17
|
const {
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
__native,
|
|
19
|
+
onPress,
|
|
20
|
+
__onPress,
|
|
21
|
+
...rest
|
|
30
22
|
} = props;
|
|
31
|
-
return /* @__PURE__ */jsx(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
ref: forwardedRef
|
|
23
|
+
return /* @__PURE__ */jsx(NativeAlertDialogTriggerFrame, {
|
|
24
|
+
...rest,
|
|
25
|
+
onPress: composeEventHandlers(onPress, __onPress)
|
|
35
26
|
});
|
|
27
|
+
}
|
|
28
|
+
const {
|
|
29
|
+
scope,
|
|
30
|
+
...triggerProps
|
|
31
|
+
} = props;
|
|
32
|
+
return /* @__PURE__ */jsx(DialogTrigger, {
|
|
33
|
+
scope: getAlertDialogScope(scope),
|
|
34
|
+
...triggerProps,
|
|
35
|
+
ref: forwardedRef
|
|
36
36
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
});
|
|
38
|
+
const AlertDialogPortal = function AlertDialogPortal2(props) {
|
|
39
|
+
const {
|
|
40
|
+
scope,
|
|
41
|
+
...portalProps
|
|
42
|
+
} = props;
|
|
43
|
+
return /* @__PURE__ */jsx(DialogPortal, {
|
|
44
|
+
scope: getAlertDialogScope(scope),
|
|
45
|
+
...portalProps
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const AlertDialogOverlay = styled(DialogOverlayFrame, {
|
|
49
|
+
name: "AlertDialogOverlay"
|
|
50
|
+
}).styleable(function AlertDialogOverlay2(props, forwardedRef) {
|
|
51
|
+
const {
|
|
52
|
+
scope,
|
|
53
|
+
...overlayProps
|
|
54
|
+
} = props;
|
|
55
|
+
return /* @__PURE__ */jsx(DialogOverlay, {
|
|
56
|
+
scope: getAlertDialogScope(scope),
|
|
57
|
+
...overlayProps,
|
|
58
|
+
ref: forwardedRef
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const CONTENT_NAME = "AlertDialogContent";
|
|
62
|
+
const {
|
|
63
|
+
Provider: AlertDialogContextProvider,
|
|
64
|
+
useStyledContext: useAlertDialogContentContext
|
|
65
|
+
} = createStyledContext({}, "AlertDialogContext");
|
|
66
|
+
const AlertDialogContent = React.forwardRef(function AlertDialogContent2(props, forwardedRef) {
|
|
67
|
+
const {
|
|
68
|
+
scope,
|
|
69
|
+
children,
|
|
70
|
+
...contentProps
|
|
71
|
+
} = props;
|
|
72
|
+
const dialogScope = getAlertDialogScope(scope);
|
|
73
|
+
const contentRef = React.useRef(null);
|
|
74
|
+
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
75
|
+
const cancelRef = React.useRef(null);
|
|
76
|
+
return /* @__PURE__ */jsx(DialogWarningProvider, {
|
|
77
|
+
contentName: CONTENT_NAME,
|
|
78
|
+
titleName: TITLE_NAME,
|
|
79
|
+
docsSlug: "alert-dialog",
|
|
80
|
+
children: /* @__PURE__ */jsx(AlertDialogContextProvider, {
|
|
53
81
|
scope,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
children,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
composedRefs = useComposedRefs(forwardedRef, contentRef),
|
|
76
|
-
cancelRef = React.useRef(null),
|
|
77
|
-
destructiveRef = React.useRef(null);
|
|
78
|
-
return /* @__PURE__ */jsx(DialogWarningProvider, {
|
|
79
|
-
contentName: CONTENT_NAME,
|
|
80
|
-
titleName: TITLE_NAME,
|
|
81
|
-
docsSlug: "alert-dialog",
|
|
82
|
-
children: /* @__PURE__ */jsx(AlertDialogContextProvider, {
|
|
83
|
-
scope,
|
|
84
|
-
cancelRef,
|
|
85
|
-
destructiveRef,
|
|
86
|
-
children: /* @__PURE__ */jsxs(DialogContent, {
|
|
87
|
-
role: "alertdialog",
|
|
88
|
-
"aria-modal": !0,
|
|
89
|
-
scope: dialogScope,
|
|
90
|
-
...contentProps,
|
|
91
|
-
ref: composedRefs,
|
|
92
|
-
onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, event => {
|
|
93
|
-
event.preventDefault(), isWeb && cancelRef.current?.focus({
|
|
94
|
-
preventScroll: !0
|
|
95
|
-
});
|
|
96
|
-
}),
|
|
97
|
-
onPointerDownOutside: event => event.preventDefault(),
|
|
98
|
-
onInteractOutside: event => event.preventDefault(),
|
|
99
|
-
children: [/* @__PURE__ */jsx(Slottable, {
|
|
100
|
-
children
|
|
101
|
-
}), process.env.NODE_ENV === "development" && /* @__PURE__ */jsx(DescriptionWarning, {
|
|
102
|
-
contentRef
|
|
103
|
-
})]
|
|
104
|
-
})
|
|
82
|
+
cancelRef,
|
|
83
|
+
destructiveRef: React.useRef(null),
|
|
84
|
+
children: /* @__PURE__ */jsxs(DialogContent, {
|
|
85
|
+
role: "alertdialog",
|
|
86
|
+
"aria-modal": true,
|
|
87
|
+
scope: dialogScope,
|
|
88
|
+
...contentProps,
|
|
89
|
+
ref: composedRefs,
|
|
90
|
+
onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, event => {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
if (isWeb) cancelRef.current?.focus({
|
|
93
|
+
preventScroll: true
|
|
94
|
+
});
|
|
95
|
+
}),
|
|
96
|
+
onPointerDownOutside: event => event.preventDefault(),
|
|
97
|
+
onInteractOutside: event => event.preventDefault(),
|
|
98
|
+
children: [/* @__PURE__ */jsx(Slottable, {
|
|
99
|
+
children
|
|
100
|
+
}), process.env.NODE_ENV === "development" && /* @__PURE__ */jsx(DescriptionWarning, {
|
|
101
|
+
contentRef
|
|
102
|
+
})]
|
|
105
103
|
})
|
|
106
|
-
})
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
ref
|
|
189
|
-
});
|
|
190
|
-
}),
|
|
191
|
-
DescriptionWarning = ({
|
|
192
|
-
contentRef
|
|
193
|
-
}) => (process.env.NODE_ENV === "development" && React.useEffect(() => {
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
const TITLE_NAME = "AlertDialogTitle";
|
|
108
|
+
const AlertDialogTitle = styled(View, {
|
|
109
|
+
name: TITLE_NAME
|
|
110
|
+
}).styleable(function AlertDialogTitle2(props, forwardedRef) {
|
|
111
|
+
const {
|
|
112
|
+
scope,
|
|
113
|
+
...titleProps
|
|
114
|
+
} = props;
|
|
115
|
+
return /* @__PURE__ */jsx(DialogTitle, {
|
|
116
|
+
scope: getAlertDialogScope(scope),
|
|
117
|
+
...titleProps,
|
|
118
|
+
ref: forwardedRef
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
const DESCRIPTION_NAME = "AlertDialogDescription";
|
|
122
|
+
const AlertDialogDescription = styled(View, {
|
|
123
|
+
name: DESCRIPTION_NAME
|
|
124
|
+
}).styleable(function AlertDialogDescription2(props, forwardedRef) {
|
|
125
|
+
const {
|
|
126
|
+
scope,
|
|
127
|
+
...descriptionProps
|
|
128
|
+
} = props;
|
|
129
|
+
return /* @__PURE__ */jsx(DialogDescription, {
|
|
130
|
+
scope: getAlertDialogScope(scope),
|
|
131
|
+
...descriptionProps,
|
|
132
|
+
ref: forwardedRef
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
const AlertDialogAction = styled(View, {
|
|
136
|
+
name: "AlertDialogAction"
|
|
137
|
+
}).styleable(function AlertDialogAction2(props, forwardedRef) {
|
|
138
|
+
const {
|
|
139
|
+
scope,
|
|
140
|
+
...actionProps
|
|
141
|
+
} = props;
|
|
142
|
+
return /* @__PURE__ */jsx(DialogClose, {
|
|
143
|
+
scope: getAlertDialogScope(scope),
|
|
144
|
+
...actionProps,
|
|
145
|
+
ref: forwardedRef
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
const AlertDialogCancel = styled(View, {
|
|
149
|
+
name: "AlertDialogCancel"
|
|
150
|
+
}).styleable(function AlertDialogCancel2(props, forwardedRef) {
|
|
151
|
+
const {
|
|
152
|
+
scope,
|
|
153
|
+
...cancelProps
|
|
154
|
+
} = props;
|
|
155
|
+
const {
|
|
156
|
+
cancelRef
|
|
157
|
+
} = useAlertDialogContentContext(scope);
|
|
158
|
+
const ref = useComposedRefs(forwardedRef, cancelRef);
|
|
159
|
+
return /* @__PURE__ */jsx(DialogClose, {
|
|
160
|
+
scope: getAlertDialogScope(scope),
|
|
161
|
+
...cancelProps,
|
|
162
|
+
ref
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
const AlertDialogDestructive = styled(View, {
|
|
166
|
+
name: "AlertDialogDestructive"
|
|
167
|
+
}).styleable(function AlertDialogDestructive2(props, forwardedRef) {
|
|
168
|
+
const {
|
|
169
|
+
scope,
|
|
170
|
+
...destructiveProps
|
|
171
|
+
} = props;
|
|
172
|
+
const {
|
|
173
|
+
destructiveRef
|
|
174
|
+
} = useAlertDialogContentContext(scope);
|
|
175
|
+
const ref = useComposedRefs(forwardedRef, destructiveRef);
|
|
176
|
+
return /* @__PURE__ */jsx(DialogClose, {
|
|
177
|
+
scope: getAlertDialogScope(scope),
|
|
178
|
+
...destructiveProps,
|
|
179
|
+
ref
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
const DescriptionWarning = ({
|
|
183
|
+
contentRef
|
|
184
|
+
}) => {
|
|
185
|
+
if (process.env.NODE_ENV === "development") React.useEffect(() => {
|
|
194
186
|
if (!isWeb) return;
|
|
195
|
-
document.getElementById(
|
|
187
|
+
if (!document.getElementById(
|
|
196
188
|
// @ts-ignore
|
|
197
|
-
contentRef.current?.getAttribute("aria-describedby"))
|
|
189
|
+
contentRef.current?.getAttribute("aria-describedby"))) console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
|
|
198
190
|
|
|
199
191
|
You can add a description to the \`${CONTENT_NAME}\` by passing a \`${DESCRIPTION_NAME}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
200
192
|
|
|
201
193
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
202
194
|
|
|
203
195
|
For more information, see https://tamagui.dev/docs/components/alert-dialog`);
|
|
204
|
-
}, [contentRef])
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
};
|
|
196
|
+
}, [contentRef]);
|
|
197
|
+
return null;
|
|
198
|
+
};
|
|
199
|
+
const AlertDialogInner = props => {
|
|
200
|
+
const {
|
|
201
|
+
scope,
|
|
202
|
+
native,
|
|
203
|
+
...alertDialogProps
|
|
204
|
+
} = props;
|
|
205
|
+
return /* @__PURE__ */jsx(Dialog, {
|
|
206
|
+
scope: getAlertDialogScope(scope),
|
|
207
|
+
...alertDialogProps,
|
|
208
|
+
modal: true
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
function forEachChildDeep(children, onChild) {
|
|
212
|
+
for (const child of children) {
|
|
213
|
+
if (!React.isValidElement(child)) continue;
|
|
214
|
+
if (!onChild(child)) continue;
|
|
215
|
+
const childProps = child.props;
|
|
216
|
+
if (childProps.children) forEachChildDeep(React.Children.toArray(childProps.children), onChild);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
218
219
|
const AlertDialog = withStaticProperties(AlertDialogInner, {
|
|
219
220
|
Trigger: AlertDialogTrigger,
|
|
220
221
|
Portal: AlertDialogPortal,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useComposedRefs","isWeb","Slottable","View","createStyledContext","styled","Dialog","DialogClose","DialogContent","DialogDescription","DialogOverlay","DialogOverlayFrame","DialogPortal","DialogTitle","DialogTrigger","DialogWarningProvider","composeEventHandlers","withStaticProperties","React","jsx","jsxs","getAlertDialogScope","scope","ROOT_NAME","
|
|
1
|
+
{"version":3,"names":["useComposedRefs","isWeb","useIsomorphicLayoutEffect","Slottable","View","createStyledContext","isTamaguiElement","styled","Dialog","DialogClose","DialogContent","DialogDescription","DialogOverlay","DialogOverlayFrame","DialogPortal","DialogTitle","DialogTrigger","DialogWarningProvider","composeEventHandlers","withStaticProperties","useControllableState","React","Alert","jsx","jsxs","getAlertDialogScope","scope","ROOT_NAME","NativeAlertDialogTriggerFrame","name","AlertDialogTrigger","styleable","AlertDialogTrigger2","props","forwardedRef","__native","onPress","__onPress","rest","triggerProps","ref","AlertDialogPortal","AlertDialogPortal2","portalProps","AlertDialogOverlay","AlertDialogOverlay2","overlayProps","CONTENT_NAME","Provider","AlertDialogContextProvider","useStyledContext","useAlertDialogContentContext","AlertDialogContent","forwardRef","AlertDialogContent2","children","contentProps","dialogScope","contentRef","useRef","composedRefs","cancelRef","contentName","titleName","TITLE_NAME","docsSlug","destructiveRef","role","onOpenAutoFocus","event","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","process","env","NODE_ENV","DescriptionWarning","AlertDialogTitle","AlertDialogTitle2","titleProps","DESCRIPTION_NAME","AlertDialogDescription","AlertDialogDescription2","descriptionProps","AlertDialogAction","AlertDialogAction2","actionProps","AlertDialogCancel","AlertDialogCancel2","cancelProps","AlertDialogDestructive","AlertDialogDestructive2","destructiveProps","useEffect","document","getElementById","getAttribute","console","warn","AlertDialogInner","native","alertDialogProps","modal","forEachChildDeep","onChild","child","isValidElement","childProps","Children","toArray","AlertDialog","Trigger","Portal","Overlay","Content","Action","Cancel","Destructive","Title","Description","displayName"],"sources":["../../src/AlertDialog.tsx"],"sourcesContent":[null],"mappings":"AAGA,SAASA,eAAA,QAAuB;AAChC,SAASC,KAAA,EAAOC,yBAAA,QAAiC;AAEjD,SAAAC,SAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,gBAAA,EAAAC,MAAA;AAAA,SACEC,MAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,iBAAA,EAAAC,aAAA,EAAAC,kBAAA,EAAAC,YAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,qBAAA;AAAA,SACAC,oBAAA,EAAAC,oBAAA;AAAA,SACAC,oBAAA;AAAA,OACA,KAAAC,KAAA;AAAA,SACAC,KAAA;AAAA,SACKC,GAAA,EAAAC,IAAA;AAYP,MAAAC,mBAAA,GAAAC,KAAA,IAAAA,KAAA;AAAA,MACEC,SAAA;AAAA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