@floegence/floe-webapp-core 0.63.0 → 0.65.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/PDFJS-LICENSE +177 -0
- package/dist/components/ui/Dialog.d.ts +6 -5
- package/dist/components/ui/Dialog.js +95 -103
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/checkmark.svg +5 -0
- package/dist/images/comment-actionsButton.svg +3 -0
- package/dist/images/comment-closeButton.svg +3 -0
- package/dist/images/comment-editButton.svg +8 -0
- package/dist/images/comment-popup-editButton.svg +5 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/editor-toolbar-edit.svg +3 -0
- package/dist/images/findbarButton-next.svg +3 -0
- package/dist/images/findbarButton-previous.svg +3 -0
- package/dist/images/gv-toolbarButton-download.svg +3 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/loading.svg +1 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_info.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/pages_closeButton.svg +3 -0
- package/dist/images/pages_selected.svg +7 -0
- package/dist/images/pages_viewArrow.svg +3 -0
- package/dist/images/pages_viewButton.svg +3 -0
- package/dist/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/dist/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-handTool.svg +3 -0
- package/dist/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/dist/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/dist/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/dist/images/signature-properties-row-check.svg +4 -0
- package/dist/images/toolbarButton-bookmark.svg +3 -0
- package/dist/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/dist/images/toolbarButton-download.svg +4 -0
- package/dist/images/toolbarButton-editorFreeText.svg +5 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-editorInk.svg +4 -0
- package/dist/images/toolbarButton-editorSignature.svg +6 -0
- package/dist/images/toolbarButton-editorStamp.svg +8 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/images/toolbarButton-menuArrowNova.svg +3 -0
- package/dist/images/toolbarButton-openFile.svg +3 -0
- package/dist/images/toolbarButton-pageDown.svg +3 -0
- package/dist/images/toolbarButton-pageUp.svg +3 -0
- package/dist/images/toolbarButton-presentationMode.svg +3 -0
- package/dist/images/toolbarButton-print.svg +3 -0
- package/dist/images/toolbarButton-search.svg +3 -0
- package/dist/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/dist/images/toolbarButton-signaturePropertiesError.svg +7 -0
- package/dist/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
- package/dist/images/toolbarButton-viewAttachments.svg +3 -0
- package/dist/images/toolbarButton-viewLayers.svg +3 -0
- package/dist/images/toolbarButton-viewOutline.svg +3 -0
- package/dist/images/toolbarButton-viewThumbnail.svg +3 -0
- package/dist/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/dist/images/toolbarButton-zoomIn.svg +3 -0
- package/dist/images/toolbarButton-zoomOut.svg +3 -0
- package/dist/images/treeitem-collapsed.svg +1 -0
- package/dist/images/treeitem-expanded.svg +1 -0
- package/dist/pdf/PdfDocumentSurface.d.ts +71 -0
- package/dist/pdf/PdfDocumentSurface.js +235 -0
- package/dist/pdf/localization.d.ts +21 -0
- package/dist/pdf/localization.js +50 -0
- package/dist/pdf.css +6428 -0
- package/dist/pdf.d.ts +5 -0
- package/dist/pdf.js +7 -0
- package/dist/styles.css +1 -1
- package/package.json +16 -4
- package/scripts/pdf-assets.d.mts +2 -0
- package/scripts/pdf-assets.mjs +52 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -4,7 +4,8 @@ export interface DialogProps {
|
|
|
4
4
|
onOpenChange: (open: boolean) => void;
|
|
5
5
|
/** Dialog title - can be a string or JSX element for custom headers */
|
|
6
6
|
title?: string | JSX.Element;
|
|
7
|
-
|
|
7
|
+
/** Plain-text guidance rendered at the start of the body, never in the header. */
|
|
8
|
+
bodyDescription?: string;
|
|
8
9
|
/** Localized accessible name for the close button. */
|
|
9
10
|
closeLabel?: string;
|
|
10
11
|
/** Whether clicking the backdrop requests dismissal. Defaults to true. */
|
|
@@ -17,7 +18,7 @@ export interface DialogProps {
|
|
|
17
18
|
class?: string;
|
|
18
19
|
/** Bottom drawers retain the same modal and surface-placement contract. */
|
|
19
20
|
presentation?: 'dialog' | 'bottom-drawer';
|
|
20
|
-
/** Undefined uses the default header; null leaves only accessible title
|
|
21
|
+
/** Undefined uses the default header; null leaves only the accessible title. */
|
|
21
22
|
header?: JSX.Element;
|
|
22
23
|
contentClass?: string;
|
|
23
24
|
/** Includes the exit animation, so hosts can retain background input isolation. */
|
|
@@ -36,9 +37,9 @@ export interface ConfirmDialogProps {
|
|
|
36
37
|
open: boolean;
|
|
37
38
|
onOpenChange: (open: boolean) => void;
|
|
38
39
|
title: string;
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
40
|
+
/** Plain-text guidance rendered in the body; use children for rich content. */
|
|
41
|
+
bodyDescription?: string;
|
|
42
|
+
/** Optional custom content after the body description. */
|
|
42
43
|
children?: JSX.Element;
|
|
43
44
|
confirmText?: string;
|
|
44
45
|
cancelText?: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createComponent as r, use as L, setAttribute as s, style as ee, Portal as te, spread as
|
|
2
|
-
import { createUniqueId as ne, createSignal as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Button as
|
|
1
|
+
import { createComponent as r, use as L, setAttribute as s, style as ee, Portal as te, spread as T, mergeProps as B, memo as _, insert as l, effect as D, className as N, template as g } from "solid-js/web";
|
|
2
|
+
import { createUniqueId as ne, createSignal as F, createEffect as G, onCleanup as j, createMemo as q, Show as f, untrack as re } from "solid-js";
|
|
3
|
+
import { cn as y } from "../../utils/cn.js";
|
|
4
|
+
import { Button as I } from "./Button.js";
|
|
5
5
|
import { X as oe } from "../icons/index.js";
|
|
6
|
-
import { useResolvedFloeConfig as
|
|
6
|
+
import { useResolvedFloeConfig as ae } from "../../context/FloeConfigContext.js";
|
|
7
7
|
import { useOverlayMask as le } from "../../hooks/useOverlayMask.js";
|
|
8
|
-
import { resolveSurfacePortalHost as
|
|
8
|
+
import { resolveSurfacePortalHost as ie, DIALOG_SURFACE_BOUNDARY_ATTR as A, SURFACE_PORTAL_LAYER_ATTR as de, DIALOG_SURFACE_HOST_ATTR as ce, isSurfacePortalMode as K, projectSurfacePortalRect as ue, resolveSurfacePortalBoundaryRect as se, resolveSurfacePortalMount as fe } from "./dialogSurfaceScope.js";
|
|
9
9
|
import { LOCAL_INTERACTION_SURFACE_ATTR as ge } from "./localInteractionSurface.js";
|
|
10
10
|
import { createFloatingPresence as me } from "./floatingPresence.js";
|
|
11
11
|
import { useDialogPlacement as he } from "./DialogPlacementContext.js";
|
|
12
|
-
var be = /* @__PURE__ */
|
|
13
|
-
const
|
|
12
|
+
var be = /* @__PURE__ */ g("<span aria-hidden=true>"), we = /* @__PURE__ */ g('<h2 class="text-sm font-semibold">'), ye = /* @__PURE__ */ g('<div data-floe-dialog-header class="flex items-start justify-between p-3 border-b border-border"><div>'), ve = /* @__PURE__ */ g('<p class="mb-3 shrink-0 text-sm text-muted-foreground last:mb-0">'), xe = /* @__PURE__ */ g('<div data-floe-dialog-footer class="flex items-center justify-end gap-2 p-3 border-t border-border">'), $e = /* @__PURE__ */ g("<div><div></div><div><div data-floe-surface=floating><div data-floe-dialog-body>"), Ce = /* @__PURE__ */ g("<h2 class=sr-only>");
|
|
13
|
+
const _e = {
|
|
14
14
|
display: "none"
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function Ae(e) {
|
|
17
17
|
if (typeof queueMicrotask == "function") {
|
|
18
18
|
queueMicrotask(e);
|
|
19
19
|
return;
|
|
@@ -23,59 +23,59 @@ function Re(e) {
|
|
|
23
23
|
function U(e) {
|
|
24
24
|
return `${e.left}|${e.top}|${e.right}|${e.bottom}|${e.width}|${e.height}`;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Oe(e) {
|
|
27
27
|
return typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(e) : window.setTimeout(() => e(Date.now()), 16);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ke(e) {
|
|
30
30
|
if (typeof window < "u" && typeof window.cancelAnimationFrame == "function") {
|
|
31
31
|
window.cancelAnimationFrame(e);
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
window.clearTimeout(e);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const v = he(),
|
|
38
|
-
let
|
|
39
|
-
const [
|
|
40
|
-
open: () => e.open && !!
|
|
36
|
+
function Re(e) {
|
|
37
|
+
const v = he(), c = ne(), P = () => `dialog-${c}-title`, E = () => `dialog-${c}-description`;
|
|
38
|
+
let p;
|
|
39
|
+
const [O, z] = F(null), [M, Z] = F(0), [V, W] = F(0), u = () => e.presentation === "bottom-drawer", d = me({
|
|
40
|
+
open: () => e.open && !!O() && M() > 0,
|
|
41
41
|
get exitDurationMs() {
|
|
42
|
-
return
|
|
42
|
+
return u() ? 180 : 160;
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
45
|
-
G(() => e.onPresenceChange?.(
|
|
44
|
+
}), x = () => d.mounted() && !!O() && M() > 0;
|
|
45
|
+
G(() => e.onPresenceChange?.(x())), j(() => e.onPresenceChange?.(!1));
|
|
46
46
|
const Y = (n) => {
|
|
47
|
-
z(n),
|
|
48
|
-
re(
|
|
47
|
+
z(n), Ae(() => {
|
|
48
|
+
re(O) === n && Z((i) => i + 1);
|
|
49
49
|
});
|
|
50
|
-
}, k = q(() =>
|
|
51
|
-
owner:
|
|
50
|
+
}, k = q(() => x() ? ie({
|
|
51
|
+
owner: O()
|
|
52
52
|
}) : {
|
|
53
53
|
host: null,
|
|
54
54
|
boundaryHost: null,
|
|
55
55
|
mountHost: null,
|
|
56
56
|
mode: "global"
|
|
57
|
-
}),
|
|
57
|
+
}), $ = () => `dialog-boundary-${c}`, o = () => v.mode() === "auto" && K(k()), X = () => o() ? fe(k()) : void 0, H = () => e.globalZIndex ?? v.globalZIndex(), S = (n) => ue(se(n), n), J = () => S(k()), R = q(() => (V(), J())), Q = (n) => typeof Element < "u" && n instanceof Element ? !!n.closest(`[${A}="${$()}"]`) : typeof Node < "u" && n instanceof Node ? !!n.parentElement?.closest(`[${A}="${$()}"]`) : !1;
|
|
58
58
|
return G(() => {
|
|
59
59
|
const n = k();
|
|
60
|
-
if (!
|
|
60
|
+
if (!x() || !o() || typeof window > "u")
|
|
61
61
|
return;
|
|
62
|
-
let
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
62
|
+
let i = !1, m = null, a = U(S(n));
|
|
63
|
+
const h = () => {
|
|
64
|
+
if (i || !K(n))
|
|
65
65
|
return;
|
|
66
|
-
const t = U(
|
|
67
|
-
t !==
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
const t = U(S(n));
|
|
67
|
+
t !== a && (a = t, W((b) => b + 1));
|
|
68
|
+
}, C = () => {
|
|
69
|
+
i || (m = Oe(() => {
|
|
70
|
+
h(), C();
|
|
71
71
|
}));
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
C(), j(() => {
|
|
74
|
+
i = !0, m !== null && ke(m);
|
|
75
75
|
});
|
|
76
76
|
}), le({
|
|
77
|
-
open:
|
|
78
|
-
root: () =>
|
|
77
|
+
open: x,
|
|
78
|
+
root: () => p,
|
|
79
79
|
containsTarget: Q,
|
|
80
80
|
onClose: () => e.onOpenChange(!1),
|
|
81
81
|
lockBodyScroll: () => !o(),
|
|
@@ -89,10 +89,10 @@ function pe(e) {
|
|
|
89
89
|
restoreFocus: !0
|
|
90
90
|
}), [(() => {
|
|
91
91
|
var n = be();
|
|
92
|
-
return L(Y, n), s(n, "data-floe-dialog-owner-anchor",
|
|
92
|
+
return L(Y, n), s(n, "data-floe-dialog-owner-anchor", c), ee(n, _e), n;
|
|
93
93
|
})(), r(f, {
|
|
94
94
|
get when() {
|
|
95
|
-
return
|
|
95
|
+
return x();
|
|
96
96
|
},
|
|
97
97
|
get children() {
|
|
98
98
|
return r(te, {
|
|
@@ -100,8 +100,8 @@ function pe(e) {
|
|
|
100
100
|
return X();
|
|
101
101
|
},
|
|
102
102
|
get children() {
|
|
103
|
-
var n = $e(),
|
|
104
|
-
s(n, "data-floe-dialog-overlay-root",
|
|
103
|
+
var n = $e(), i = n.firstChild, m = i.nextSibling, a = m.firstChild, h = a.firstChild;
|
|
104
|
+
s(n, "data-floe-dialog-overlay-root", c), T(n, B({
|
|
105
105
|
get "data-floe-dialog-mode"() {
|
|
106
106
|
return o() ? "surface" : "global";
|
|
107
107
|
},
|
|
@@ -109,70 +109,70 @@ function pe(e) {
|
|
|
109
109
|
return e.presentation ?? "dialog";
|
|
110
110
|
},
|
|
111
111
|
get "data-floating-presence"() {
|
|
112
|
-
return
|
|
112
|
+
return d.state();
|
|
113
113
|
},
|
|
114
114
|
get "aria-hidden"() {
|
|
115
|
-
return
|
|
115
|
+
return d.exiting() ? "true" : void 0;
|
|
116
116
|
}
|
|
117
117
|
}, {
|
|
118
118
|
[ge]: "true"
|
|
119
119
|
}, () => ({
|
|
120
120
|
[de]: "true",
|
|
121
|
-
[
|
|
121
|
+
[A]: $()
|
|
122
122
|
}), {
|
|
123
123
|
get class() {
|
|
124
|
-
return
|
|
124
|
+
return y(o() ? "absolute z-20 box-border p-3" : y("fixed inset-0 box-border p-4", H() === void 0 && "z-50"), u() && "floe-bottom-drawer-overlay", d.exiting() && !u() && "pointer-events-none");
|
|
125
125
|
},
|
|
126
126
|
get style() {
|
|
127
|
-
return
|
|
128
|
-
left: `${
|
|
129
|
-
top: `${
|
|
130
|
-
width: `${
|
|
131
|
-
height: `${
|
|
127
|
+
return _(() => !!o())() ? {
|
|
128
|
+
left: `${R().left}px`,
|
|
129
|
+
top: `${R().top}px`,
|
|
130
|
+
width: `${R().width}px`,
|
|
131
|
+
height: `${R().height}px`
|
|
132
132
|
} : {
|
|
133
133
|
"z-index": H()
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
}), !1, !0), s(
|
|
137
|
-
[
|
|
136
|
+
}), !1, !0), s(i, "data-floe-dialog-backdrop", c), T(i, B(() => ({
|
|
137
|
+
[A]: $()
|
|
138
138
|
}), {
|
|
139
139
|
get "data-floating-presence"() {
|
|
140
|
-
return
|
|
140
|
+
return d.state();
|
|
141
141
|
},
|
|
142
142
|
get class() {
|
|
143
|
-
return
|
|
143
|
+
return y("absolute inset-0 floe-floating-presence floe-floating-backdrop", e.closeOnBackdropClick === !1 ? "cursor-default" : "cursor-pointer", u() ? "floe-bottom-drawer-backdrop" : o() ? "bg-background/72 backdrop-blur-[2px]" : "bg-background/80 backdrop-blur-sm");
|
|
144
144
|
},
|
|
145
145
|
onClick: () => {
|
|
146
|
-
!
|
|
146
|
+
!d.exiting() && e.closeOnBackdropClick !== !1 && e.onOpenChange(!1);
|
|
147
147
|
}
|
|
148
148
|
}), !1, !1);
|
|
149
|
-
var
|
|
150
|
-
return typeof
|
|
151
|
-
[
|
|
149
|
+
var C = p;
|
|
150
|
+
return typeof C == "function" ? L(C, a) : p = a, s(a, "data-floe-dialog-panel", c), T(a, B(() => ({
|
|
151
|
+
[A]: $(),
|
|
152
152
|
[ce]: "true"
|
|
153
153
|
}), {
|
|
154
154
|
get class() {
|
|
155
|
-
return
|
|
155
|
+
return y(o() ? "flex max-h-[calc(100%-1rem)] w-[min(32rem,calc(100%-1rem))] max-w-[calc(100%-1rem)] flex-col" : "w-full max-w-md max-h-[85vh]", "bg-card text-card-foreground rounded-md shadow-lg", "border border-border", "floe-floating-presence", u() ? "floe-bottom-drawer-panel" : "floe-floating-dialog-panel", "pointer-events-auto flex flex-col", e.class);
|
|
156
156
|
},
|
|
157
157
|
get "data-floating-presence"() {
|
|
158
|
-
return
|
|
158
|
+
return d.state();
|
|
159
159
|
},
|
|
160
160
|
get inert() {
|
|
161
|
-
return
|
|
161
|
+
return _(() => !!u())() && d.exiting();
|
|
162
162
|
},
|
|
163
163
|
role: "dialog",
|
|
164
164
|
get "aria-modal"() {
|
|
165
165
|
return o() ? void 0 : "true";
|
|
166
166
|
},
|
|
167
167
|
get "aria-labelledby"() {
|
|
168
|
-
return
|
|
168
|
+
return _(() => !!e.title)() ? P() : void 0;
|
|
169
169
|
},
|
|
170
170
|
get "aria-describedby"() {
|
|
171
|
-
return
|
|
171
|
+
return _(() => !!e.bodyDescription)() ? E() : void 0;
|
|
172
172
|
},
|
|
173
173
|
onKeyDown: (t) => e.onKeyDown?.(t),
|
|
174
174
|
tabIndex: -1
|
|
175
|
-
}), !1, !0),
|
|
175
|
+
}), !1, !0), l(a, r(f, {
|
|
176
176
|
get when() {
|
|
177
177
|
return e.header === void 0;
|
|
178
178
|
},
|
|
@@ -181,44 +181,28 @@ function pe(e) {
|
|
|
181
181
|
get when() {
|
|
182
182
|
return e.title;
|
|
183
183
|
},
|
|
184
|
-
get children() {
|
|
185
|
-
var t = _e();
|
|
186
|
-
return i(t, () => e.title), A(() => s(t, "id", p())), t;
|
|
187
|
-
}
|
|
188
|
-
}), r(f, {
|
|
189
|
-
get when() {
|
|
190
|
-
return e.description;
|
|
191
|
-
},
|
|
192
184
|
get children() {
|
|
193
185
|
var t = Ce();
|
|
194
|
-
return
|
|
186
|
+
return l(t, () => e.title), D(() => s(t, "id", P())), t;
|
|
195
187
|
}
|
|
196
|
-
}),
|
|
188
|
+
}), _(() => e.header)];
|
|
197
189
|
},
|
|
198
190
|
get children() {
|
|
199
191
|
return r(f, {
|
|
200
192
|
get when() {
|
|
201
|
-
return e.title
|
|
193
|
+
return e.title;
|
|
202
194
|
},
|
|
203
195
|
get children() {
|
|
204
|
-
var t = ye(),
|
|
205
|
-
return
|
|
196
|
+
var t = ye(), b = t.firstChild;
|
|
197
|
+
return l(b, r(f, {
|
|
206
198
|
get when() {
|
|
207
199
|
return e.title;
|
|
208
200
|
},
|
|
209
201
|
get children() {
|
|
210
|
-
var
|
|
211
|
-
return
|
|
202
|
+
var w = we();
|
|
203
|
+
return l(w, () => e.title), D(() => s(w, "id", P())), w;
|
|
212
204
|
}
|
|
213
|
-
})
|
|
214
|
-
get when() {
|
|
215
|
-
return e.description;
|
|
216
|
-
},
|
|
217
|
-
get children() {
|
|
218
|
-
var a = ve();
|
|
219
|
-
return i(a, () => e.description), A(() => s(a, "id", S())), a;
|
|
220
|
-
}
|
|
221
|
-
}), null), i(t, r(E, {
|
|
205
|
+
})), l(t, r(I, {
|
|
222
206
|
variant: "ghost-destructive",
|
|
223
207
|
size: "icon",
|
|
224
208
|
class: "-my-2 -mr-2 h-[46px] w-[46px] shrink-0 sm:my-0 sm:-mr-1 sm:h-6 sm:w-6",
|
|
@@ -235,17 +219,25 @@ function pe(e) {
|
|
|
235
219
|
}
|
|
236
220
|
});
|
|
237
221
|
}
|
|
238
|
-
}),
|
|
222
|
+
}), h), l(h, r(f, {
|
|
223
|
+
get when() {
|
|
224
|
+
return e.bodyDescription;
|
|
225
|
+
},
|
|
226
|
+
get children() {
|
|
227
|
+
var t = ve();
|
|
228
|
+
return l(t, () => e.bodyDescription), D(() => s(t, "id", E())), t;
|
|
229
|
+
}
|
|
230
|
+
}), null), l(h, () => e.children, null), l(a, r(f, {
|
|
239
231
|
get when() {
|
|
240
232
|
return e.footer;
|
|
241
233
|
},
|
|
242
234
|
get children() {
|
|
243
235
|
var t = xe();
|
|
244
|
-
return
|
|
236
|
+
return l(t, () => e.footer), t;
|
|
245
237
|
}
|
|
246
|
-
}), null),
|
|
247
|
-
var
|
|
248
|
-
return
|
|
238
|
+
}), null), D((t) => {
|
|
239
|
+
var b = y("pointer-events-none relative z-[1] flex h-full w-full justify-center", u() ? "items-end" : "items-center"), w = y("min-h-0 flex-1 overflow-auto overscroll-contain p-3", e.contentClass);
|
|
240
|
+
return b !== t.e && N(m, t.e = b), w !== t.t && N(h, t.t = w), t;
|
|
249
241
|
}, {
|
|
250
242
|
e: void 0,
|
|
251
243
|
t: void 0
|
|
@@ -255,9 +247,9 @@ function pe(e) {
|
|
|
255
247
|
}
|
|
256
248
|
})];
|
|
257
249
|
}
|
|
258
|
-
function
|
|
259
|
-
const v =
|
|
260
|
-
return r(
|
|
250
|
+
function Ne(e) {
|
|
251
|
+
const v = ae();
|
|
252
|
+
return r(Re, {
|
|
261
253
|
get open() {
|
|
262
254
|
return e.open;
|
|
263
255
|
},
|
|
@@ -267,14 +259,14 @@ function je(e) {
|
|
|
267
259
|
get title() {
|
|
268
260
|
return e.title;
|
|
269
261
|
},
|
|
270
|
-
get
|
|
271
|
-
return e.
|
|
262
|
+
get bodyDescription() {
|
|
263
|
+
return e.bodyDescription;
|
|
272
264
|
},
|
|
273
265
|
get globalZIndex() {
|
|
274
266
|
return e.globalZIndex;
|
|
275
267
|
},
|
|
276
268
|
get footer() {
|
|
277
|
-
return [r(
|
|
269
|
+
return [r(I, {
|
|
278
270
|
variant: "ghost",
|
|
279
271
|
onClick: () => e.onOpenChange(!1),
|
|
280
272
|
get disabled() {
|
|
@@ -283,7 +275,7 @@ function je(e) {
|
|
|
283
275
|
get children() {
|
|
284
276
|
return e.cancelText ?? v.config.strings.confirmDialog.cancel;
|
|
285
277
|
}
|
|
286
|
-
}), r(
|
|
278
|
+
}), r(I, {
|
|
287
279
|
get variant() {
|
|
288
280
|
return e.variant === "destructive" ? "destructive" : "primary";
|
|
289
281
|
},
|
|
@@ -299,11 +291,11 @@ function je(e) {
|
|
|
299
291
|
})];
|
|
300
292
|
},
|
|
301
293
|
get children() {
|
|
302
|
-
return e.children
|
|
294
|
+
return e.children;
|
|
303
295
|
}
|
|
304
296
|
});
|
|
305
297
|
}
|
|
306
298
|
export {
|
|
307
|
-
|
|
308
|
-
|
|
299
|
+
Ne as ConfirmDialog,
|
|
300
|
+
Re as Dialog
|
|
309
301
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5.375 7.625V11.875C5.375 12.0408 5.44085 12.1997 5.55806 12.3169C5.67527 12.4342 5.83424 12.5 6 12.5C6.16576 12.5 6.32473 12.4342 6.44194 12.3169C6.55915 12.1997 6.625 12.0408 6.625 11.875V7.625L7.125 7.125H11.375C11.5408 7.125 11.6997 7.05915 11.8169 6.94194C11.9342 6.82473 12 6.66576 12 6.5C12 6.33424 11.9342 6.17527 11.8169 6.05806C11.6997 5.94085 11.5408 5.875 11.375 5.875H7.125L6.625 5.375V1.125C6.625 0.95924 6.55915 0.800269 6.44194 0.683058C6.32473 0.565848 6.16576 0.5 6 0.5C5.83424 0.5 5.67527 0.565848 5.55806 0.683058C5.44085 0.800269 5.375 0.95924 5.375 1.125V5.375L4.875 5.875H0.625C0.45924 5.875 0.300269 5.94085 0.183058 6.05806C0.065848 6.17527 0 6.33424 0 6.5C0 6.66576 0.065848 6.82473 0.183058 6.94194C0.300269 7.05915 0.45924 7.125 0.625 7.125H4.762L5.375 7.625Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.49073 1.3015L3.30873 2.1505C3.29349 2.22246 3.25769 2.28844 3.20568 2.34045C3.15368 2.39246 3.08769 2.42826 3.01573 2.4435L2.16673 2.6255C1.76473 2.7125 1.76473 3.2865 2.16673 3.3725L3.01573 3.5555C3.08769 3.57074 3.15368 3.60654 3.20568 3.65855C3.25769 3.71056 3.29349 3.77654 3.30873 3.8485L3.49073 4.6975C3.57773 5.0995 4.15173 5.0995 4.23773 4.6975L4.42073 3.8485C4.43598 3.77654 4.47177 3.71056 4.52378 3.65855C4.57579 3.60654 4.64178 3.57074 4.71373 3.5555L5.56173 3.3725C5.96373 3.2855 5.96373 2.7115 5.56173 2.6255L4.71273 2.4435C4.64083 2.42814 4.57491 2.3923 4.52292 2.34031C4.47093 2.28832 4.43509 2.2224 4.41973 2.1505L4.23773 1.3015C4.15073 0.8995 3.57673 0.8995 3.49073 1.3015ZM10.8647 13.9995C10.4853 14.0056 10.1158 13.8782 9.82067 13.6397C9.52553 13.4013 9.32347 13.0667 9.24973 12.6945L8.89273 11.0275C8.83676 10.7687 8.70738 10.5316 8.52009 10.3445C8.3328 10.1574 8.09554 10.0282 7.83673 9.9725L6.16973 9.6155C5.38873 9.4465 4.86473 8.7975 4.86473 7.9995C4.86473 7.2015 5.38873 6.5525 6.16973 6.3845L7.83673 6.0275C8.09551 5.97135 8.33267 5.84193 8.51992 5.65468C8.70716 5.46744 8.83658 5.23028 8.89273 4.9715L9.25073 3.3045C9.41773 2.5235 10.0667 1.9995 10.8647 1.9995C11.6627 1.9995 12.3117 2.5235 12.4797 3.3045L12.8367 4.9715C12.9507 5.4995 13.3647 5.9135 13.8927 6.0265L15.5597 6.3835C16.3407 6.5525 16.8647 7.2015 16.8647 7.9995C16.8647 8.7975 16.3407 9.4465 15.5597 9.6145L13.8927 9.9715C13.6337 10.0275 13.3963 10.157 13.209 10.3445C13.0217 10.5319 12.8925 10.7694 12.8367 11.0285L12.4787 12.6945C12.4054 13.0667 12.2036 13.4014 11.9086 13.6399C11.6135 13.8784 11.2441 14.0057 10.8647 13.9995ZM10.8647 3.2495C10.7667 3.2495 10.5337 3.2795 10.4727 3.5655L10.1147 5.2335C10.0081 5.72777 9.76116 6.18082 9.40361 6.53837C9.04606 6.89593 8.59301 7.14283 8.09873 7.2495L6.43173 7.6065C6.14573 7.6685 6.11473 7.9015 6.11473 7.9995C6.11473 8.0975 6.14573 8.3305 6.43173 8.3925L8.09873 8.7495C8.59301 8.85617 9.04606 9.10307 9.40361 9.46062C9.76116 9.81817 10.0081 10.2712 10.1147 10.7655L10.4727 12.4335C10.5337 12.7195 10.7667 12.7495 10.8647 12.7495C10.9627 12.7495 11.1957 12.7195 11.2567 12.4335L11.6147 10.7665C11.7212 10.272 11.9681 9.81878 12.3256 9.46103C12.6832 9.10329 13.1363 8.85624 13.6307 8.7495L15.2977 8.3925C15.5837 8.3305 15.6147 8.0975 15.6147 7.9995C15.6147 7.9015 15.5837 7.6685 15.2977 7.6065L13.6307 7.2495C13.1365 7.14283 12.6834 6.89593 12.3259 6.53837C11.9683 6.18082 11.7214 5.72777 11.6147 5.2335L11.2567 3.5655C11.1957 3.2795 10.9627 3.2495 10.8647 3.2495ZM3.30873 12.1505L3.49073 11.3015C3.57673 10.8995 4.15073 10.8995 4.23773 11.3015L4.41973 12.1505C4.43509 12.2224 4.47093 12.2883 4.52292 12.3403C4.57491 12.3923 4.64083 12.4281 4.71273 12.4435L5.56173 12.6255C5.96373 12.7115 5.96373 13.2855 5.56173 13.3725L4.71273 13.5545C4.64083 13.5699 4.57491 13.6057 4.52292 13.6577C4.47093 13.7097 4.43509 13.7756 4.41973 13.8475L4.23773 14.6965C4.15173 15.0985 3.57773 15.0985 3.49073 14.6965L3.30873 13.8475C3.29337 13.7756 3.25754 13.7097 3.20555 13.6577C3.15356 13.6057 3.08764 13.5699 3.01573 13.5545L2.16673 13.3725C1.76473 13.2865 1.76473 12.7125 2.16673 12.6255L3.01573 12.4435C3.08769 12.4283 3.15368 12.3925 3.20568 12.3405C3.25769 12.2884 3.29349 12.2225 3.30873 12.1505Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 0.5C5.21207 0.5 4.43185 0.655195 3.7039 0.956723C2.97595 1.25825 2.31451 1.70021 1.75736 2.25736C1.20021 2.81451 0.758251 3.47595 0.456723 4.2039C0.155195 4.93185 0 5.71207 0 6.5C0 7.28793 0.155195 8.06815 0.456723 8.7961C0.758251 9.52405 1.20021 10.1855 1.75736 10.7426C2.31451 11.2998 2.97595 11.7417 3.7039 12.0433C4.43185 12.3448 5.21207 12.5 6 12.5C7.5913 12.5 9.11742 11.8679 10.2426 10.7426C11.3679 9.61742 12 8.0913 12 6.5C12 4.9087 11.3679 3.38258 10.2426 2.25736C9.11742 1.13214 7.5913 0.5 6 0.5ZM5.06 8.9L2.9464 6.7856C2.85273 6.69171 2.80018 6.56446 2.80033 6.43183C2.80048 6.29921 2.85331 6.17207 2.9472 6.0784C3.04109 5.98473 3.16834 5.93218 3.30097 5.93233C3.43359 5.93248 3.56073 5.98531 3.6544 6.0792L5.3112 7.7368L8.3464 4.7008C8.44109 4.6109 8.56715 4.56153 8.69771 4.56322C8.82827 4.56492 8.95301 4.61754 9.04534 4.70986C9.13766 4.80219 9.19028 4.92693 9.19198 5.05749C9.19367 5.18805 9.1443 5.31411 9.0544 5.4088L5.5624 8.9H5.06Z" fill="#FBFBFE"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
5
|
+
<style>
|
|
6
|
+
@media not (prefers-reduced-motion) {
|
|
7
|
+
@keyframes loadingRotate {
|
|
8
|
+
from { rotate: 0; } to { rotate: 360deg }
|
|
9
|
+
}
|
|
10
|
+
#circle-arrows {
|
|
11
|
+
animation: loadingRotate 1.8s linear infinite;
|
|
12
|
+
transform-origin: 50% 50%;
|
|
13
|
+
}
|
|
14
|
+
#hourglass {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion) {
|
|
20
|
+
#circle-arrows {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
<path id="circle-arrows" d="M9 5.528c0 .42.508.63.804.333l2.528-2.528a.47.47 0 0 0 0-.666L9.805.14A.471.471 0 0 0 9 .472v1.866A5.756 5.756 0 0 0 2.25 8c0 .942.232 1.83.635 2.615l1.143-1.143A4.208 4.208 0 0 1 3.75 8 4.254 4.254 0 0 1 8 3.75c.345 0 .68.042 1 .122v1.656zM7 10.472v1.656c.32.08.655.122 1 .122A4.254 4.254 0 0 0 12.25 8c0-.52-.107-1.013-.279-1.474l1.143-1.143c.404.786.636 1.674.636 2.617A5.756 5.756 0 0 1 7 13.662v1.866a.47.47 0 0 1-.804.333l-2.528-2.528a.47.47 0 0 1 0-.666l2.528-2.528a.47.47 0 0 1 .804.333z"/>
|
|
26
|
+
<g id="hourglass">
|
|
27
|
+
<path d="M13,1 C13.5522847,1 14,1.44771525 14,2 C14,2.55228475 13.5522847,3 13,3 L12.9854217,2.99990801 C12.9950817,3.16495885 13,3.33173274 13,3.5 C13,5.24679885 10.9877318,6.01090495 10.9877318,8.0017538 C10.9877318,9.99260264 13,10.7536922 13,12.5 C13,12.6686079 12.9950617,12.8357163 12.985363,13.0010943 L13,13 C13.5522847,13 14,13.4477153 14,14 C14,14.5522847 13.5522847,15 13,15 L3,15 C2.44771525,15 2,14.5522847 2,14 C2,13.4477153 2.44771525,13 3,13 L3.01463704,13.0010943 C3.00493827,12.8357163 3,12.6686079 3,12.5 C3,10.7536922 4.9877318,9.99260264 5,8.0017538 C5.0122682,6.01090495 3,5.24679885 3,3.5 C3,3.33173274 3.00491834,3.16495885 3.01457832,2.99990801 L3,3 C2.44771525,3 2,2.55228475 2,2 C2,1.44771525 2.44771525,1 3,1 L13,1 Z M10.987,3 L5.012,3 L5.00308914,3.24815712 C5.00103707,3.33163368 5,3.4155948 5,3.5 C5,5.36125069 6.99153646,6.01774089 6.99153646,8.0017538 C6.99153646,9.98576671 5,10.6393737 5,12.5 L5.00307746,12.7513676 L5.01222201,12.9998392 L5.60191711,12.9988344 L6.0425138,12.2959826 C7.02362731,10.7653275 7.67612271,10 8,10 C8.37014547,10 9.16950644,10.9996115 10.3980829,12.9988344 L10.987778,12.9998392 C10.9958674,12.8352104 11,12.66849 11,12.5 C11,10.6393737 8.98689779,10.0147381 8.98689779,8.0017538 C8.98689779,5.98876953 11,5.36125069 11,3.5 L10.9969109,3.24815712 L10.987,3 Z"/>
|
|
28
|
+
<path d="M6,4 L10,4 C8.95166016,6 8.28499349,7 8,7 C7.71500651,7 7.04833984,6 6,4 Z"/>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|