@stll/folio-react 0.7.0 → 0.8.1
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/{CommentsSidebar-B8X5a8JW.js → CommentsSidebar-Byn5lyrt.js} +2 -2
- package/dist/{FindReplaceDialog-Bx7QaFQ_.js → FindReplaceDialog-CqKK82nE.js} +1 -1
- package/dist/FootnotePropertiesDialog-CixRdIiT.js +822 -0
- package/dist/ImagePositionDialog-DNodkoI2.js +1065 -0
- package/dist/ImagePropertiesDialog-CLsDIUWb.js +613 -0
- package/dist/{InsertSymbolDialog-Df9dyLvn.js → InsertSymbolDialog-DCFLmfzn.js} +1 -1
- package/dist/PageSetupDialog-COkgeOQn.js +820 -0
- package/dist/TablePropertiesDialog-B_AGrPR8.js +434 -0
- package/dist/compat/eigenpal.d.ts +1 -1
- package/dist/compat/eigenpal.js +1 -1
- package/dist/{dialogs-DsHnfN0g.js → dialogs-Bj2PdycR.js} +265 -201
- package/dist/dialogs.js +8 -8
- package/dist/{folio-ui-C-85DSuK.js → folio-ui-BgDDRsUX.js} +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/{renderAsync-ChQI9UJG.d.ts → renderAsync-BmxQE7iO.d.ts} +3 -2
- package/dist/{renderAsync-evdyE_GW.js → renderAsync-BtWYvQMT.js} +378 -273
- package/package.json +2 -2
- package/dist/FootnotePropertiesDialog-2lmpg9m8.js +0 -646
- package/dist/ImagePositionDialog-D3MileYL.js +0 -842
- package/dist/ImagePropertiesDialog-CzK8HCaW.js +0 -465
- package/dist/PageSetupDialog-PSs9YdPb.js +0 -684
- package/dist/TablePropertiesDialog-PQxKKM0Y.js +0 -344
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
-
import { r as useFolioUI } from "./folio-ui-C-85DSuK.js";
|
|
3
|
-
import { u as useCloseOnDialogOpenChange } from "./dialogChrome-BoGYPgeu.js";
|
|
4
|
-
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { useEffect, useId, useState } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/dialogs/ImagePropertiesDialog.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Image Properties Dialog
|
|
10
|
-
*
|
|
11
|
-
* Modal for editing image properties:
|
|
12
|
-
* - Alt text for accessibility
|
|
13
|
-
* - Border/outline style, color, and width
|
|
14
|
-
*/
|
|
15
|
-
var ImagePropertiesDialog_exports = /* @__PURE__ */ __exportAll({ ImagePropertiesDialog: () => ImagePropertiesDialog });
|
|
16
|
-
function ImagePropertiesDialog(t0) {
|
|
17
|
-
const $ = c(102);
|
|
18
|
-
const { isOpen, onClose, onApply, currentData } = t0;
|
|
19
|
-
const { Root: Dialog, Portal: DialogPortal, Backdrop: DialogBackdrop, Popup: DialogPopup, Title: DialogTitle, Close: DialogClose } = useFolioUI().Dialog;
|
|
20
|
-
const handleOpenChange = useCloseOnDialogOpenChange(onClose);
|
|
21
|
-
const id = useId();
|
|
22
|
-
const [alt, setAlt] = useState("");
|
|
23
|
-
const [borderWidth, setBorderWidth] = useState(0);
|
|
24
|
-
const [borderColor, setBorderColor] = useState("#000000");
|
|
25
|
-
const [borderStyle, setBorderStyle] = useState("solid");
|
|
26
|
-
let t1;
|
|
27
|
-
if ($[0] !== currentData?.alt || $[1] !== currentData?.borderColor || $[2] !== currentData?.borderStyle || $[3] !== currentData?.borderWidth || $[4] !== isOpen) {
|
|
28
|
-
t1 = () => {
|
|
29
|
-
if (!isOpen) return;
|
|
30
|
-
setAlt(currentData?.alt ?? "");
|
|
31
|
-
setBorderWidth(currentData?.borderWidth ?? 0);
|
|
32
|
-
setBorderColor(currentData?.borderColor ?? "#000000");
|
|
33
|
-
setBorderStyle(currentData?.borderStyle ?? "solid");
|
|
34
|
-
};
|
|
35
|
-
$[0] = currentData?.alt;
|
|
36
|
-
$[1] = currentData?.borderColor;
|
|
37
|
-
$[2] = currentData?.borderStyle;
|
|
38
|
-
$[3] = currentData?.borderWidth;
|
|
39
|
-
$[4] = isOpen;
|
|
40
|
-
$[5] = t1;
|
|
41
|
-
} else t1 = $[5];
|
|
42
|
-
let t2;
|
|
43
|
-
if ($[6] !== currentData || $[7] !== isOpen) {
|
|
44
|
-
t2 = [isOpen, currentData];
|
|
45
|
-
$[6] = currentData;
|
|
46
|
-
$[7] = isOpen;
|
|
47
|
-
$[8] = t2;
|
|
48
|
-
} else t2 = $[8];
|
|
49
|
-
useEffect(t1, t2);
|
|
50
|
-
let t3;
|
|
51
|
-
if ($[9] !== alt || $[10] !== borderColor || $[11] !== borderStyle || $[12] !== borderWidth || $[13] !== onApply || $[14] !== onClose) {
|
|
52
|
-
t3 = () => {
|
|
53
|
-
onApply({
|
|
54
|
-
...alt ? { alt } : {},
|
|
55
|
-
...borderWidth > 0 ? {
|
|
56
|
-
borderWidth,
|
|
57
|
-
borderColor,
|
|
58
|
-
borderStyle
|
|
59
|
-
} : {}
|
|
60
|
-
});
|
|
61
|
-
onClose();
|
|
62
|
-
};
|
|
63
|
-
$[9] = alt;
|
|
64
|
-
$[10] = borderColor;
|
|
65
|
-
$[11] = borderStyle;
|
|
66
|
-
$[12] = borderWidth;
|
|
67
|
-
$[13] = onApply;
|
|
68
|
-
$[14] = onClose;
|
|
69
|
-
$[15] = t3;
|
|
70
|
-
} else t3 = $[15];
|
|
71
|
-
const handleApply = t3;
|
|
72
|
-
const t4 = `${id}-img-border-width`;
|
|
73
|
-
const t5 = `${id}-img-border-style`;
|
|
74
|
-
const t6 = `${id}-img-border-color`;
|
|
75
|
-
let t7;
|
|
76
|
-
if ($[16] !== t4 || $[17] !== t5 || $[18] !== t6) {
|
|
77
|
-
t7 = {
|
|
78
|
-
borderWidth: t4,
|
|
79
|
-
borderStyle: t5,
|
|
80
|
-
borderColor: t6
|
|
81
|
-
};
|
|
82
|
-
$[16] = t4;
|
|
83
|
-
$[17] = t5;
|
|
84
|
-
$[18] = t6;
|
|
85
|
-
$[19] = t7;
|
|
86
|
-
} else t7 = $[19];
|
|
87
|
-
const fieldIds = t7;
|
|
88
|
-
let t8;
|
|
89
|
-
if ($[20] !== DialogBackdrop) {
|
|
90
|
-
t8 = /* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 z-[10000] bg-black/50" });
|
|
91
|
-
$[20] = DialogBackdrop;
|
|
92
|
-
$[21] = t8;
|
|
93
|
-
} else t8 = $[21];
|
|
94
|
-
let t9;
|
|
95
|
-
if ($[22] !== DialogTitle) {
|
|
96
|
-
t9 = /* @__PURE__ */ jsx(DialogTitle, {
|
|
97
|
-
className: "border-b px-5 py-3 text-base font-semibold",
|
|
98
|
-
children: "Image Properties"
|
|
99
|
-
});
|
|
100
|
-
$[22] = DialogTitle;
|
|
101
|
-
$[23] = t9;
|
|
102
|
-
} else t9 = $[23];
|
|
103
|
-
let t10;
|
|
104
|
-
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
|
-
t10 = /* @__PURE__ */ jsx("div", {
|
|
106
|
-
className: "text-foreground text-[13px] font-semibold",
|
|
107
|
-
children: "Alt Text"
|
|
108
|
-
});
|
|
109
|
-
$[24] = t10;
|
|
110
|
-
} else t10 = $[24];
|
|
111
|
-
let t11;
|
|
112
|
-
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
113
|
-
t11 = (e) => setAlt(e.target.value);
|
|
114
|
-
$[25] = t11;
|
|
115
|
-
} else t11 = $[25];
|
|
116
|
-
let t12;
|
|
117
|
-
if ($[26] !== alt) {
|
|
118
|
-
t12 = /* @__PURE__ */ jsxs("div", {
|
|
119
|
-
className: "flex flex-col gap-2",
|
|
120
|
-
children: [t10, /* @__PURE__ */ jsx("textarea", {
|
|
121
|
-
className: "border-input bg-background text-foreground font-[inherit] min-h-[60px] resize-y rounded border px-1.5 py-1 text-xs outline-none",
|
|
122
|
-
value: alt,
|
|
123
|
-
onChange: t11,
|
|
124
|
-
placeholder: "Describe this image for accessibility..."
|
|
125
|
-
})]
|
|
126
|
-
});
|
|
127
|
-
$[26] = alt;
|
|
128
|
-
$[27] = t12;
|
|
129
|
-
} else t12 = $[27];
|
|
130
|
-
let t13;
|
|
131
|
-
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
132
|
-
t13 = /* @__PURE__ */ jsx("div", {
|
|
133
|
-
className: "text-foreground text-[13px] font-semibold",
|
|
134
|
-
children: "Border"
|
|
135
|
-
});
|
|
136
|
-
$[28] = t13;
|
|
137
|
-
} else t13 = $[28];
|
|
138
|
-
let t14;
|
|
139
|
-
if ($[29] !== fieldIds.borderWidth) {
|
|
140
|
-
t14 = /* @__PURE__ */ jsx("label", {
|
|
141
|
-
htmlFor: fieldIds.borderWidth,
|
|
142
|
-
className: "w-[60px] text-muted-foreground text-xs",
|
|
143
|
-
children: "Width"
|
|
144
|
-
});
|
|
145
|
-
$[29] = fieldIds.borderWidth;
|
|
146
|
-
$[30] = t14;
|
|
147
|
-
} else t14 = $[30];
|
|
148
|
-
let t15;
|
|
149
|
-
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
150
|
-
t15 = (e_0) => setBorderWidth(Number(e_0.target.value) || 0);
|
|
151
|
-
$[31] = t15;
|
|
152
|
-
} else t15 = $[31];
|
|
153
|
-
let t16;
|
|
154
|
-
if ($[32] !== borderWidth || $[33] !== fieldIds.borderWidth) {
|
|
155
|
-
t16 = /* @__PURE__ */ jsx("input", {
|
|
156
|
-
id: fieldIds.borderWidth,
|
|
157
|
-
type: "number",
|
|
158
|
-
className: "border-input bg-background text-foreground flex-1 rounded border px-1.5 py-1 text-xs outline-none max-w-[80px]",
|
|
159
|
-
min: 0,
|
|
160
|
-
max: 20,
|
|
161
|
-
step: .5,
|
|
162
|
-
value: borderWidth,
|
|
163
|
-
onChange: t15
|
|
164
|
-
});
|
|
165
|
-
$[32] = borderWidth;
|
|
166
|
-
$[33] = fieldIds.borderWidth;
|
|
167
|
-
$[34] = t16;
|
|
168
|
-
} else t16 = $[34];
|
|
169
|
-
let t17;
|
|
170
|
-
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
171
|
-
t17 = /* @__PURE__ */ jsx("span", {
|
|
172
|
-
className: "text-muted-foreground text-xs",
|
|
173
|
-
children: "px"
|
|
174
|
-
});
|
|
175
|
-
$[35] = t17;
|
|
176
|
-
} else t17 = $[35];
|
|
177
|
-
let t18;
|
|
178
|
-
if ($[36] !== t14 || $[37] !== t16) {
|
|
179
|
-
t18 = /* @__PURE__ */ jsxs("div", {
|
|
180
|
-
className: "flex items-center gap-2",
|
|
181
|
-
children: [
|
|
182
|
-
t14,
|
|
183
|
-
t16,
|
|
184
|
-
t17
|
|
185
|
-
]
|
|
186
|
-
});
|
|
187
|
-
$[36] = t14;
|
|
188
|
-
$[37] = t16;
|
|
189
|
-
$[38] = t18;
|
|
190
|
-
} else t18 = $[38];
|
|
191
|
-
let t19;
|
|
192
|
-
if ($[39] !== fieldIds.borderStyle) {
|
|
193
|
-
t19 = /* @__PURE__ */ jsx("label", {
|
|
194
|
-
htmlFor: fieldIds.borderStyle,
|
|
195
|
-
className: "w-[60px] text-muted-foreground text-xs",
|
|
196
|
-
children: "Style"
|
|
197
|
-
});
|
|
198
|
-
$[39] = fieldIds.borderStyle;
|
|
199
|
-
$[40] = t19;
|
|
200
|
-
} else t19 = $[40];
|
|
201
|
-
let t20;
|
|
202
|
-
let t21;
|
|
203
|
-
let t22;
|
|
204
|
-
let t23;
|
|
205
|
-
let t24;
|
|
206
|
-
let t25;
|
|
207
|
-
let t26;
|
|
208
|
-
let t27;
|
|
209
|
-
let t28;
|
|
210
|
-
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
211
|
-
t20 = (e_1) => setBorderStyle(e_1.target.value);
|
|
212
|
-
t21 = /* @__PURE__ */ jsx("option", {
|
|
213
|
-
value: "solid",
|
|
214
|
-
children: "Solid"
|
|
215
|
-
});
|
|
216
|
-
t22 = /* @__PURE__ */ jsx("option", {
|
|
217
|
-
value: "dashed",
|
|
218
|
-
children: "Dashed"
|
|
219
|
-
});
|
|
220
|
-
t23 = /* @__PURE__ */ jsx("option", {
|
|
221
|
-
value: "dotted",
|
|
222
|
-
children: "Dotted"
|
|
223
|
-
});
|
|
224
|
-
t24 = /* @__PURE__ */ jsx("option", {
|
|
225
|
-
value: "double",
|
|
226
|
-
children: "Double"
|
|
227
|
-
});
|
|
228
|
-
t25 = /* @__PURE__ */ jsx("option", {
|
|
229
|
-
value: "groove",
|
|
230
|
-
children: "Groove"
|
|
231
|
-
});
|
|
232
|
-
t26 = /* @__PURE__ */ jsx("option", {
|
|
233
|
-
value: "ridge",
|
|
234
|
-
children: "Ridge"
|
|
235
|
-
});
|
|
236
|
-
t27 = /* @__PURE__ */ jsx("option", {
|
|
237
|
-
value: "inset",
|
|
238
|
-
children: "Inset"
|
|
239
|
-
});
|
|
240
|
-
t28 = /* @__PURE__ */ jsx("option", {
|
|
241
|
-
value: "outset",
|
|
242
|
-
children: "Outset"
|
|
243
|
-
});
|
|
244
|
-
$[41] = t20;
|
|
245
|
-
$[42] = t21;
|
|
246
|
-
$[43] = t22;
|
|
247
|
-
$[44] = t23;
|
|
248
|
-
$[45] = t24;
|
|
249
|
-
$[46] = t25;
|
|
250
|
-
$[47] = t26;
|
|
251
|
-
$[48] = t27;
|
|
252
|
-
$[49] = t28;
|
|
253
|
-
} else {
|
|
254
|
-
t20 = $[41];
|
|
255
|
-
t21 = $[42];
|
|
256
|
-
t22 = $[43];
|
|
257
|
-
t23 = $[44];
|
|
258
|
-
t24 = $[45];
|
|
259
|
-
t25 = $[46];
|
|
260
|
-
t26 = $[47];
|
|
261
|
-
t27 = $[48];
|
|
262
|
-
t28 = $[49];
|
|
263
|
-
}
|
|
264
|
-
let t29;
|
|
265
|
-
if ($[50] !== borderStyle || $[51] !== fieldIds.borderStyle) {
|
|
266
|
-
t29 = /* @__PURE__ */ jsxs("select", {
|
|
267
|
-
id: fieldIds.borderStyle,
|
|
268
|
-
className: "border-input bg-background text-foreground flex-1 rounded border px-1.5 py-1 text-xs outline-none",
|
|
269
|
-
value: borderStyle,
|
|
270
|
-
onChange: t20,
|
|
271
|
-
children: [
|
|
272
|
-
t21,
|
|
273
|
-
t22,
|
|
274
|
-
t23,
|
|
275
|
-
t24,
|
|
276
|
-
t25,
|
|
277
|
-
t26,
|
|
278
|
-
t27,
|
|
279
|
-
t28
|
|
280
|
-
]
|
|
281
|
-
});
|
|
282
|
-
$[50] = borderStyle;
|
|
283
|
-
$[51] = fieldIds.borderStyle;
|
|
284
|
-
$[52] = t29;
|
|
285
|
-
} else t29 = $[52];
|
|
286
|
-
let t30;
|
|
287
|
-
if ($[53] !== t19 || $[54] !== t29) {
|
|
288
|
-
t30 = /* @__PURE__ */ jsxs("div", {
|
|
289
|
-
className: "flex items-center gap-2",
|
|
290
|
-
children: [t19, t29]
|
|
291
|
-
});
|
|
292
|
-
$[53] = t19;
|
|
293
|
-
$[54] = t29;
|
|
294
|
-
$[55] = t30;
|
|
295
|
-
} else t30 = $[55];
|
|
296
|
-
let t31;
|
|
297
|
-
if ($[56] !== fieldIds.borderColor) {
|
|
298
|
-
t31 = /* @__PURE__ */ jsx("label", {
|
|
299
|
-
htmlFor: fieldIds.borderColor,
|
|
300
|
-
className: "w-[60px] text-muted-foreground text-xs",
|
|
301
|
-
children: "Color"
|
|
302
|
-
});
|
|
303
|
-
$[56] = fieldIds.borderColor;
|
|
304
|
-
$[57] = t31;
|
|
305
|
-
} else t31 = $[57];
|
|
306
|
-
let t32;
|
|
307
|
-
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
308
|
-
t32 = (e_2) => setBorderColor(e_2.target.value);
|
|
309
|
-
$[58] = t32;
|
|
310
|
-
} else t32 = $[58];
|
|
311
|
-
let t33;
|
|
312
|
-
if ($[59] !== borderColor || $[60] !== fieldIds.borderColor) {
|
|
313
|
-
t33 = /* @__PURE__ */ jsx("input", {
|
|
314
|
-
id: fieldIds.borderColor,
|
|
315
|
-
type: "color",
|
|
316
|
-
value: borderColor,
|
|
317
|
-
onChange: t32,
|
|
318
|
-
className: "border-input h-6 w-8 cursor-pointer rounded border p-0"
|
|
319
|
-
});
|
|
320
|
-
$[59] = borderColor;
|
|
321
|
-
$[60] = fieldIds.borderColor;
|
|
322
|
-
$[61] = t33;
|
|
323
|
-
} else t33 = $[61];
|
|
324
|
-
let t34;
|
|
325
|
-
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
326
|
-
t34 = (e_3) => setBorderColor(e_3.target.value);
|
|
327
|
-
$[62] = t34;
|
|
328
|
-
} else t34 = $[62];
|
|
329
|
-
let t35;
|
|
330
|
-
if ($[63] !== borderColor) {
|
|
331
|
-
t35 = /* @__PURE__ */ jsx("input", {
|
|
332
|
-
type: "text",
|
|
333
|
-
className: "border-input bg-background text-foreground flex-1 rounded border px-1.5 py-1 text-xs outline-none max-w-[90px]",
|
|
334
|
-
value: borderColor,
|
|
335
|
-
onChange: t34
|
|
336
|
-
});
|
|
337
|
-
$[63] = borderColor;
|
|
338
|
-
$[64] = t35;
|
|
339
|
-
} else t35 = $[64];
|
|
340
|
-
let t36;
|
|
341
|
-
if ($[65] !== t31 || $[66] !== t33 || $[67] !== t35) {
|
|
342
|
-
t36 = /* @__PURE__ */ jsxs("div", {
|
|
343
|
-
className: "flex items-center gap-2",
|
|
344
|
-
children: [
|
|
345
|
-
t31,
|
|
346
|
-
t33,
|
|
347
|
-
t35
|
|
348
|
-
]
|
|
349
|
-
});
|
|
350
|
-
$[65] = t31;
|
|
351
|
-
$[66] = t33;
|
|
352
|
-
$[67] = t35;
|
|
353
|
-
$[68] = t36;
|
|
354
|
-
} else t36 = $[68];
|
|
355
|
-
let t37;
|
|
356
|
-
if ($[69] !== borderColor || $[70] !== borderStyle || $[71] !== borderWidth) {
|
|
357
|
-
t37 = borderWidth > 0 && /* @__PURE__ */ jsx("div", {
|
|
358
|
-
className: "text-muted-foreground mt-1 rounded p-2 text-center text-[11px]",
|
|
359
|
-
style: { border: `${borderWidth}px ${borderStyle} ${borderColor}` },
|
|
360
|
-
children: "Preview"
|
|
361
|
-
});
|
|
362
|
-
$[69] = borderColor;
|
|
363
|
-
$[70] = borderStyle;
|
|
364
|
-
$[71] = borderWidth;
|
|
365
|
-
$[72] = t37;
|
|
366
|
-
} else t37 = $[72];
|
|
367
|
-
let t38;
|
|
368
|
-
if ($[73] !== t18 || $[74] !== t30 || $[75] !== t36 || $[76] !== t37) {
|
|
369
|
-
t38 = /* @__PURE__ */ jsxs("div", {
|
|
370
|
-
className: "flex flex-col gap-2",
|
|
371
|
-
children: [
|
|
372
|
-
t13,
|
|
373
|
-
t18,
|
|
374
|
-
t30,
|
|
375
|
-
t36,
|
|
376
|
-
t37
|
|
377
|
-
]
|
|
378
|
-
});
|
|
379
|
-
$[73] = t18;
|
|
380
|
-
$[74] = t30;
|
|
381
|
-
$[75] = t36;
|
|
382
|
-
$[76] = t37;
|
|
383
|
-
$[77] = t38;
|
|
384
|
-
} else t38 = $[77];
|
|
385
|
-
let t39;
|
|
386
|
-
if ($[78] !== t12 || $[79] !== t38) {
|
|
387
|
-
t39 = /* @__PURE__ */ jsxs("div", {
|
|
388
|
-
className: "flex flex-col gap-4 px-5 py-4",
|
|
389
|
-
children: [t12, t38]
|
|
390
|
-
});
|
|
391
|
-
$[78] = t12;
|
|
392
|
-
$[79] = t38;
|
|
393
|
-
$[80] = t39;
|
|
394
|
-
} else t39 = $[80];
|
|
395
|
-
let t40;
|
|
396
|
-
if ($[81] !== DialogClose) {
|
|
397
|
-
t40 = /* @__PURE__ */ jsx(DialogClose, {
|
|
398
|
-
className: "border-input rounded border px-4 py-1.5 text-[13px]",
|
|
399
|
-
children: "Cancel"
|
|
400
|
-
});
|
|
401
|
-
$[81] = DialogClose;
|
|
402
|
-
$[82] = t40;
|
|
403
|
-
} else t40 = $[82];
|
|
404
|
-
let t41;
|
|
405
|
-
if ($[83] !== handleApply) {
|
|
406
|
-
t41 = /* @__PURE__ */ jsx("button", {
|
|
407
|
-
className: "bg-primary text-primary-foreground rounded px-4 py-1.5 text-[13px] font-medium",
|
|
408
|
-
onClick: handleApply,
|
|
409
|
-
type: "button",
|
|
410
|
-
children: "Apply"
|
|
411
|
-
});
|
|
412
|
-
$[83] = handleApply;
|
|
413
|
-
$[84] = t41;
|
|
414
|
-
} else t41 = $[84];
|
|
415
|
-
let t42;
|
|
416
|
-
if ($[85] !== t40 || $[86] !== t41) {
|
|
417
|
-
t42 = /* @__PURE__ */ jsxs("div", {
|
|
418
|
-
className: "flex justify-end gap-2 border-t px-5 py-3",
|
|
419
|
-
children: [t40, t41]
|
|
420
|
-
});
|
|
421
|
-
$[85] = t40;
|
|
422
|
-
$[86] = t41;
|
|
423
|
-
$[87] = t42;
|
|
424
|
-
} else t42 = $[87];
|
|
425
|
-
let t43;
|
|
426
|
-
if ($[88] !== DialogPopup || $[89] !== t39 || $[90] !== t42 || $[91] !== t9) {
|
|
427
|
-
t43 = /* @__PURE__ */ jsxs(DialogPopup, {
|
|
428
|
-
className: "bg-popover fixed start-1/2 top-1/2 z-[10001] w-full max-w-[440px] min-w-[380px] -translate-x-1/2 -translate-y-1/2 rounded-lg border shadow-xl",
|
|
429
|
-
children: [
|
|
430
|
-
t9,
|
|
431
|
-
t39,
|
|
432
|
-
t42
|
|
433
|
-
]
|
|
434
|
-
});
|
|
435
|
-
$[88] = DialogPopup;
|
|
436
|
-
$[89] = t39;
|
|
437
|
-
$[90] = t42;
|
|
438
|
-
$[91] = t9;
|
|
439
|
-
$[92] = t43;
|
|
440
|
-
} else t43 = $[92];
|
|
441
|
-
let t44;
|
|
442
|
-
if ($[93] !== DialogPortal || $[94] !== t43 || $[95] !== t8) {
|
|
443
|
-
t44 = /* @__PURE__ */ jsxs(DialogPortal, { children: [t8, t43] });
|
|
444
|
-
$[93] = DialogPortal;
|
|
445
|
-
$[94] = t43;
|
|
446
|
-
$[95] = t8;
|
|
447
|
-
$[96] = t44;
|
|
448
|
-
} else t44 = $[96];
|
|
449
|
-
let t45;
|
|
450
|
-
if ($[97] !== Dialog || $[98] !== handleOpenChange || $[99] !== isOpen || $[100] !== t44) {
|
|
451
|
-
t45 = /* @__PURE__ */ jsx(Dialog, {
|
|
452
|
-
open: isOpen,
|
|
453
|
-
onOpenChange: handleOpenChange,
|
|
454
|
-
children: t44
|
|
455
|
-
});
|
|
456
|
-
$[97] = Dialog;
|
|
457
|
-
$[98] = handleOpenChange;
|
|
458
|
-
$[99] = isOpen;
|
|
459
|
-
$[100] = t44;
|
|
460
|
-
$[101] = t45;
|
|
461
|
-
} else t45 = $[101];
|
|
462
|
-
return t45;
|
|
463
|
-
}
|
|
464
|
-
//#endregion
|
|
465
|
-
export { ImagePropertiesDialog_exports as n, ImagePropertiesDialog as t };
|