@orioncactuscorp/ui 1.9.2 → 1.10.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/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +565 -547
- package/dist/components/Modal/bottomSheetGeometry.js +46 -33
- package/dist/components/Modal/modalScrollArbitration.js +71 -49
- package/dist/components/Modal/snapPoints.js +42 -38
- package/dist/components/Modal/useModalDrag.js +937 -854
- package/dist/styles.css +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/bottomSheetGeometry.d.ts +13 -0
- package/dist/ui/src/components/Modal/bottomSheetGeometry.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/modalScrollArbitration.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/snapPoints.d.ts +3 -1
- package/dist/ui/src/components/Modal/snapPoints.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/types.d.ts +8 -0
- package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts +27 -10
- package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useCallback as
|
|
2
|
+
import { jsx as d, jsxs as ae } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as v, useEffect as ne, useRef as $, useState as S, useMemo as Be, useLayoutEffect as Se, useId as ht } from "react";
|
|
4
4
|
import { Dialog as O } from "@base-ui-components/react/dialog";
|
|
5
|
-
import
|
|
6
|
-
import { MotionExpand as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { ScrollArea as
|
|
11
|
-
import { DisclosureIndicator as
|
|
12
|
-
import { normalizeSlotIcon as
|
|
13
|
-
import { useModalContext as
|
|
14
|
-
import { useControllableState as
|
|
15
|
-
import { useModalContentBlockTransition as
|
|
16
|
-
import { useMeasuredElement as
|
|
17
|
-
import { useModalDrag as
|
|
18
|
-
import { useModalPlacement as
|
|
19
|
-
import { useModalStackDepth as
|
|
20
|
-
import { resolveContentSizedBottomSheetHeight as
|
|
21
|
-
import { getModalScrollState as
|
|
22
|
-
import { resolveModalSnapMetrics as
|
|
23
|
-
import
|
|
24
|
-
function
|
|
5
|
+
import gt from "@orioncactuscorp/icons/orioncactus/CloseThick";
|
|
6
|
+
import { MotionExpand as vt } from "../../react/motion.js";
|
|
7
|
+
import bt from "../Background/Background.js";
|
|
8
|
+
import St from "../BackgroundIconButton/BackgroundIconButton.js";
|
|
9
|
+
import yt from "../Interaction/Interaction.js";
|
|
10
|
+
import { ScrollArea as Ue, ScrollAreaContainer as _e } from "../ScrollArea/ScrollArea.js";
|
|
11
|
+
import { DisclosureIndicator as kt } from "../internal/DisclosureIndicator.js";
|
|
12
|
+
import { normalizeSlotIcon as Nt } from "../internal/slot.js";
|
|
13
|
+
import { useModalContext as pe, ModalProvider as Ct } from "./contexts.js";
|
|
14
|
+
import { useControllableState as Ge } from "./useControllableState.js";
|
|
15
|
+
import { useModalContentBlockTransition as wt } from "./useModalContentBlockTransition.js";
|
|
16
|
+
import { useMeasuredElement as Pe } from "./useElementSize.js";
|
|
17
|
+
import { useModalDrag as Ht } from "./useModalDrag.js";
|
|
18
|
+
import { useModalPlacement as Mt } from "./useModalPlacement.js";
|
|
19
|
+
import { useModalStackDepth as xt } from "./useModalStackDepth.js";
|
|
20
|
+
import { resolveContentSizedBottomSheetHeight as Tt } from "./bottomSheetGeometry.js";
|
|
21
|
+
import { getModalScrollState as Je } from "./modalScrollArbitration.js";
|
|
22
|
+
import { resolveModalSnapMetrics as Rt, resolveModalPopupSnapPositions as Bt } from "./snapPoints.js";
|
|
23
|
+
import c from "./Modal.module.scss.js";
|
|
24
|
+
function R(...e) {
|
|
25
25
|
return e.filter(Boolean).join(" ");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Qe(e) {
|
|
28
28
|
return e != null && e !== !1 && e !== "";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Fe(e, t) {
|
|
31
31
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Pt(e) {
|
|
34
34
|
if (!e) return;
|
|
35
35
|
const t = Object.entries(e).filter(
|
|
36
36
|
([n]) => n.startsWith("--")
|
|
@@ -38,38 +38,38 @@ function kt(e) {
|
|
|
38
38
|
if (t.length !== 0)
|
|
39
39
|
return Object.fromEntries(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Oe() {
|
|
42
42
|
return typeof window > "u" ? 0 : window.visualViewport?.height ?? window.innerHeight;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ft(e) {
|
|
45
45
|
const t = e.trim();
|
|
46
46
|
if (!t.endsWith("px")) return;
|
|
47
47
|
const n = Number.parseFloat(t);
|
|
48
48
|
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Dt(e) {
|
|
51
51
|
if (!(!e || typeof window > "u"))
|
|
52
|
-
return
|
|
52
|
+
return Ft(window.getComputedStyle(e).maxHeight);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Et({
|
|
55
55
|
contentTransition: e,
|
|
56
56
|
placement: t,
|
|
57
57
|
resize: n
|
|
58
58
|
}) {
|
|
59
59
|
return e !== "auto" || n !== "content" || t === "full" ? "none" : t === "bottom" ? "sheet" : "surface";
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function qe(e, t) {
|
|
62
62
|
return e.resolvedBackdrop === t ? e : {
|
|
63
63
|
resolvedBackdrop: t,
|
|
64
64
|
exiting: t === "hidden" && e.resolvedBackdrop !== "hidden"
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const [t, n] = S(
|
|
69
|
-
return
|
|
67
|
+
function At(e) {
|
|
68
|
+
const [t, n] = S(Oe);
|
|
69
|
+
return Se(() => {
|
|
70
70
|
if (!e || typeof window > "u") return;
|
|
71
71
|
const a = () => {
|
|
72
|
-
n(
|
|
72
|
+
n(Oe());
|
|
73
73
|
};
|
|
74
74
|
return a(), window.addEventListener("resize", a), window.visualViewport?.addEventListener("resize", a), () => {
|
|
75
75
|
window.removeEventListener("resize", a), window.visualViewport?.removeEventListener(
|
|
@@ -79,50 +79,50 @@ function Mt(e) {
|
|
|
79
79
|
};
|
|
80
80
|
}, [e]), t;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function It(e) {
|
|
83
83
|
const t = e.trim();
|
|
84
84
|
return t.endsWith("ms") ? Number.parseFloat(t) || 0 : t.endsWith("s") ? (Number.parseFloat(t) || 0) * 1e3 : 0;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return e.split(",").reduce((t, n) => Math.max(t,
|
|
86
|
+
function Ce(e) {
|
|
87
|
+
return e.split(",").reduce((t, n) => Math.max(t, It(n)), 0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const t = window.getComputedStyle(e), n =
|
|
89
|
+
function Vt(e) {
|
|
90
|
+
const t = window.getComputedStyle(e), n = Ce(t.animationDuration), a = Ce(t.animationDelay);
|
|
91
91
|
return n + a + 250;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
const t = window.getComputedStyle(e), n =
|
|
93
|
+
function Lt(e) {
|
|
94
|
+
const t = window.getComputedStyle(e), n = Ce(t.transitionDuration), a = Ce(t.transitionDelay);
|
|
95
95
|
return n + a + 250;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function zt({
|
|
98
98
|
defaultSnapPosition: e,
|
|
99
99
|
node: t,
|
|
100
100
|
snapPositions: n
|
|
101
101
|
}) {
|
|
102
102
|
if (!n?.length) return;
|
|
103
|
-
const a =
|
|
103
|
+
const a = Bt({
|
|
104
104
|
defaultSnapPosition: e,
|
|
105
105
|
snapPositions: n,
|
|
106
106
|
surfaceMotion: t
|
|
107
107
|
});
|
|
108
108
|
if (!a) return;
|
|
109
|
-
const
|
|
109
|
+
const u = a.defaultTarget;
|
|
110
110
|
t.style.setProperty(
|
|
111
111
|
"--oc-modal-translate-x",
|
|
112
|
-
|
|
112
|
+
u.settledTranslate?.x ?? `${u.x}px`
|
|
113
113
|
), t.style.setProperty(
|
|
114
114
|
"--oc-modal-translate-y",
|
|
115
|
-
|
|
115
|
+
u.settledTranslate?.y ?? `${u.y}px`
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function jt(e) {
|
|
119
119
|
if (e && typeof e == "object" && "reason" in e && typeof e.reason == "string")
|
|
120
120
|
return e.reason;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ne(e) {
|
|
123
123
|
e && typeof e == "object" && "cancel" in e && typeof e.cancel == "function" && e.cancel();
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function $t(e, t) {
|
|
126
126
|
switch (t) {
|
|
127
127
|
case "drag-dismiss":
|
|
128
128
|
return e?.drag ?? "auto";
|
|
@@ -140,13 +140,13 @@ function Bt(e, t) {
|
|
|
140
140
|
return e?.programmatic ?? "auto";
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ot(e, t) {
|
|
144
144
|
return t > 0 && (e === "drag-dismiss" || e === "backdrop-press" || e === "outside-press");
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ke(e, t) {
|
|
147
147
|
return t && (e === "backdrop-press" || e === "outside-press");
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function qt({
|
|
150
150
|
backdrop: e,
|
|
151
151
|
canSnapPopup: t,
|
|
152
152
|
placement: n,
|
|
@@ -154,8 +154,8 @@ function Dt({
|
|
|
154
154
|
}) {
|
|
155
155
|
return e !== "auto" ? e : n === "bottom" && a === "peeked" || t ? "hidden" : "visible";
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
switch (
|
|
157
|
+
function Kt(e) {
|
|
158
|
+
switch (jt(e)) {
|
|
159
159
|
case "close-press":
|
|
160
160
|
return "close-button";
|
|
161
161
|
case "outside-press":
|
|
@@ -170,153 +170,153 @@ function Et(e) {
|
|
|
170
170
|
return "programmatic";
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Wt(e) {
|
|
174
174
|
return e >= 2 && e <= 6;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function We({
|
|
177
177
|
children: e,
|
|
178
178
|
open: t,
|
|
179
179
|
defaultOpen: n,
|
|
180
180
|
modal: a = !0,
|
|
181
|
-
onOpenChange:
|
|
182
|
-
canCloseAttempt:
|
|
183
|
-
onCloseAttempt:
|
|
184
|
-
presentationState:
|
|
185
|
-
defaultPresentationState:
|
|
186
|
-
onPresentationStateChange:
|
|
187
|
-
disablePointerDismissal:
|
|
188
|
-
navigationDepth:
|
|
189
|
-
dismissBehavior:
|
|
181
|
+
onOpenChange: u,
|
|
182
|
+
canCloseAttempt: N,
|
|
183
|
+
onCloseAttempt: m,
|
|
184
|
+
presentationState: C,
|
|
185
|
+
defaultPresentationState: f = "visible",
|
|
186
|
+
onPresentationStateChange: M,
|
|
187
|
+
disablePointerDismissal: h,
|
|
188
|
+
navigationDepth: g = 0,
|
|
189
|
+
dismissBehavior: x
|
|
190
190
|
}) {
|
|
191
|
-
const l = t !== void 0, [T,
|
|
191
|
+
const l = t !== void 0, [T, F] = S(
|
|
192
192
|
n ?? !1
|
|
193
|
-
),
|
|
193
|
+
), q = l ? t : T, [J, me] = S("bottom"), [I, re] = S(!1), [o, K] = S(!1), [D, W] = S(!1), [r, Q] = S(!1), [X, Y] = S(0), [U, Z] = S(0), [ie, fe] = S(null), [ee, te] = S({
|
|
194
194
|
canScroll: !1,
|
|
195
195
|
scrolledFromTop: !1,
|
|
196
196
|
scrolledToBottom: !0
|
|
197
|
-
}), [
|
|
198
|
-
value:
|
|
199
|
-
defaultValue:
|
|
200
|
-
onChange:
|
|
201
|
-
}),
|
|
202
|
-
(
|
|
203
|
-
l ||
|
|
197
|
+
}), [y, k] = Ge({
|
|
198
|
+
value: C,
|
|
199
|
+
defaultValue: f,
|
|
200
|
+
onChange: M
|
|
201
|
+
}), B = Pe(), _ = Pe(), V = Math.max(0, g), E = v(
|
|
202
|
+
(s, b) => {
|
|
203
|
+
l || F(s), u?.(s, b);
|
|
204
204
|
},
|
|
205
|
-
[
|
|
206
|
-
),
|
|
207
|
-
(
|
|
208
|
-
[
|
|
209
|
-
),
|
|
210
|
-
(
|
|
211
|
-
|
|
205
|
+
[u, l]
|
|
206
|
+
), w = v(
|
|
207
|
+
(s = { reason: "programmatic" }) => N?.(s) !== !1,
|
|
208
|
+
[N]
|
|
209
|
+
), p = v(
|
|
210
|
+
(s = { reason: "programmatic" }) => {
|
|
211
|
+
Y((b) => b + 1);
|
|
212
212
|
},
|
|
213
213
|
[]
|
|
214
|
-
),
|
|
215
|
-
|
|
216
|
-
}, []),
|
|
217
|
-
(
|
|
218
|
-
if (
|
|
214
|
+
), L = v(() => {
|
|
215
|
+
Z((s) => s + 1);
|
|
216
|
+
}, []), z = v(
|
|
217
|
+
(s = { reason: "programmatic" }) => {
|
|
218
|
+
if (Ke(s.reason, D))
|
|
219
219
|
return !1;
|
|
220
|
-
const
|
|
221
|
-
return
|
|
220
|
+
const b = $t(x, s.reason);
|
|
221
|
+
return b === "allow" ? !0 : b === "block" ? !1 : !Ot(s.reason, V);
|
|
222
222
|
},
|
|
223
|
-
[
|
|
224
|
-
),
|
|
225
|
-
(
|
|
226
|
-
const { commit:
|
|
227
|
-
return !
|
|
223
|
+
[D, x, V]
|
|
224
|
+
), P = v(
|
|
225
|
+
(s = { reason: "programmatic" }, b = {}) => {
|
|
226
|
+
const { commit: ce = !0, skipAttempt: se = !1 } = b;
|
|
227
|
+
return !se && Ke(s.reason, D) ? (Ne(s.eventDetails), !1) : !se && !z(s) || !se && !w(s) || !se && m?.(s) === !1 ? (Ne(s.eventDetails), p(s), !1) : (ce && E(!1, s.eventDetails), !0);
|
|
228
228
|
},
|
|
229
229
|
[
|
|
230
|
-
|
|
230
|
+
w,
|
|
231
|
+
D,
|
|
231
232
|
z,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
f
|
|
233
|
+
E,
|
|
234
|
+
p,
|
|
235
|
+
m
|
|
236
236
|
]
|
|
237
|
-
),
|
|
238
|
-
(
|
|
239
|
-
if (
|
|
240
|
-
|
|
241
|
-
reason:
|
|
242
|
-
eventDetails:
|
|
237
|
+
), oe = v(
|
|
238
|
+
(s, b) => {
|
|
239
|
+
if (s && y === "peeked" && k("visible"), !s) {
|
|
240
|
+
P({
|
|
241
|
+
reason: Kt(b),
|
|
242
|
+
eventDetails: b
|
|
243
243
|
});
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
E(s, b);
|
|
247
247
|
},
|
|
248
|
-
[
|
|
249
|
-
),
|
|
248
|
+
[E, y, P, k]
|
|
249
|
+
), j = y === "visible" && !r ? a : !1, he = h || J === "bottom" && (I || r), G = Be(
|
|
250
250
|
() => ({
|
|
251
|
-
open:
|
|
252
|
-
placement:
|
|
253
|
-
setPlacement:
|
|
254
|
-
presentationState:
|
|
255
|
-
setPresentationState:
|
|
256
|
-
requestClose:
|
|
257
|
-
canDismissByBehavior:
|
|
258
|
-
canCloseAttempt:
|
|
259
|
-
closeAttemptFeedbackKey:
|
|
260
|
-
notifyCloseAttemptRejected:
|
|
261
|
-
disablePointerDismissal:
|
|
262
|
-
setBackdropDismissalDisabled:
|
|
263
|
-
setBackgroundInteractive:
|
|
264
|
-
canPeek:
|
|
265
|
-
setCanPeek:
|
|
266
|
-
canRenderHandle:
|
|
267
|
-
setCanRenderHandle:
|
|
268
|
-
popupSnapLayoutVersion:
|
|
269
|
-
notifyPopupSnapLayoutChange:
|
|
270
|
-
headerHeight:
|
|
271
|
-
footerHeight:
|
|
272
|
-
setHeaderNode:
|
|
273
|
-
setFooterNode:
|
|
274
|
-
bodyNode:
|
|
275
|
-
setBodyNode:
|
|
276
|
-
scrollState:
|
|
277
|
-
setScrollState:
|
|
251
|
+
open: q,
|
|
252
|
+
placement: J,
|
|
253
|
+
setPlacement: me,
|
|
254
|
+
presentationState: y,
|
|
255
|
+
setPresentationState: k,
|
|
256
|
+
requestClose: P,
|
|
257
|
+
canDismissByBehavior: z,
|
|
258
|
+
canCloseAttempt: w,
|
|
259
|
+
closeAttemptFeedbackKey: X,
|
|
260
|
+
notifyCloseAttemptRejected: p,
|
|
261
|
+
disablePointerDismissal: h ?? !1,
|
|
262
|
+
setBackdropDismissalDisabled: W,
|
|
263
|
+
setBackgroundInteractive: Q,
|
|
264
|
+
canPeek: I,
|
|
265
|
+
setCanPeek: re,
|
|
266
|
+
canRenderHandle: o,
|
|
267
|
+
setCanRenderHandle: K,
|
|
268
|
+
popupSnapLayoutVersion: U,
|
|
269
|
+
notifyPopupSnapLayoutChange: L,
|
|
270
|
+
headerHeight: B.height,
|
|
271
|
+
footerHeight: _.height,
|
|
272
|
+
setHeaderNode: B.setNode,
|
|
273
|
+
setFooterNode: _.setNode,
|
|
274
|
+
bodyNode: ie,
|
|
275
|
+
setBodyNode: fe,
|
|
276
|
+
scrollState: ee,
|
|
277
|
+
setScrollState: te
|
|
278
278
|
}),
|
|
279
279
|
[
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
ie,
|
|
281
|
+
I,
|
|
282
|
+
o,
|
|
283
|
+
z,
|
|
284
|
+
w,
|
|
285
|
+
X,
|
|
286
|
+
_.height,
|
|
287
|
+
_.setNode,
|
|
288
|
+
B.height,
|
|
289
|
+
B.setNode,
|
|
284
290
|
p,
|
|
291
|
+
L,
|
|
285
292
|
U,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
K,
|
|
294
|
-
Q,
|
|
295
|
-
I,
|
|
296
|
-
j,
|
|
297
|
-
g,
|
|
298
|
-
b,
|
|
299
|
-
D
|
|
293
|
+
q,
|
|
294
|
+
J,
|
|
295
|
+
P,
|
|
296
|
+
ee,
|
|
297
|
+
h,
|
|
298
|
+
y,
|
|
299
|
+
k
|
|
300
300
|
]
|
|
301
301
|
);
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ d(Ct, { value: G, children: /* @__PURE__ */ d(
|
|
303
303
|
O.Root,
|
|
304
304
|
{
|
|
305
|
-
open:
|
|
306
|
-
modal:
|
|
307
|
-
onOpenChange:
|
|
308
|
-
disablePointerDismissal:
|
|
305
|
+
open: q,
|
|
306
|
+
modal: j,
|
|
307
|
+
onOpenChange: oe,
|
|
308
|
+
disablePointerDismissal: he,
|
|
309
309
|
children: e
|
|
310
310
|
}
|
|
311
311
|
) });
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Ut({
|
|
314
314
|
className: e = "",
|
|
315
315
|
children: t,
|
|
316
316
|
render: n,
|
|
317
317
|
nativeButton: a
|
|
318
318
|
}) {
|
|
319
|
-
return n ? /* @__PURE__ */
|
|
319
|
+
return n ? /* @__PURE__ */ d(
|
|
320
320
|
O.Trigger,
|
|
321
321
|
{
|
|
322
322
|
render: n,
|
|
@@ -324,194 +324,205 @@ function It({
|
|
|
324
324
|
"data-oc-component": "modal-trigger",
|
|
325
325
|
children: t
|
|
326
326
|
}
|
|
327
|
-
) : /* @__PURE__ */
|
|
327
|
+
) : /* @__PURE__ */ d(
|
|
328
328
|
O.Trigger,
|
|
329
329
|
{
|
|
330
|
-
className:
|
|
330
|
+
className: R(c.trigger, e),
|
|
331
331
|
nativeButton: a,
|
|
332
332
|
"data-oc-component": "modal-trigger",
|
|
333
333
|
children: t
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function _t({
|
|
338
338
|
className: e = "",
|
|
339
339
|
children: t,
|
|
340
340
|
variant: n = "adaptive",
|
|
341
341
|
size: a = "medium",
|
|
342
|
-
resize:
|
|
343
|
-
contentTransition:
|
|
344
|
-
backdrop:
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
342
|
+
resize: u = "content",
|
|
343
|
+
contentTransition: N = "auto",
|
|
344
|
+
backdrop: m = "auto",
|
|
345
|
+
backdropFrom: C,
|
|
346
|
+
drag: f = "content",
|
|
347
|
+
peekable: M = !1,
|
|
348
|
+
snapPoints: h,
|
|
348
349
|
defaultSnapPoint: g,
|
|
349
|
-
snapPositions:
|
|
350
|
-
defaultSnapPosition:
|
|
351
|
-
initialFocus:
|
|
352
|
-
peekHeight:
|
|
350
|
+
snapPositions: x,
|
|
351
|
+
defaultSnapPosition: l,
|
|
352
|
+
initialFocus: T,
|
|
353
|
+
peekHeight: F,
|
|
353
354
|
closeThreshold: q,
|
|
354
|
-
scrollLockTimeout:
|
|
355
|
-
container:
|
|
356
|
-
style:
|
|
357
|
-
...
|
|
355
|
+
scrollLockTimeout: J,
|
|
356
|
+
container: me,
|
|
357
|
+
style: I,
|
|
358
|
+
...re
|
|
358
359
|
}) {
|
|
359
|
-
const o =
|
|
360
|
+
const o = pe("ModalContent"), { setCanPeek: K, setCanRenderHandle: D, setPlacement: W } = o, r = Mt(n), Q = $(null), X = $(null), Y = $(null), U = $(null), [Z, ie] = S(null), [fe, ee] = S(
|
|
360
361
|
null
|
|
361
|
-
),
|
|
362
|
-
backdrop:
|
|
363
|
-
canSnapPopup:
|
|
364
|
-
placement:
|
|
362
|
+
), te = $(0), y = $(null), k = $(null), B = $(null), [_, V] = S(), E = f === "handle" || f === "content", w = r === "popup" && E && !!x?.length, p = qt({
|
|
363
|
+
backdrop: m,
|
|
364
|
+
canSnapPopup: w,
|
|
365
|
+
placement: r,
|
|
365
366
|
presentationState: o.presentationState
|
|
366
|
-
}), [
|
|
367
|
+
}), [L, z] = S(() => ({
|
|
367
368
|
resolvedBackdrop: p,
|
|
368
369
|
exiting: !1
|
|
369
|
-
})),
|
|
370
|
-
() =>
|
|
371
|
-
[
|
|
372
|
-
),
|
|
373
|
-
!!
|
|
374
|
-
),
|
|
375
|
-
if (!(!
|
|
376
|
-
return
|
|
377
|
-
snapPoints:
|
|
370
|
+
})), P = Be(
|
|
371
|
+
() => qe(L, p),
|
|
372
|
+
[L, p]
|
|
373
|
+
), oe = P.exiting, j = w && p === "hidden", he = (r === "bottom" || w) && E, G = r === "bottom" && he && M, s = G && F !== void 0 ? F : o.headerHeight > 0 ? o.headerHeight : void 0, b = r === "bottom" && u !== "fixed", ce = At(
|
|
374
|
+
!!h?.length || b
|
|
375
|
+
), se = Be(() => {
|
|
376
|
+
if (!(!h?.length || ce <= 0))
|
|
377
|
+
return Rt({
|
|
378
|
+
snapPoints: h,
|
|
378
379
|
defaultSnapPoint: g,
|
|
379
|
-
|
|
380
|
+
backdropFrom: C,
|
|
381
|
+
viewportHeight: ce
|
|
380
382
|
});
|
|
381
|
-
}, [g,
|
|
382
|
-
contentTransition:
|
|
383
|
-
placement:
|
|
384
|
-
resize:
|
|
385
|
-
}),
|
|
386
|
-
|
|
387
|
-
enabled: o.open &&
|
|
388
|
-
node:
|
|
389
|
-
}),
|
|
390
|
-
if (!
|
|
391
|
-
|
|
383
|
+
}, [C, g, h, ce]), A = r === "bottom" ? se : void 0, Ye = xt(o.open), [ye, Ze] = S(0), ke = $(!1), et = A !== void 0 && b, we = b && ye > 0 ? ye : void 0, de = A ? et && we !== void 0 ? we : A.sheetHeight : we, tt = A && de !== void 0 ? Math.max(0, de - A.defaultHeight) : void 0, ot = de !== void 0, He = Et({
|
|
384
|
+
contentTransition: N,
|
|
385
|
+
placement: r,
|
|
386
|
+
resize: u
|
|
387
|
+
}), nt = He === "surface" ? "auto" : "none", at = He === "sheet" ? "auto" : "none", De = o.bodyNode;
|
|
388
|
+
wt({
|
|
389
|
+
enabled: o.open && He === "surface",
|
|
390
|
+
node: fe
|
|
391
|
+
}), Se(() => {
|
|
392
|
+
if (!b) {
|
|
393
|
+
ke.current = !1;
|
|
392
394
|
return;
|
|
393
395
|
}
|
|
394
|
-
const
|
|
395
|
-
if (!
|
|
396
|
-
|
|
396
|
+
const i = De?.firstElementChild;
|
|
397
|
+
if (!i) {
|
|
398
|
+
ke.current = !1;
|
|
397
399
|
return;
|
|
398
400
|
}
|
|
399
401
|
const H = () => {
|
|
400
|
-
const
|
|
401
|
-
contentHeight:
|
|
402
|
-
maxHeight:
|
|
403
|
-
snapHeight:
|
|
404
|
-
}),
|
|
405
|
-
|
|
402
|
+
const ue = i.getBoundingClientRect().height, be = Tt({
|
|
403
|
+
contentHeight: ue,
|
|
404
|
+
maxHeight: Dt(Z),
|
|
405
|
+
snapHeight: A?.sheetHeight
|
|
406
|
+
}), $e = Math.abs(ye - be) > 0.5;
|
|
407
|
+
ke.current = $e, $e && Ze(be);
|
|
406
408
|
};
|
|
407
409
|
if (H(), typeof ResizeObserver > "u") return;
|
|
408
|
-
const
|
|
409
|
-
return
|
|
410
|
+
const ve = new ResizeObserver(H);
|
|
411
|
+
return ve.observe(i), () => ve.disconnect();
|
|
410
412
|
}, [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
]),
|
|
418
|
-
|
|
419
|
-
}, [
|
|
420
|
-
o.open || (
|
|
421
|
-
}, [o.open]),
|
|
422
|
-
const
|
|
423
|
-
() =>
|
|
413
|
+
De,
|
|
414
|
+
b,
|
|
415
|
+
A?.sheetHeight,
|
|
416
|
+
ye,
|
|
417
|
+
ce,
|
|
418
|
+
Z
|
|
419
|
+
]), ne(() => {
|
|
420
|
+
W(r);
|
|
421
|
+
}, [r, W]), ne(() => {
|
|
422
|
+
o.open || (U.current = null);
|
|
423
|
+
}, [o.open]), ne(() => (K(G), () => K(!1)), [G, K]), ne(() => (D(he), () => D(!1)), [he, D]);
|
|
424
|
+
const rt = v(
|
|
425
|
+
() => ke.current,
|
|
424
426
|
[]
|
|
425
|
-
),
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
), Ee = o.bodyNode, Ae = o.setScrollState, it = v(() => {
|
|
428
|
+
Ae(Je(Ee));
|
|
429
|
+
}, [Ee, Ae]), Ie = A?.backdropFromHeight, [Ve, Le] = S(!1), ct = v((i) => {
|
|
430
|
+
Le(!i);
|
|
431
|
+
}, []);
|
|
432
|
+
!o.open && Ve && Le(!1);
|
|
433
|
+
const Me = Ie !== void 0 && Ve, { collapseBottomSheetToUndimmedSnap: xe, handlers: st } = Ht({
|
|
434
|
+
enabled: f !== !1,
|
|
435
|
+
drag: f,
|
|
428
436
|
open: o.open,
|
|
429
|
-
placement:
|
|
430
|
-
surfaceMotionRef:
|
|
431
|
-
surfaceMotionNode:
|
|
432
|
-
backdropRef:
|
|
437
|
+
placement: r,
|
|
438
|
+
surfaceMotionRef: Q,
|
|
439
|
+
surfaceMotionNode: Z,
|
|
440
|
+
backdropRef: Y,
|
|
433
441
|
bodyNode: o.bodyNode,
|
|
434
|
-
snapHeights:
|
|
435
|
-
sheetHeight:
|
|
436
|
-
|
|
437
|
-
|
|
442
|
+
snapHeights: A?.snapHeights,
|
|
443
|
+
sheetHeight: de,
|
|
444
|
+
backdropFromHeight: Ie,
|
|
445
|
+
onBackdropDimRestChange: ct,
|
|
446
|
+
peekHeight: G ? F : void 0,
|
|
447
|
+
peekFallback: G ? "header" : void 0,
|
|
438
448
|
presentationState: o.presentationState,
|
|
439
449
|
setPresentationState: o.setPresentationState,
|
|
440
450
|
requestClose: o.requestClose,
|
|
441
451
|
canCloseAttempt: o.canCloseAttempt,
|
|
442
452
|
dismissible: !o.disablePointerDismissal && o.canDismissByBehavior({ reason: "drag-dismiss" }),
|
|
443
|
-
|
|
444
|
-
visibleTranslate:
|
|
445
|
-
shouldDeferBottomSettle:
|
|
446
|
-
|
|
447
|
-
|
|
453
|
+
backdropHidden: p === "hidden",
|
|
454
|
+
visibleTranslate: tt,
|
|
455
|
+
shouldDeferBottomSettle: rt,
|
|
456
|
+
refreshScrollState: it,
|
|
457
|
+
snapPositions: w ? x : void 0,
|
|
458
|
+
defaultSnapPosition: l,
|
|
448
459
|
closeThreshold: q,
|
|
449
|
-
scrollLockTimeout:
|
|
460
|
+
scrollLockTimeout: J,
|
|
450
461
|
popupSnapLayoutVersion: o.popupSnapLayoutVersion
|
|
451
|
-
}),
|
|
452
|
-
(
|
|
453
|
-
|
|
454
|
-
defaultSnapPosition:
|
|
455
|
-
node:
|
|
456
|
-
snapPositions:
|
|
457
|
-
}),
|
|
462
|
+
}), dt = v(
|
|
463
|
+
(i) => {
|
|
464
|
+
Q.current = i, ie(i), i && o.open && w && U.current !== i && (zt({
|
|
465
|
+
defaultSnapPosition: l,
|
|
466
|
+
node: i,
|
|
467
|
+
snapPositions: x
|
|
468
|
+
}), U.current = i);
|
|
458
469
|
},
|
|
459
|
-
[
|
|
460
|
-
),
|
|
461
|
-
|
|
470
|
+
[w, o.open, l, x]
|
|
471
|
+
), lt = v((i) => {
|
|
472
|
+
X.current = i, ee(i);
|
|
462
473
|
}, []);
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
if (
|
|
466
|
-
|
|
474
|
+
ne(() => {
|
|
475
|
+
const i = o.closeAttemptFeedbackKey;
|
|
476
|
+
if (i === 0 || r !== "popup" || te.current === i) {
|
|
477
|
+
te.current = i, V(void 0);
|
|
467
478
|
return;
|
|
468
479
|
}
|
|
469
|
-
const H =
|
|
480
|
+
const H = X.current;
|
|
470
481
|
if (!H) return;
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
|
|
482
|
+
te.current = i, y.current !== null && window.cancelAnimationFrame(y.current), k.current !== null && window.clearTimeout(k.current), V(void 0);
|
|
483
|
+
const ve = () => {
|
|
484
|
+
V(void 0), k.current = null;
|
|
485
|
+
}, ue = (be) => {
|
|
486
|
+
be.target === H && be.animationName === "oc-modal-reject-shake" && (H.removeEventListener("animationend", ue), k.current !== null && window.clearTimeout(k.current), ve());
|
|
476
487
|
};
|
|
477
|
-
return H.addEventListener("animationend",
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
H.removeEventListener("animationend",
|
|
481
|
-
},
|
|
488
|
+
return H.addEventListener("animationend", ue), y.current = window.requestAnimationFrame(() => {
|
|
489
|
+
y.current = null, V("reject"), y.current = window.requestAnimationFrame(() => {
|
|
490
|
+
y.current = null, k.current = window.setTimeout(() => {
|
|
491
|
+
H.removeEventListener("animationend", ue), ve();
|
|
492
|
+
}, Vt(H));
|
|
482
493
|
});
|
|
483
494
|
}), () => {
|
|
484
|
-
H.removeEventListener("animationend",
|
|
495
|
+
H.removeEventListener("animationend", ue), y.current !== null && (window.cancelAnimationFrame(y.current), y.current = null), k.current !== null && (window.clearTimeout(k.current), k.current = null);
|
|
485
496
|
};
|
|
486
|
-
}, [o.closeAttemptFeedbackKey,
|
|
487
|
-
const
|
|
488
|
-
...
|
|
497
|
+
}, [o.closeAttemptFeedbackKey, r]);
|
|
498
|
+
const ze = Pt(I), ut = {
|
|
499
|
+
...ze,
|
|
489
500
|
...o.headerHeight > 0 ? { "--oc-modal-header-height": `${o.headerHeight}px` } : {},
|
|
490
501
|
...o.footerHeight > 0 ? { "--oc-modal-footer-height": `${o.footerHeight}px` } : {},
|
|
491
|
-
...
|
|
492
|
-
...
|
|
502
|
+
...s !== void 0 ? { "--oc-modal-peek-height": `${s}px` } : {},
|
|
503
|
+
...de !== void 0 ? { "--oc-modal-sheet-height": `${de}px` } : {}
|
|
493
504
|
// `--oc-modal-translate-y` and the inline `height` are owned imperatively
|
|
494
505
|
// by the drag hook: content-size transitions pin the surface to a canvas
|
|
495
506
|
// height and compensate the translate in the same frame. Rendering the
|
|
496
507
|
// height here would commit the new size before that compensation runs and
|
|
497
508
|
// make the sheet jump a frame early. The managed sizing CSS rule renders
|
|
498
509
|
// the resting height from `--oc-modal-sheet-height`.
|
|
499
|
-
},
|
|
510
|
+
}, je = {
|
|
500
511
|
// Each modal reserves one backdrop slot and one viewport slot.
|
|
501
|
-
"--oc-modal-stack-offset":
|
|
502
|
-
},
|
|
503
|
-
...
|
|
512
|
+
"--oc-modal-stack-offset": Ye * 2
|
|
513
|
+
}, pt = o.headerHeight > 0 ? {
|
|
514
|
+
...I,
|
|
504
515
|
"--oc-modal-header-height": `${o.headerHeight}px`
|
|
505
|
-
} :
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}, [
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
}, []),
|
|
512
|
-
p === "hidden" && (
|
|
513
|
-
const H =
|
|
514
|
-
|
|
516
|
+
} : I, mt = T === "content" ? Q : T, { setBackdropDismissalDisabled: Te, setBackgroundInteractive: Re } = o, ft = p !== "hidden" || oe;
|
|
517
|
+
Se(() => {
|
|
518
|
+
P !== L && z(P);
|
|
519
|
+
}, [L, P]);
|
|
520
|
+
const le = v(() => {
|
|
521
|
+
B.current !== null && (window.clearTimeout(B.current), B.current = null);
|
|
522
|
+
}, []), ge = v(() => {
|
|
523
|
+
p === "hidden" && (le(), z((i) => {
|
|
524
|
+
const H = qe(
|
|
525
|
+
i,
|
|
515
526
|
p
|
|
516
527
|
);
|
|
517
528
|
return H.resolvedBackdrop !== "hidden" || !H.exiting ? H : {
|
|
@@ -519,88 +530,95 @@ function Vt({
|
|
|
519
530
|
exiting: !1
|
|
520
531
|
};
|
|
521
532
|
}));
|
|
522
|
-
}, [
|
|
523
|
-
return
|
|
533
|
+
}, [le, p]);
|
|
534
|
+
return ne(
|
|
524
535
|
() => () => {
|
|
525
|
-
|
|
536
|
+
le();
|
|
526
537
|
},
|
|
527
|
-
[
|
|
528
|
-
),
|
|
529
|
-
if (!
|
|
530
|
-
const
|
|
531
|
-
if (!
|
|
532
|
-
|
|
538
|
+
[le]
|
|
539
|
+
), Se(() => {
|
|
540
|
+
if (!oe || p !== "hidden") return;
|
|
541
|
+
const i = Y.current;
|
|
542
|
+
if (!i) {
|
|
543
|
+
B.current = window.setTimeout(ge, 0);
|
|
533
544
|
return;
|
|
534
545
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
546
|
+
le(), B.current = window.setTimeout(
|
|
547
|
+
ge,
|
|
548
|
+
Lt(i)
|
|
538
549
|
);
|
|
539
550
|
}, [
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
551
|
+
le,
|
|
552
|
+
ge,
|
|
553
|
+
oe,
|
|
543
554
|
p
|
|
544
|
-
]),
|
|
545
|
-
|
|
555
|
+
]), Se(() => (Te(p === "hidden"), Re(j || Me), () => {
|
|
556
|
+
Te(!1), Re(!1);
|
|
546
557
|
}), [
|
|
547
|
-
ie,
|
|
548
|
-
p,
|
|
549
558
|
Me,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
559
|
+
j,
|
|
560
|
+
p,
|
|
561
|
+
Te,
|
|
562
|
+
Re
|
|
563
|
+
]), /* @__PURE__ */ ae(O.Portal, { container: me, children: [
|
|
564
|
+
ft ? /* @__PURE__ */ d(
|
|
553
565
|
O.Backdrop,
|
|
554
566
|
{
|
|
555
|
-
ref:
|
|
556
|
-
className:
|
|
567
|
+
ref: Y,
|
|
568
|
+
className: c.backdrop,
|
|
557
569
|
"data-oc-part": "backdrop",
|
|
558
570
|
"data-oc-component": "modal-backdrop",
|
|
559
571
|
"data-oc-modal-backdrop": p,
|
|
560
|
-
"data-oc-modal-
|
|
572
|
+
"data-oc-modal-backdrop-passthrough": Me ? "true" : void 0,
|
|
573
|
+
"data-oc-modal-placement": r,
|
|
561
574
|
"data-oc-modal-presentation-state": o.presentationState,
|
|
562
|
-
style:
|
|
563
|
-
onTransitionCancel: (
|
|
564
|
-
|
|
575
|
+
style: je,
|
|
576
|
+
onTransitionCancel: (i) => {
|
|
577
|
+
i.currentTarget === i.target && i.propertyName === "opacity" && ge();
|
|
565
578
|
},
|
|
566
|
-
onTransitionEnd: (
|
|
567
|
-
|
|
579
|
+
onTransitionEnd: (i) => {
|
|
580
|
+
i.currentTarget === i.target && i.propertyName === "opacity" && ge();
|
|
568
581
|
},
|
|
569
582
|
onClick: () => {
|
|
570
583
|
if (o.disablePointerDismissal) {
|
|
584
|
+
if (xe()) return;
|
|
571
585
|
o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
|
|
572
586
|
return;
|
|
573
587
|
}
|
|
574
588
|
if (!o.canDismissByBehavior({ reason: "backdrop-press" })) {
|
|
589
|
+
if (xe()) return;
|
|
575
590
|
o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
|
|
576
591
|
return;
|
|
577
592
|
}
|
|
578
|
-
if (
|
|
579
|
-
o.presentationState === "visible"
|
|
593
|
+
if (r === "bottom" && G) {
|
|
594
|
+
if (o.presentationState === "visible") {
|
|
595
|
+
if (xe()) return;
|
|
596
|
+
o.setPresentationState("peeked");
|
|
597
|
+
}
|
|
580
598
|
return;
|
|
581
599
|
}
|
|
582
600
|
o.requestClose({ reason: "backdrop-press" });
|
|
583
601
|
}
|
|
584
602
|
}
|
|
585
603
|
) : null,
|
|
586
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ d(
|
|
587
605
|
O.Viewport,
|
|
588
606
|
{
|
|
589
|
-
className:
|
|
607
|
+
className: c.viewport,
|
|
590
608
|
"data-oc-part": "viewport",
|
|
591
609
|
"data-oc-component": "modal-viewport",
|
|
592
|
-
"data-oc-modal-placement":
|
|
593
|
-
style:
|
|
594
|
-
children: /* @__PURE__ */
|
|
610
|
+
"data-oc-modal-placement": r,
|
|
611
|
+
style: je,
|
|
612
|
+
children: /* @__PURE__ */ ae(
|
|
595
613
|
O.Popup,
|
|
596
614
|
{
|
|
597
|
-
...
|
|
598
|
-
...
|
|
599
|
-
ref:
|
|
600
|
-
initialFocus:
|
|
601
|
-
className:
|
|
602
|
-
|
|
603
|
-
|
|
615
|
+
...re,
|
|
616
|
+
...st,
|
|
617
|
+
ref: dt,
|
|
618
|
+
initialFocus: mt,
|
|
619
|
+
className: R(
|
|
620
|
+
c.surfaceMotion,
|
|
621
|
+
c[a],
|
|
604
622
|
e
|
|
605
623
|
),
|
|
606
624
|
"data-oc-part": "surface-motion",
|
|
@@ -608,46 +626,46 @@ function Vt({
|
|
|
608
626
|
"data-oc-modal-backdrop": p,
|
|
609
627
|
"data-oc-variant": n,
|
|
610
628
|
"data-oc-size": a,
|
|
611
|
-
"data-oc-resize":
|
|
612
|
-
"data-oc-modal-feedback":
|
|
613
|
-
"data-oc-modal-placement":
|
|
614
|
-
"data-oc-modal-snapping":
|
|
615
|
-
"data-oc-modal-sheet-sizing":
|
|
616
|
-
"data-oc-modal-sheet-transition":
|
|
617
|
-
style:
|
|
629
|
+
"data-oc-resize": u,
|
|
630
|
+
"data-oc-modal-feedback": r === "popup" ? _ : void 0,
|
|
631
|
+
"data-oc-modal-placement": r,
|
|
632
|
+
"data-oc-modal-snapping": A || w ? "true" : void 0,
|
|
633
|
+
"data-oc-modal-sheet-sizing": ot ? "managed" : void 0,
|
|
634
|
+
"data-oc-modal-sheet-transition": at === "auto" ? "auto" : void 0,
|
|
635
|
+
style: ut,
|
|
618
636
|
children: [
|
|
619
|
-
|
|
637
|
+
r === "bottom" ? /* @__PURE__ */ d(
|
|
620
638
|
"div",
|
|
621
639
|
{
|
|
622
640
|
"aria-hidden": "true",
|
|
623
|
-
className:
|
|
624
|
-
|
|
625
|
-
|
|
641
|
+
className: R(
|
|
642
|
+
c.bottomFill,
|
|
643
|
+
c[a],
|
|
626
644
|
e
|
|
627
645
|
),
|
|
628
646
|
"data-oc-part": "bottom-fill",
|
|
629
647
|
"data-oc-component": "modal-bottom-fill",
|
|
630
648
|
"data-oc-size": a,
|
|
631
|
-
style:
|
|
649
|
+
style: ze
|
|
632
650
|
}
|
|
633
651
|
) : null,
|
|
634
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ d(
|
|
635
653
|
"div",
|
|
636
654
|
{
|
|
637
|
-
ref:
|
|
638
|
-
className:
|
|
639
|
-
|
|
640
|
-
|
|
655
|
+
ref: lt,
|
|
656
|
+
className: R(
|
|
657
|
+
c.surface,
|
|
658
|
+
c[u],
|
|
641
659
|
e
|
|
642
660
|
),
|
|
643
661
|
"data-oc-part": "surface",
|
|
644
662
|
"data-oc-variant": n,
|
|
645
663
|
"data-oc-size": a,
|
|
646
|
-
"data-oc-resize":
|
|
647
|
-
"data-oc-content-transition":
|
|
648
|
-
"data-oc-modal-placement":
|
|
664
|
+
"data-oc-resize": u,
|
|
665
|
+
"data-oc-content-transition": nt === "auto" ? "auto" : void 0,
|
|
666
|
+
"data-oc-modal-placement": r,
|
|
649
667
|
"data-oc-scrollable": o.scrollState.canScroll ? "true" : "false",
|
|
650
|
-
style:
|
|
668
|
+
style: pt,
|
|
651
669
|
children: t
|
|
652
670
|
}
|
|
653
671
|
)
|
|
@@ -658,59 +676,59 @@ function Vt({
|
|
|
658
676
|
)
|
|
659
677
|
] });
|
|
660
678
|
}
|
|
661
|
-
function
|
|
679
|
+
function Gt({
|
|
662
680
|
className: e = "",
|
|
663
681
|
title: t,
|
|
664
682
|
children: n,
|
|
665
683
|
leadingContent: a,
|
|
666
|
-
trailingContent:
|
|
667
|
-
closeLabel:
|
|
668
|
-
closeButton:
|
|
669
|
-
handle:
|
|
670
|
-
ref:
|
|
671
|
-
...
|
|
684
|
+
trailingContent: u,
|
|
685
|
+
closeLabel: N = "닫기",
|
|
686
|
+
closeButton: m = !0,
|
|
687
|
+
handle: C = !0,
|
|
688
|
+
ref: f,
|
|
689
|
+
...M
|
|
672
690
|
}) {
|
|
673
|
-
const
|
|
674
|
-
(
|
|
675
|
-
|
|
691
|
+
const h = pe("ModalHeader"), { setHeaderNode: g, scrollState: x } = h, l = v(
|
|
692
|
+
(F) => {
|
|
693
|
+
g(F), Fe(f, F);
|
|
676
694
|
},
|
|
677
|
-
[
|
|
678
|
-
), T =
|
|
679
|
-
return /* @__PURE__ */
|
|
680
|
-
|
|
695
|
+
[f, g]
|
|
696
|
+
), T = Qe(a);
|
|
697
|
+
return /* @__PURE__ */ ae(
|
|
698
|
+
bt,
|
|
681
699
|
{
|
|
682
|
-
...
|
|
700
|
+
...M,
|
|
683
701
|
as: "header",
|
|
684
702
|
ref: l,
|
|
685
703
|
backdrop: "compact",
|
|
686
|
-
className:
|
|
704
|
+
className: R(c.header, e),
|
|
687
705
|
backColor: "var(--oc-color-theme-background-elevated-normal)",
|
|
688
706
|
frontColor: "transparent",
|
|
689
707
|
"data-oc-part": "header",
|
|
690
708
|
"data-oc-component": "modal-header",
|
|
691
709
|
variant: "strong",
|
|
692
|
-
"data-oc-sticky":
|
|
710
|
+
"data-oc-sticky": x.scrolledFromTop ? "true" : "false",
|
|
693
711
|
children: [
|
|
694
|
-
|
|
712
|
+
C && h.canRenderHandle ? /* @__PURE__ */ d(
|
|
695
713
|
"div",
|
|
696
714
|
{
|
|
697
715
|
"aria-hidden": "true",
|
|
698
|
-
className:
|
|
716
|
+
className: c.handle,
|
|
699
717
|
"data-oc-part": "handle"
|
|
700
718
|
}
|
|
701
719
|
) : null,
|
|
702
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ ae(
|
|
703
721
|
"div",
|
|
704
722
|
{
|
|
705
|
-
className:
|
|
723
|
+
className: c.headerInner,
|
|
706
724
|
"data-oc-has-leading": T ? "true" : "false",
|
|
707
725
|
"data-oc-part": "header-inner",
|
|
708
726
|
children: [
|
|
709
|
-
T ? /* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
|
|
713
|
-
|
|
727
|
+
T ? /* @__PURE__ */ d("div", { className: c.headerLeading, "data-oc-part": "header-leading", children: a }) : null,
|
|
728
|
+
/* @__PURE__ */ d("div", { className: c.headerTitle, "data-oc-part": "header-title", children: t ? /* @__PURE__ */ d(O.Title, { children: t }) : n }),
|
|
729
|
+
/* @__PURE__ */ ae("div", { className: c.headerTrailing, "data-oc-part": "header-trailing", children: [
|
|
730
|
+
u,
|
|
731
|
+
m ? /* @__PURE__ */ d(Xe, { label: N }) : null
|
|
714
732
|
] })
|
|
715
733
|
]
|
|
716
734
|
}
|
|
@@ -719,155 +737,155 @@ function Lt({
|
|
|
719
737
|
}
|
|
720
738
|
);
|
|
721
739
|
}
|
|
722
|
-
function
|
|
740
|
+
function Jt({
|
|
723
741
|
className: e = "",
|
|
724
742
|
title: t,
|
|
725
743
|
children: n,
|
|
726
744
|
expanded: a,
|
|
727
|
-
defaultExpanded:
|
|
728
|
-
onExpandedChange:
|
|
729
|
-
disabled:
|
|
730
|
-
forceMount:
|
|
731
|
-
handle:
|
|
732
|
-
headingLevel:
|
|
733
|
-
indicator:
|
|
734
|
-
titleAsDialogTitle:
|
|
735
|
-
navigationProps:
|
|
745
|
+
defaultExpanded: u = !0,
|
|
746
|
+
onExpandedChange: N,
|
|
747
|
+
disabled: m = !1,
|
|
748
|
+
forceMount: C = !0,
|
|
749
|
+
handle: f = !0,
|
|
750
|
+
headingLevel: M = 2,
|
|
751
|
+
indicator: h,
|
|
752
|
+
titleAsDialogTitle: g = !0,
|
|
753
|
+
navigationProps: x,
|
|
736
754
|
panelProps: l,
|
|
737
755
|
panelContentProps: T,
|
|
738
|
-
ref:
|
|
739
|
-
style:
|
|
740
|
-
...
|
|
756
|
+
ref: F,
|
|
757
|
+
style: q,
|
|
758
|
+
...J
|
|
741
759
|
}) {
|
|
742
|
-
const
|
|
743
|
-
canRenderHandle:
|
|
744
|
-
notifyPopupSnapLayoutChange:
|
|
745
|
-
placement:
|
|
746
|
-
} =
|
|
760
|
+
const me = pe("ModalNavigationSection"), {
|
|
761
|
+
canRenderHandle: I,
|
|
762
|
+
notifyPopupSnapLayoutChange: re,
|
|
763
|
+
placement: o
|
|
764
|
+
} = me, { height: K, setNode: D } = Pe(), W = ht(), [r, Q] = Ge({
|
|
747
765
|
value: a,
|
|
748
|
-
defaultValue:
|
|
749
|
-
onChange:
|
|
750
|
-
}), [
|
|
751
|
-
|
|
752
|
-
),
|
|
753
|
-
className:
|
|
754
|
-
id:
|
|
755
|
-
onClick:
|
|
756
|
-
...
|
|
757
|
-
} =
|
|
758
|
-
className:
|
|
759
|
-
id:
|
|
760
|
-
role:
|
|
761
|
-
...
|
|
762
|
-
} = l ?? {}, { className:
|
|
763
|
-
...
|
|
764
|
-
"--oc-modal-navigation-block-size": `${
|
|
765
|
-
} :
|
|
766
|
-
(
|
|
767
|
-
|
|
766
|
+
defaultValue: u,
|
|
767
|
+
onChange: N
|
|
768
|
+
}), [X, Y] = S(
|
|
769
|
+
r ? "open" : "closed"
|
|
770
|
+
), U = `h${Wt(M) ? M : 2}`, {
|
|
771
|
+
className: Z = "",
|
|
772
|
+
id: ie,
|
|
773
|
+
onClick: fe,
|
|
774
|
+
...ee
|
|
775
|
+
} = x ?? {}, {
|
|
776
|
+
className: te = "",
|
|
777
|
+
id: y,
|
|
778
|
+
role: k,
|
|
779
|
+
...B
|
|
780
|
+
} = l ?? {}, { className: _ = "", ...V } = T ?? {}, E = ie ?? `${W}-navigation`, w = y ?? `${W}-panel`, p = `${W}-dialog-title`, L = Qe(t), z = f && I, P = K > 0 ? {
|
|
781
|
+
...q,
|
|
782
|
+
"--oc-modal-navigation-block-size": `${K}px`
|
|
783
|
+
} : q, oe = v(
|
|
784
|
+
(j) => {
|
|
785
|
+
Y(j), o === "popup" && re();
|
|
768
786
|
},
|
|
769
|
-
[
|
|
787
|
+
[re, o]
|
|
770
788
|
);
|
|
771
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ ae(
|
|
772
790
|
"section",
|
|
773
791
|
{
|
|
774
|
-
ref:
|
|
775
|
-
className:
|
|
776
|
-
style:
|
|
777
|
-
...
|
|
792
|
+
ref: F,
|
|
793
|
+
className: R(c.navigationSection, e),
|
|
794
|
+
style: P,
|
|
795
|
+
...J,
|
|
778
796
|
"data-oc-component": "modal-navigation-section",
|
|
779
|
-
"data-oc-motion-state":
|
|
780
|
-
"data-oc-state":
|
|
797
|
+
"data-oc-motion-state": X,
|
|
798
|
+
"data-oc-state": r ? "open" : "closed",
|
|
781
799
|
children: [
|
|
782
|
-
|
|
800
|
+
g && L ? /* @__PURE__ */ d(
|
|
783
801
|
O.Title,
|
|
784
802
|
{
|
|
785
|
-
className:
|
|
786
|
-
id:
|
|
803
|
+
className: c.navigationDialogTitle,
|
|
804
|
+
id: p,
|
|
787
805
|
children: t
|
|
788
806
|
}
|
|
789
807
|
) : null,
|
|
790
|
-
|
|
808
|
+
z ? /* @__PURE__ */ d(
|
|
791
809
|
"div",
|
|
792
810
|
{
|
|
793
811
|
"aria-hidden": "true",
|
|
794
|
-
className:
|
|
812
|
+
className: c.handle,
|
|
795
813
|
"data-oc-part": "handle"
|
|
796
814
|
}
|
|
797
815
|
) : null,
|
|
798
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ d(U, { className: c.navigationHeading, "data-oc-part": "heading", children: /* @__PURE__ */ ae(
|
|
799
817
|
"button",
|
|
800
818
|
{
|
|
801
|
-
...
|
|
802
|
-
ref:
|
|
803
|
-
id:
|
|
804
|
-
className:
|
|
819
|
+
...ee,
|
|
820
|
+
ref: D,
|
|
821
|
+
id: E,
|
|
822
|
+
className: R(c.navigation, Z),
|
|
805
823
|
type: "button",
|
|
806
|
-
disabled:
|
|
807
|
-
"aria-disabled":
|
|
808
|
-
"aria-expanded":
|
|
809
|
-
"aria-controls":
|
|
810
|
-
onClick: (
|
|
811
|
-
|
|
824
|
+
disabled: m,
|
|
825
|
+
"aria-disabled": m ? "true" : ee["aria-disabled"],
|
|
826
|
+
"aria-expanded": r,
|
|
827
|
+
"aria-controls": w,
|
|
828
|
+
onClick: (j) => {
|
|
829
|
+
fe?.(j), !(j.defaultPrevented || m) && Q(!r);
|
|
812
830
|
},
|
|
813
831
|
"data-oc-component": "modal-navigation",
|
|
814
832
|
"data-oc-part": "navigation",
|
|
815
|
-
"data-oc-state":
|
|
833
|
+
"data-oc-state": r ? "open" : "closed",
|
|
816
834
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
818
|
-
|
|
819
|
-
|
|
835
|
+
/* @__PURE__ */ d("span", { className: c.navigationTitle, "data-oc-part": "title", children: t }),
|
|
836
|
+
h === void 0 ? /* @__PURE__ */ d(
|
|
837
|
+
kt,
|
|
820
838
|
{
|
|
821
|
-
className:
|
|
822
|
-
open:
|
|
839
|
+
className: c.navigationIndicator,
|
|
840
|
+
open: r
|
|
823
841
|
}
|
|
824
|
-
) :
|
|
842
|
+
) : h ? /* @__PURE__ */ d(
|
|
825
843
|
"span",
|
|
826
844
|
{
|
|
827
|
-
className:
|
|
845
|
+
className: c.navigationIndicator,
|
|
828
846
|
"data-oc-part": "indicator",
|
|
829
|
-
"data-oc-state":
|
|
830
|
-
children: /* @__PURE__ */
|
|
847
|
+
"data-oc-state": r ? "open" : "closed",
|
|
848
|
+
children: /* @__PURE__ */ d("span", { "data-oc-part": "indicator-frame", children: Nt(h) })
|
|
831
849
|
}
|
|
832
850
|
) : null,
|
|
833
|
-
|
|
851
|
+
m ? null : /* @__PURE__ */ d(yt, { variant: "light" })
|
|
834
852
|
]
|
|
835
853
|
}
|
|
836
854
|
) }),
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
|
|
855
|
+
/* @__PURE__ */ d(
|
|
856
|
+
vt,
|
|
839
857
|
{
|
|
840
|
-
className:
|
|
841
|
-
open:
|
|
842
|
-
forceMount:
|
|
858
|
+
className: R(c.navigationPanel, te),
|
|
859
|
+
open: r,
|
|
860
|
+
forceMount: C,
|
|
843
861
|
intent: "expand",
|
|
844
862
|
measureBlockSize: "rendered",
|
|
845
|
-
onMotionStateChange:
|
|
863
|
+
onMotionStateChange: oe,
|
|
846
864
|
contentProps: {
|
|
847
|
-
className:
|
|
865
|
+
className: c.navigationPanelFrame,
|
|
848
866
|
"data-oc-part": "panel-inner"
|
|
849
867
|
},
|
|
850
|
-
...
|
|
851
|
-
"aria-hidden":
|
|
852
|
-
"aria-labelledby":
|
|
853
|
-
id:
|
|
854
|
-
inert:
|
|
855
|
-
role:
|
|
868
|
+
...B,
|
|
869
|
+
"aria-hidden": r ? void 0 : !0,
|
|
870
|
+
"aria-labelledby": E,
|
|
871
|
+
id: w,
|
|
872
|
+
inert: r ? void 0 : !0,
|
|
873
|
+
role: k ?? "region",
|
|
856
874
|
"data-oc-component": "modal-navigation-panel",
|
|
857
|
-
"data-oc-state":
|
|
858
|
-
children: /* @__PURE__ */
|
|
859
|
-
|
|
875
|
+
"data-oc-state": r ? "open" : "closed",
|
|
876
|
+
children: /* @__PURE__ */ d(
|
|
877
|
+
Ue,
|
|
860
878
|
{
|
|
861
|
-
className:
|
|
879
|
+
className: c.navigationPanelScroll,
|
|
862
880
|
"data-oc-component": "modal-navigation-panel-scroll-area",
|
|
863
881
|
"data-oc-part": "panel-scroll-area",
|
|
864
|
-
children: /* @__PURE__ */
|
|
865
|
-
|
|
882
|
+
children: /* @__PURE__ */ d(
|
|
883
|
+
_e,
|
|
866
884
|
{
|
|
867
|
-
...
|
|
868
|
-
className:
|
|
869
|
-
|
|
870
|
-
|
|
885
|
+
...V,
|
|
886
|
+
className: R(
|
|
887
|
+
c.navigationPanelInner,
|
|
888
|
+
_
|
|
871
889
|
),
|
|
872
890
|
"data-oc-component": "modal-navigation-panel-content",
|
|
873
891
|
children: n
|
|
@@ -881,53 +899,53 @@ function zt({
|
|
|
881
899
|
}
|
|
882
900
|
);
|
|
883
901
|
}
|
|
884
|
-
function
|
|
902
|
+
function Qt({
|
|
885
903
|
className: e = "",
|
|
886
904
|
children: t,
|
|
887
905
|
layout: n = "content",
|
|
888
906
|
containerClassName: a = "",
|
|
889
|
-
containerProps:
|
|
890
|
-
ref:
|
|
891
|
-
...
|
|
907
|
+
containerProps: u,
|
|
908
|
+
ref: N,
|
|
909
|
+
...m
|
|
892
910
|
}) {
|
|
893
|
-
const
|
|
911
|
+
const C = pe("ModalBody"), { bodyNode: f, setBodyNode: M, setScrollState: h } = C, g = v(
|
|
894
912
|
(l) => {
|
|
895
|
-
|
|
913
|
+
h(Je(l));
|
|
896
914
|
},
|
|
897
|
-
[
|
|
898
|
-
),
|
|
915
|
+
[h]
|
|
916
|
+
), x = v(
|
|
899
917
|
(l) => {
|
|
900
|
-
|
|
918
|
+
M(l), Fe(N, l), g(l);
|
|
901
919
|
},
|
|
902
|
-
[
|
|
920
|
+
[N, M, g]
|
|
903
921
|
);
|
|
904
|
-
return
|
|
905
|
-
const l =
|
|
906
|
-
if (!l || (
|
|
907
|
-
const T = new ResizeObserver(() =>
|
|
922
|
+
return ne(() => {
|
|
923
|
+
const l = f;
|
|
924
|
+
if (!l || (g(l), typeof ResizeObserver > "u")) return;
|
|
925
|
+
const T = new ResizeObserver(() => g(l));
|
|
908
926
|
return T.observe(l), l.firstElementChild && T.observe(l.firstElementChild), () => T.disconnect();
|
|
909
|
-
}, [
|
|
910
|
-
|
|
927
|
+
}, [f, g]), /* @__PURE__ */ d(
|
|
928
|
+
Ue,
|
|
911
929
|
{
|
|
912
|
-
...
|
|
913
|
-
className:
|
|
930
|
+
...m,
|
|
931
|
+
className: R(c.body, e),
|
|
914
932
|
"data-oc-part": "body",
|
|
915
933
|
"data-oc-component": "modal-body",
|
|
916
|
-
children: /* @__PURE__ */
|
|
917
|
-
|
|
934
|
+
children: /* @__PURE__ */ d(
|
|
935
|
+
_e,
|
|
918
936
|
{
|
|
919
|
-
ref:
|
|
920
|
-
className:
|
|
937
|
+
ref: x,
|
|
938
|
+
className: c.bodyContainer,
|
|
921
939
|
"data-oc-part": "body-container",
|
|
922
940
|
"data-oc-component": "modal-body-container",
|
|
923
941
|
onScroll: (l) => {
|
|
924
|
-
|
|
942
|
+
u?.onScroll?.(l), g(l.currentTarget);
|
|
925
943
|
},
|
|
926
|
-
children: /* @__PURE__ */
|
|
944
|
+
children: /* @__PURE__ */ d(
|
|
927
945
|
"section",
|
|
928
946
|
{
|
|
929
|
-
...
|
|
930
|
-
className:
|
|
947
|
+
...u,
|
|
948
|
+
className: R(c.bodyContent, a),
|
|
931
949
|
"data-oc-part": "body-content",
|
|
932
950
|
"data-oc-component": "modal-body-content",
|
|
933
951
|
"data-oc-layout": n,
|
|
@@ -939,77 +957,77 @@ function jt({
|
|
|
939
957
|
}
|
|
940
958
|
);
|
|
941
959
|
}
|
|
942
|
-
function
|
|
960
|
+
function Xt({
|
|
943
961
|
className: e = "",
|
|
944
962
|
children: t,
|
|
945
963
|
background: n = "auto",
|
|
946
964
|
ref: a,
|
|
947
|
-
...
|
|
965
|
+
...u
|
|
948
966
|
}) {
|
|
949
|
-
const
|
|
950
|
-
(
|
|
951
|
-
|
|
967
|
+
const N = pe("ModalFooter"), { scrollState: m, setFooterNode: C } = N, f = v(
|
|
968
|
+
(g) => {
|
|
969
|
+
C(g), Fe(a, g);
|
|
952
970
|
},
|
|
953
|
-
[a,
|
|
954
|
-
),
|
|
955
|
-
return /* @__PURE__ */
|
|
971
|
+
[a, C]
|
|
972
|
+
), M = n === !0 || n === "auto" && m.canScroll && !m.scrolledToBottom;
|
|
973
|
+
return /* @__PURE__ */ d(
|
|
956
974
|
"footer",
|
|
957
975
|
{
|
|
958
|
-
...
|
|
959
|
-
ref:
|
|
960
|
-
className:
|
|
976
|
+
...u,
|
|
977
|
+
ref: f,
|
|
978
|
+
className: R(c.footer, e),
|
|
961
979
|
"data-oc-part": "footer",
|
|
962
980
|
"data-oc-component": "modal-footer",
|
|
963
|
-
"data-oc-background":
|
|
981
|
+
"data-oc-background": M ? "true" : "false",
|
|
964
982
|
children: t
|
|
965
983
|
}
|
|
966
984
|
);
|
|
967
985
|
}
|
|
968
|
-
function
|
|
986
|
+
function Xe({
|
|
969
987
|
className: e = "",
|
|
970
|
-
children: t = /* @__PURE__ */
|
|
988
|
+
children: t = /* @__PURE__ */ d(gt, {}),
|
|
971
989
|
label: n = "닫기",
|
|
972
990
|
size: a = 24,
|
|
973
|
-
disabled:
|
|
974
|
-
onClick:
|
|
975
|
-
...
|
|
991
|
+
disabled: u,
|
|
992
|
+
onClick: N,
|
|
993
|
+
...m
|
|
976
994
|
}) {
|
|
977
|
-
const
|
|
978
|
-
return /* @__PURE__ */
|
|
979
|
-
|
|
995
|
+
const C = pe("ModalClose");
|
|
996
|
+
return /* @__PURE__ */ d(
|
|
997
|
+
St,
|
|
980
998
|
{
|
|
981
|
-
...
|
|
982
|
-
className:
|
|
983
|
-
"aria-label":
|
|
999
|
+
...m,
|
|
1000
|
+
className: R(c.close, e),
|
|
1001
|
+
"aria-label": m["aria-label"] ?? n,
|
|
984
1002
|
"data-oc-part": "close",
|
|
985
1003
|
"data-oc-component": "modal-close",
|
|
986
|
-
disabled:
|
|
987
|
-
onClick: (
|
|
988
|
-
|
|
1004
|
+
disabled: u,
|
|
1005
|
+
onClick: (f) => {
|
|
1006
|
+
N?.(f), !f.defaultPrevented && !u && C.requestClose({ reason: "close-button" });
|
|
989
1007
|
},
|
|
990
1008
|
size: a,
|
|
991
1009
|
children: t
|
|
992
1010
|
}
|
|
993
1011
|
);
|
|
994
1012
|
}
|
|
995
|
-
const
|
|
996
|
-
Root:
|
|
997
|
-
Trigger:
|
|
998
|
-
Content:
|
|
999
|
-
Header:
|
|
1000
|
-
NavigationSection:
|
|
1001
|
-
Body:
|
|
1002
|
-
Footer:
|
|
1003
|
-
Close:
|
|
1013
|
+
const ko = Object.assign(We, {
|
|
1014
|
+
Root: We,
|
|
1015
|
+
Trigger: Ut,
|
|
1016
|
+
Content: _t,
|
|
1017
|
+
Header: Gt,
|
|
1018
|
+
NavigationSection: Jt,
|
|
1019
|
+
Body: Qt,
|
|
1020
|
+
Footer: Xt,
|
|
1021
|
+
Close: Xe
|
|
1004
1022
|
});
|
|
1005
1023
|
export {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1024
|
+
Qt as ModalBody,
|
|
1025
|
+
Xe as ModalClose,
|
|
1026
|
+
_t as ModalContent,
|
|
1027
|
+
Xt as ModalFooter,
|
|
1028
|
+
Gt as ModalHeader,
|
|
1029
|
+
Jt as ModalNavigationSection,
|
|
1030
|
+
We as ModalRoot,
|
|
1031
|
+
Ut as ModalTrigger,
|
|
1032
|
+
ko as default
|
|
1015
1033
|
};
|