@zeniai/web-components 4.4.70 → 4.4.71-beta0AN
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/Editor-CbBxvSmp.js +919 -0
- package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-BMerO3g4.js} +112074 -113753
- package/dist/TaskDescriptionEditor-DyTyMxvk.js +700 -0
- package/dist/apple-wallet-DMr790ZM.js +19 -0
- package/dist/bank-verification-HpVi21UA.js +5 -0
- package/dist/cockpit.esm.js +1198 -1199
- package/dist/components/common/lazyLottie.d.ts +8 -0
- package/dist/components/common/lazyReactPdf.d.ts +13 -0
- package/dist/components/common/lazySvg.d.ts +17 -0
- package/dist/components/formElements/autoCompleteSingleSelectField/AutoCompleteSingleSelectField.d.ts +3 -1
- package/dist/components/formElements/singleSelectPickerField/SingleSelectPickerField.d.ts +2 -0
- package/dist/components/invoicing/createInvoice/InvoicingCreateInvoicePage.d.ts +3 -1
- package/dist/components/invoicing/subscriptionForm/InvoicingSubscriptionFormPage.d.ts +3 -1
- package/dist/components/invoicing/subscriptionForm/subscriptionForm.shared.d.ts +4 -0
- package/dist/components/settingsPage/Integrations/components/integrationLogos.d.ts +2874 -12
- package/dist/index.esm.js +139 -139
- package/dist/mcdonalds-logo-BTFuGR4i.js +5 -0
- package/dist/mercury-logo-Xd1WsXHh.js +5 -0
- package/dist/mercury-logo-dark-WebeUx9w.js +5 -0
- package/dist/more-providers-avatars-Dt7HPmCt.js +5 -0
- package/dist/netsuite-logo-Dp53a_wk.js +5 -0
- package/dist/netsuite-logo-dark-C53BYo7C.js +5 -0
- package/dist/paypal-logo-RhbjaD58.js +5 -0
- package/dist/paypal-logo-dark-_jTZA_FH.js +5 -0
- package/dist/phone-otp-DI7iHM2C.js +7 -0
- package/dist/subway-logo-B-Kc0fke.js +5 -0
- package/dist/underline-BNKkE4Fr.js +223 -0
- package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
- package/dist/vendor-react-lottie-player-Qhg4gMF8.js +174 -0
- package/dist/zeni-card-trust-BpxZYDve.js +5 -0
- package/dist/zeni-thanksgiving-logo-full-BLmLHEXd.js +5 -0
- package/package.json +6 -8
- package/dist/SessionTimeoutPopup-D12fxo7a.cjs +0 -92815
- package/dist/assets/illustrative/ai-cfo.svg +0 -13
- package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
- package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
- package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
- package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
- package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
- package/dist/assets/interface/arrow-2-left.svg +0 -4
- package/dist/assets/interface/autofill-3.svg +0 -3
- package/dist/assets/interface/graph-trend.svg +0 -11
- package/dist/assets/interface/growth-round.svg +0 -5
- package/dist/assets/interface/saving-money-egg.svg +0 -15
- package/dist/assets/interface/treasury-thumbnail.png +0 -0
- package/dist/assets/logos/gmail-logo.svg +0 -20
- package/dist/assets/logos/microsoft365-logo.svg +0 -25
- package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
- package/dist/cockpit.cjs.js +0 -5805
- package/dist/index.cjs.js +0 -1
- package/dist/vendor-@babel-runtime-_D8QudKm.cjs +0 -4
- package/dist/vendor-@floating-ui-core-Dyvby5gX.cjs +0 -1
- package/dist/vendor-@floating-ui-dom-CexqkosJ.cjs +0 -1
- package/dist/vendor-@floating-ui-utils-sUr78tUz.cjs +0 -1
- package/dist/vendor-@popperjs-core-Da5z8R8_.cjs +0 -1
- package/dist/vendor-@react-oauth-google-RY6l5Pdi.cjs +0 -1
- package/dist/vendor-@statsig-client-core-CcuuGlfw.cjs +0 -1
- package/dist/vendor-@statsig-js-client-C6n1oYZG.cjs +0 -1
- package/dist/vendor-@statsig-react-bindings-DVuaLZfm.cjs +0 -1
- package/dist/vendor-@ungap-structured-clone-BSqP9FP7.cjs +0 -1
- package/dist/vendor-@zeniai-client-epic-state-DWdyw6ma.cjs +0 -1
- package/dist/vendor-autosuggest-highlight-BrLUL75m.cjs +0 -1
- package/dist/vendor-bail-CPU4onRe.cjs +0 -1
- package/dist/vendor-big.js-BfsYTtpv.cjs +0 -1
- package/dist/vendor-browser-image-compression-BZPRtRQ2.cjs +0 -20
- package/dist/vendor-ccount-B3JMtXU-.cjs +0 -1
- package/dist/vendor-clsx-CAED27AB.cjs +0 -1
- package/dist/vendor-color-BlJDv7Qx.cjs +0 -1
- package/dist/vendor-color-convert-DNxf_t0v.cjs +0 -1
- package/dist/vendor-color-name-DMfyNIC_.cjs +0 -1
- package/dist/vendor-color-string-DlngRZWO.cjs +0 -1
- package/dist/vendor-comma-separated-tokens-CM2uar_0.cjs +0 -1
- package/dist/vendor-countries-list-DdDJCIea.cjs +0 -1
- package/dist/vendor-country-flag-icons-CaT9dyG0.cjs +0 -1
- package/dist/vendor-cross-fetch-BcrCP3uC.cjs +0 -2
- package/dist/vendor-decode-named-character-reference-CpsLJx05.cjs +0 -1
- package/dist/vendor-devlop-IYc_KfOj.cjs +0 -1
- package/dist/vendor-escape-string-regexp-CXe2COqk.cjs +0 -1
- package/dist/vendor-estree-util-is-identifier-name-DqXb06tQ.cjs +0 -1
- package/dist/vendor-extend-Xv02IcfV.cjs +0 -1
- package/dist/vendor-fast-deep-equal-xp5wgv1k.cjs +0 -1
- package/dist/vendor-hast-util-to-jsx-runtime-Cn0tASh-.cjs +0 -1
- package/dist/vendor-hast-util-whitespace-B7YrIln0.cjs +0 -1
- package/dist/vendor-html-url-attributes-B55Ir3vo.cjs +0 -1
- package/dist/vendor-inline-style-parser-BwLpyraz.cjs +0 -2
- package/dist/vendor-input-format-B4RKCxE4.cjs +0 -3
- package/dist/vendor-is-arrayish-DfXUb1DJ.cjs +0 -1
- package/dist/vendor-is-plain-obj-DH-Kh8FX.cjs +0 -1
- package/dist/vendor-js-file-download-Cbb6agEb.cjs +0 -1
- package/dist/vendor-libphonenumber-js-DkZ7WT-u.cjs +0 -13
- package/dist/vendor-lodash-CNz95YDD.cjs +0 -1
- package/dist/vendor-lodash.debounce-C9YP0rOk.cjs +0 -1
- package/dist/vendor-longest-streak-CpfJ7Pkv.cjs +0 -1
- package/dist/vendor-lottie-web-Cnpvoe-Q.cjs +0 -2
- package/dist/vendor-markdown-table-BIbVC1pY.cjs +0 -2
- package/dist/vendor-mdast-util-find-and-replace-BqOMYvvg.cjs +0 -1
- package/dist/vendor-mdast-util-from-markdown-DmcqmoHq.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-DYVYZtQo.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-autolink-literal-B7Jk_6Zc.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-footnote-BqZr5GmF.cjs +0 -2
- package/dist/vendor-mdast-util-gfm-strikethrough-DkmBmVZz.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-table-GRkZEL2K.cjs +0 -3
- package/dist/vendor-mdast-util-gfm-task-list-item-COkL7umh.cjs +0 -1
- package/dist/vendor-mdast-util-phrasing-B3pE6Gyd.cjs +0 -1
- package/dist/vendor-mdast-util-to-hast-DZGTy4jY.cjs +0 -11
- package/dist/vendor-mdast-util-to-markdown-CFDJSkr8.cjs +0 -12
- package/dist/vendor-mdast-util-to-string-epeputJu.cjs +0 -1
- package/dist/vendor-memoize-one-DetCWhre.cjs +0 -1
- package/dist/vendor-micromark-QT1lJ_9G.cjs +0 -3
- package/dist/vendor-micromark-core-commonmark-CHMYvCou.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-DOHEv_Ow.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-autolink-literal-BIi53Rt2.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-footnote-CuTbB2_e.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-strikethrough-CcuQ-v4I.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-table-CoYdjDBk.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-tagfilter-Dyvby5gX.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-task-list-item-eGtf7dwN.cjs +0 -1
- package/dist/vendor-micromark-factory-destination-DODxvNwQ.cjs +0 -1
- package/dist/vendor-micromark-factory-label-DRCYHbTp.cjs +0 -1
- package/dist/vendor-micromark-factory-space-BxE8R4nI.cjs +0 -1
- package/dist/vendor-micromark-factory-title-HTScd-95.cjs +0 -1
- package/dist/vendor-micromark-factory-whitespace-Cfovfawt.cjs +0 -1
- package/dist/vendor-micromark-util-character-ThpXZ0p5.cjs +0 -1
- package/dist/vendor-micromark-util-chunked-CCaF1jRh.cjs +0 -1
- package/dist/vendor-micromark-util-classify-character-BXzv_u9-.cjs +0 -1
- package/dist/vendor-micromark-util-combine-extensions-ymdtWEAr.cjs +0 -1
- package/dist/vendor-micromark-util-decode-numeric-character-reference-sKQehvtv.cjs +0 -1
- package/dist/vendor-micromark-util-decode-string-Coo2FPbM.cjs +0 -1
- package/dist/vendor-micromark-util-encode-Dyvby5gX.cjs +0 -1
- package/dist/vendor-micromark-util-html-tag-name-BqwwRvi2.cjs +0 -1
- package/dist/vendor-micromark-util-normalize-identifier-CZzRW9lF.cjs +0 -1
- package/dist/vendor-micromark-util-resolve-all-B1vkj8Lj.cjs +0 -1
- package/dist/vendor-micromark-util-sanitize-uri-fWsohj9C.cjs +0 -1
- package/dist/vendor-micromark-util-subtokenize-B5hanNMp.cjs +0 -1
- package/dist/vendor-object-assign-5rXDT7QN.cjs +0 -1
- package/dist/vendor-prop-types-D7ILSZ36.cjs +0 -2
- package/dist/vendor-property-information-B58jd_xz.cjs +0 -1
- package/dist/vendor-react-CzqSQR9J.cjs +0 -14
- package/dist/vendor-react-circular-progressbar-BnDuoTgW.cjs +0 -6
- package/dist/vendor-react-datepicker-GIiaQhgI.cjs +0 -2
- package/dist/vendor-react-draggable-rHHMjzs1.cjs +0 -3
- package/dist/vendor-react-error-boundary-DUjnAjoQ.cjs +0 -1
- package/dist/vendor-react-fast-compare-DjJCSAPj.cjs +0 -1
- package/dist/vendor-react-google-autocomplete-Du5iErAd.cjs +0 -2
- package/dist/vendor-react-hook-form-DowHtP8_.cjs +0 -1
- package/dist/vendor-react-is-DK4cIQ7j.cjs +0 -1
- package/dist/vendor-react-lottie-player-Cwb-Xhoz.cjs +0 -1
- package/dist/vendor-react-lottie-player-DcNoEdGF.js +0 -155
- package/dist/vendor-react-markdown-sVAdj9xV.cjs +0 -1
- package/dist/vendor-react-merge-refs-Daoz85kW.cjs +0 -1
- package/dist/vendor-react-number-format-QGmN0d2v.cjs +0 -7
- package/dist/vendor-react-onclickoutside-CjoT6SX4.cjs +0 -1
- package/dist/vendor-react-phone-number-input-BBnFN-wD.cjs +0 -4
- package/dist/vendor-react-popper-DEi6sOBD.cjs +0 -1
- package/dist/vendor-react-select-DufBhudz.cjs +0 -4
- package/dist/vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs +0 -1
- package/dist/vendor-react-vtree-CtDSz2Mv.cjs +0 -1
- package/dist/vendor-react-webcam-CPpkXthK.cjs +0 -1
- package/dist/vendor-react-window-CuU_qzaW.cjs +0 -1
- package/dist/vendor-react-window-infinite-loader-CdyCIjx6.cjs +0 -1
- package/dist/vendor-remark-gfm-Bou12kJi.cjs +0 -1
- package/dist/vendor-remark-parse-BYKtvo5n.cjs +0 -1
- package/dist/vendor-remark-rehype-CuqXXG-2.cjs +0 -1
- package/dist/vendor-rfdc-sZ2eP5eF.cjs +0 -1
- package/dist/vendor-simple-swizzle-BNELyqz6.cjs +0 -1
- package/dist/vendor-space-separated-tokens-0etuzMC1.cjs +0 -1
- package/dist/vendor-style-to-js-CUjGi3ge.cjs +0 -1
- package/dist/vendor-style-to-object--fzklQoy.cjs +0 -1
- package/dist/vendor-trim-lines-BO73c4j-.cjs +0 -1
- package/dist/vendor-trough-CZIkZM5d.cjs +0 -1
- package/dist/vendor-unified-hdBFtaBE.cjs +0 -1
- package/dist/vendor-unist-util-is-C5fG5pIe.cjs +0 -1
- package/dist/vendor-unist-util-position-DsgljCtl.cjs +0 -1
- package/dist/vendor-unist-util-stringify-position-DfmUoPWR.cjs +0 -1
- package/dist/vendor-unist-util-visit-Cyg51Aas.cjs +0 -1
- package/dist/vendor-unist-util-visit-parents-BFfGpcYZ.cjs +0 -1
- package/dist/vendor-us-bank-account-validator-DOz5Vc9n.cjs +0 -1
- package/dist/vendor-use-isomorphic-layout-effect-CkGv31zs.cjs +0 -1
- package/dist/vendor-use-resize-observer-FgrE0mfc.cjs +0 -1
- package/dist/vendor-utils-CN5UYrS0.cjs +0 -1
- package/dist/vendor-vfile-DagMcMZP.cjs +0 -1
- package/dist/vendor-vfile-message-DB4fwBOw.cjs +0 -1
- package/dist/vendor-warning-FOT2NNRo.cjs +0 -1
- package/dist/vendor-zwitch-Dyvby5gX.cjs +0 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { j as k } from "./vendor-react-DRsGZW4u.js";
|
|
2
|
+
import { Global as h, css as C, keyframes as L } from "@emotion/react";
|
|
3
|
+
import { c6 as E, c5 as g, fs as M, aP as x, gX as w, by as _ } from "./SessionTimeoutPopup-BMerO3g4.js";
|
|
4
|
+
import { AutoLinkPlugin as v } from "@lexical/react/LexicalAutoLinkPlugin";
|
|
5
|
+
import { useLexicalComposerContext as l } from "@lexical/react/LexicalComposerContext";
|
|
6
|
+
import { PASTE_COMMAND as f, $getSelection as u, $isRangeSelection as p, COMMAND_PRIORITY_LOW as j, KEY_TAB_COMMAND as W, OUTDENT_CONTENT_COMMAND as H, INDENT_CONTENT_COMMAND as m, COMMAND_PRIORITY_EDITOR as I, COMMAND_PRIORITY_HIGH as N, $isElementNode as y } from "lexical";
|
|
7
|
+
import * as e from "react";
|
|
8
|
+
import { useEffect as S } from "react";
|
|
9
|
+
import { $isListNode as a, $getListDepth as c, $isListItemNode as T } from "@lexical/list";
|
|
10
|
+
const O = L`
|
|
11
|
+
from {
|
|
12
|
+
background-color: ${x.brandColorGoldLight};
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
`, F = () => /* @__PURE__ */ k.jsx(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
styles: C`
|
|
21
|
+
.lexicalEditor__textBold {
|
|
22
|
+
font-weight: ${E.bold};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lexicalEditor__textItalic {
|
|
26
|
+
font-style: ${g.italic};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lexicalEditor__textUnderline {
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.lexicalEditor__ol1 {
|
|
34
|
+
padding: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
list-style-position: inside;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lexicalEditor__ol2 {
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin: 0;
|
|
42
|
+
list-style-type: upper-alpha;
|
|
43
|
+
list-style-position: inside;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lexicalEditor__ol3 {
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
list-style-type: lower-alpha;
|
|
50
|
+
list-style-position: inside;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.lexicalEditor__ol4 {
|
|
54
|
+
padding: 0;
|
|
55
|
+
margin: 0;
|
|
56
|
+
list-style-type: upper-roman;
|
|
57
|
+
list-style-position: inside;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lexicalEditor__ol5 {
|
|
61
|
+
padding: 0;
|
|
62
|
+
margin: 0;
|
|
63
|
+
list-style-type: lower-roman;
|
|
64
|
+
list-style-position: inside;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.lexicalEditor__ul {
|
|
68
|
+
padding: 0;
|
|
69
|
+
margin: 0;
|
|
70
|
+
list-style-position: inside;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.lexicalEditor__listItem {
|
|
74
|
+
margin: 0 ${M.sp5};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.lexicalEditor__nestedListItem {
|
|
78
|
+
list-style-type: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.lexicalEditor__nestedListItem:before,
|
|
82
|
+
.lexicalEditor__nestedListItem:after {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
.highlighted {
|
|
86
|
+
animation: ${O} 2s ease-in-out;
|
|
87
|
+
}
|
|
88
|
+
`
|
|
89
|
+
}
|
|
90
|
+
), Z = {
|
|
91
|
+
link: "editor__link",
|
|
92
|
+
list: {
|
|
93
|
+
listitem: "lexicalEditor__listItem",
|
|
94
|
+
nested: {
|
|
95
|
+
listitem: "lexicalEditor__nestedListItem"
|
|
96
|
+
},
|
|
97
|
+
olDepth: [
|
|
98
|
+
"lexicalEditor__ol1",
|
|
99
|
+
"lexicalEditor__ol2",
|
|
100
|
+
"lexicalEditor__ol3",
|
|
101
|
+
"lexicalEditor__ol4",
|
|
102
|
+
"lexicalEditor__ol5"
|
|
103
|
+
],
|
|
104
|
+
ul: "lexicalEditor__ul"
|
|
105
|
+
},
|
|
106
|
+
text: {
|
|
107
|
+
bold: "lexicalEditor__textBold",
|
|
108
|
+
code: "lexicalEditor__textCode",
|
|
109
|
+
italic: "lexicalEditor__textItalic",
|
|
110
|
+
underline: "lexicalEditor__textUnderline"
|
|
111
|
+
}
|
|
112
|
+
}, P = [
|
|
113
|
+
(t) => {
|
|
114
|
+
const r = w.exec(t);
|
|
115
|
+
return r && {
|
|
116
|
+
index: r.index,
|
|
117
|
+
length: r[0].length,
|
|
118
|
+
text: r[0],
|
|
119
|
+
url: r[0]
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
(t) => {
|
|
123
|
+
const r = _.exec(t);
|
|
124
|
+
return r && {
|
|
125
|
+
index: r.index,
|
|
126
|
+
length: r[0].length,
|
|
127
|
+
text: r[0],
|
|
128
|
+
url: `mailto:${r[0]}`
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
];
|
|
132
|
+
function K() {
|
|
133
|
+
return /* @__PURE__ */ k.jsx(v, { matchers: P });
|
|
134
|
+
}
|
|
135
|
+
const J = () => {
|
|
136
|
+
const [t] = l();
|
|
137
|
+
return t.registerCommand(
|
|
138
|
+
f,
|
|
139
|
+
(r, o) => (o.update(() => {
|
|
140
|
+
const n = u();
|
|
141
|
+
if (p(n) && r.type === "beforeinput") {
|
|
142
|
+
const d = r.dataTransfer?.getData("text/plain");
|
|
143
|
+
d != null && n.insertText(d);
|
|
144
|
+
}
|
|
145
|
+
return !0;
|
|
146
|
+
}), !0),
|
|
147
|
+
j
|
|
148
|
+
), null;
|
|
149
|
+
}, X = () => {
|
|
150
|
+
const [t] = l();
|
|
151
|
+
return t.registerCommand(
|
|
152
|
+
W,
|
|
153
|
+
(r) => {
|
|
154
|
+
const o = r;
|
|
155
|
+
return o.preventDefault(), t.dispatchCommand(
|
|
156
|
+
o.shiftKey ? H : m,
|
|
157
|
+
void 0
|
|
158
|
+
);
|
|
159
|
+
},
|
|
160
|
+
I
|
|
161
|
+
), null;
|
|
162
|
+
};
|
|
163
|
+
function A(t) {
|
|
164
|
+
const r = t?.getNodes();
|
|
165
|
+
return r?.length === 0 ? /* @__PURE__ */ new Set([
|
|
166
|
+
t.anchor.getNode().getParentOrThrow(),
|
|
167
|
+
t.focus.getNode().getParentOrThrow()
|
|
168
|
+
]) : new Set(
|
|
169
|
+
r.map(
|
|
170
|
+
(o) => y(o) ? o : o.getParentOrThrow()
|
|
171
|
+
)
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
function B(t) {
|
|
175
|
+
const r = u();
|
|
176
|
+
if (!p(r))
|
|
177
|
+
return !1;
|
|
178
|
+
const o = A(r);
|
|
179
|
+
let n = 0;
|
|
180
|
+
for (const i of o)
|
|
181
|
+
if (a(i))
|
|
182
|
+
n = Math.max(c(i) + 1, n);
|
|
183
|
+
else if (T(i)) {
|
|
184
|
+
const s = i.getParent();
|
|
185
|
+
if (!a(s))
|
|
186
|
+
throw new Error(
|
|
187
|
+
"ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent."
|
|
188
|
+
);
|
|
189
|
+
n = Math.max(c(s) + 1, n);
|
|
190
|
+
}
|
|
191
|
+
return n <= t;
|
|
192
|
+
}
|
|
193
|
+
function q({
|
|
194
|
+
maxDepth: t
|
|
195
|
+
}) {
|
|
196
|
+
const [r] = l();
|
|
197
|
+
return S(() => r.registerCommand(
|
|
198
|
+
m,
|
|
199
|
+
() => !B(t ?? 7),
|
|
200
|
+
N
|
|
201
|
+
), [r, t]), null;
|
|
202
|
+
}
|
|
203
|
+
const z = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M7.60846 2V21.9982", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M7.60847 11.5664H13.2601C14.5285 11.5664 15.7448 11.0626 16.6417 10.1657C17.5385 9.26889 18.0423 8.05252 18.0423 6.7842C18.0423 5.51589 17.5385 4.29952 16.6417 3.40269C15.7448 2.50585 14.5285 2.00201 13.2601 2.00201H5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M13.2601 11.5661H14.5644C15.948 11.5661 17.2749 12.1157 18.2533 13.0941C19.2317 14.0725 19.7813 15.3994 19.7813 16.783C19.7813 18.1667 19.2317 19.4936 18.2533 20.472C17.2749 21.4503 15.948 22 14.5644 22H5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Q = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M3.78525 5H20.7448", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M4.67783 9.46301H19.8522", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 13.9261H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M5.57047 18.3891H18.9596", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ee = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M22.375 3H13", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M22.375 9H13", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M22.375 15H13", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M18.1562 21H13", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M3.48409 8L7.7924 11.8119C7.81051 11.8279 7.82501 11.8477 7.83494 11.8698C7.84487 11.8918 7.85001 11.9158 7.85001 11.94C7.85001 11.9642 7.84487 11.9882 7.83494 12.0102C7.82501 12.0323 7.81051 12.0521 7.7924 12.0681L3.48409 15.88", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), te = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M18.9595 1.5L5.57042 22.03", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 22.03H9.14086", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M15.3891 1.5H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), re = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M0.979614 5H23.0204", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M0.979614 9.31012H23.0204", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M0.979614 13.8163H23.0204", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M0.979614 18.1265H23.0204", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" })), oe = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M2 5H19.8522", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 9.46301H16.2817", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 13.9261H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 18.3891H18.9596", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ne = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M13.6039 13.8557C13.6039 14.3291 13.792 14.7832 14.1268 15.118C14.4616 15.4528 14.9157 15.6409 15.3891 15.6409H19.8522C20.5618 15.639 21.2418 15.3563 21.7436 14.8545C22.2454 14.3527 22.5281 13.6727 22.53 12.963V11.1778C22.5279 10.4683 22.2451 9.78839 21.7433 9.28666C21.2416 8.78493 20.5617 8.50212 19.8522 8.5H15.3891C14.9157 8.5 14.4616 8.68809 14.1268 9.02288C13.792 9.35767 13.6039 9.81175 13.6039 10.2852", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M10.9261 13.8557C10.9261 14.3291 10.738 14.7832 10.4032 15.118C10.0684 15.4528 9.61434 15.6409 9.14087 15.6409H4.67783C3.9682 15.639 3.28818 15.3563 2.7864 14.8545C2.28462 14.3527 2.00188 13.6727 2 12.963V11.1778C2.00212 10.4683 2.28493 9.78839 2.78666 9.28666C3.28839 8.78493 3.96827 8.50212 4.67783 8.5H9.14087C9.61434 8.5 10.0684 8.68809 10.4032 9.02288C10.738 9.35767 10.9261 9.81175 10.9261 10.2852", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M7.35565 12.0696H17.1743", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ie = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M2 4.78522C2 5.25869 2.18808 5.71276 2.52288 6.04756C2.85767 6.38235 3.31175 6.57044 3.78522 6.57044C4.25869 6.57044 4.71276 6.38235 5.04756 6.04756C5.38235 5.71276 5.57044 5.25869 5.57044 4.78522C5.57044 4.31175 5.38235 3.85767 5.04756 3.52288C4.71276 3.18809 4.25869 3 3.78522 3C3.31175 3 2.85767 3.18809 2.52288 3.52288C2.18808 3.85767 2 4.31175 2 4.78522Z", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M9.14087 4.78522H22.53", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 11.9261C2 12.3996 2.18808 12.8536 2.52288 13.1884C2.85767 13.5232 3.31175 13.7113 3.78522 13.7113C4.25869 13.7113 4.71276 13.5232 5.04756 13.1884C5.38235 12.8536 5.57044 12.3996 5.57044 11.9261C5.57044 11.4526 5.38235 10.9985 5.04756 10.6637C4.71276 10.329 4.25869 10.1409 3.78522 10.1409C3.31175 10.1409 2.85767 10.329 2.52288 10.6637C2.18808 10.9985 2 11.4526 2 11.9261Z", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M9.14087 11.9261H22.53", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 19.067C2 19.5404 2.18808 19.9945 2.52288 20.3293C2.85767 20.6641 3.31175 20.8522 3.78522 20.8522C4.25869 20.8522 4.71276 20.6641 5.04756 20.3293C5.38235 19.9945 5.57044 19.5404 5.57044 19.067C5.57044 18.5935 5.38235 18.1394 5.04756 17.8046C4.71276 17.4698 4.25869 17.2817 3.78522 17.2817C3.31175 17.2817 2.85767 17.4698 2.52288 17.8046C2.18808 18.1394 2 18.5935 2 19.067Z", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M9.14087 19.067H22.53", stroke: "currentColor", strokeWidth: 1.46939, strokeLinecap: "round", strokeLinejoin: "round" })), se = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M1.625 3H11", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M1.625 9H11", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M1.625 15H11", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M5.84375 21H11", stroke: "currentColor", strokeWidth: 1.5, strokeMiterlimit: 10, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M20.5159 8L16.2076 11.8119C16.1895 11.8279 16.175 11.8477 16.1651 11.8698C16.1551 11.8918 16.15 11.9158 16.15 11.94C16.15 11.9642 16.1551 11.9882 16.1651 12.0102C16.175 12.0323 16.1895 12.0521 16.2076 12.0681L20.5159 15.88", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), le = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M21.74 2V8.24772H15.4923", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M21.74 8.2496C20.129 6.03385 17.709 4.54298 15.0054 4.10065C12.3019 3.65833 9.53293 4.30026 7.29977 5.88707C5.97812 6.83145 4.8993 8.07583 4.15188 9.51804C3.40446 10.9602 3.00976 12.5592 3.00018 14.1835C2.9906 15.8079 3.36641 17.4113 4.09676 18.8623C4.82711 20.3132 5.89117 21.5702 7.20159 22.5301", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), de = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M5.57047 5H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M8.24826 9.46307H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M2 13.9261H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M5.57047 18.3892H22.53", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ae = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M3 21.2H21.7", stroke: "currentColor", strokeWidth: 1.35, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M6.25217 2.50165V11.8516C6.25217 13.4689 6.89462 15.0199 8.03819 16.1635C9.18175 17.307 10.7328 17.9495 12.35 17.9495C13.9672 17.9495 15.5183 17.307 16.6618 16.1635C17.8054 15.0199 18.4478 13.4689 18.4478 11.8516V2.50165", stroke: "currentColor", strokeWidth: 1.35, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M3.81304 2.5H8.6913", stroke: "currentColor", strokeWidth: 1.35, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M16.0087 2.5H20.887", stroke: "currentColor", strokeWidth: 1.35, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
204
|
+
export {
|
|
205
|
+
J as C,
|
|
206
|
+
F as E,
|
|
207
|
+
q as L,
|
|
208
|
+
K as P,
|
|
209
|
+
z as S,
|
|
210
|
+
X as a,
|
|
211
|
+
Q as b,
|
|
212
|
+
ee as c,
|
|
213
|
+
te as d,
|
|
214
|
+
re as e,
|
|
215
|
+
oe as f,
|
|
216
|
+
ne as g,
|
|
217
|
+
ie as h,
|
|
218
|
+
se as i,
|
|
219
|
+
le as j,
|
|
220
|
+
de as k,
|
|
221
|
+
ae as l,
|
|
222
|
+
Z as t
|
|
223
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
function c(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? c = function(r) {
|
|
4
|
+
return typeof r;
|
|
5
|
+
} : c = function(r) {
|
|
6
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
7
|
+
}, c(o);
|
|
8
|
+
}
|
|
9
|
+
var w = "https://js.stripe.com/v3", y = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, v = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", m = function() {
|
|
10
|
+
for (var r = document.querySelectorAll('script[src^="'.concat(w, '"]')), e = 0; e < r.length; e++) {
|
|
11
|
+
var t = r[e];
|
|
12
|
+
if (y.test(t.src))
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}, p = function(r) {
|
|
17
|
+
var e = r && !r.advancedFraudSignals ? "?advancedFraudSignals=false" : "", t = document.createElement("script");
|
|
18
|
+
t.src = "".concat(w).concat(e);
|
|
19
|
+
var n = document.head || document.body;
|
|
20
|
+
if (!n)
|
|
21
|
+
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
22
|
+
return n.appendChild(t), t;
|
|
23
|
+
}, h = function(r, e) {
|
|
24
|
+
!r || !r._registerWrapper || r._registerWrapper({
|
|
25
|
+
name: "stripe-js",
|
|
26
|
+
version: "4.6.0",
|
|
27
|
+
startTime: e
|
|
28
|
+
});
|
|
29
|
+
}, l = null, u = null, d = null, E = function(r) {
|
|
30
|
+
return function() {
|
|
31
|
+
r(new Error("Failed to load Stripe.js"));
|
|
32
|
+
};
|
|
33
|
+
}, b = function(r, e) {
|
|
34
|
+
return function() {
|
|
35
|
+
window.Stripe ? r(window.Stripe) : e(new Error("Stripe.js not available"));
|
|
36
|
+
};
|
|
37
|
+
}, g = function(r) {
|
|
38
|
+
return l !== null ? l : (l = new Promise(function(e, t) {
|
|
39
|
+
if (typeof window > "u" || typeof document > "u") {
|
|
40
|
+
e(null);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (window.Stripe && r && console.warn(v), window.Stripe) {
|
|
44
|
+
e(window.Stripe);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
var n = m();
|
|
49
|
+
if (n && r)
|
|
50
|
+
console.warn(v);
|
|
51
|
+
else if (!n)
|
|
52
|
+
n = p(r);
|
|
53
|
+
else if (n && d !== null && u !== null) {
|
|
54
|
+
var i;
|
|
55
|
+
n.removeEventListener("load", d), n.removeEventListener("error", u), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = p(r);
|
|
56
|
+
}
|
|
57
|
+
d = b(e, t), u = E(t), n.addEventListener("load", d), n.addEventListener("error", u);
|
|
58
|
+
} catch (a) {
|
|
59
|
+
t(a);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
}), l.catch(function(e) {
|
|
63
|
+
return l = null, Promise.reject(e);
|
|
64
|
+
}));
|
|
65
|
+
}, L = function(r, e, t) {
|
|
66
|
+
if (r === null)
|
|
67
|
+
return null;
|
|
68
|
+
var n = r.apply(void 0, e);
|
|
69
|
+
return h(n, t), n;
|
|
70
|
+
}, S = function(r) {
|
|
71
|
+
var e = `invalid load parameters; expected object of shape
|
|
72
|
+
|
|
73
|
+
{advancedFraudSignals: boolean}
|
|
74
|
+
|
|
75
|
+
but received
|
|
76
|
+
|
|
77
|
+
`.concat(JSON.stringify(r), `
|
|
78
|
+
`);
|
|
79
|
+
if (r === null || c(r) !== "object")
|
|
80
|
+
throw new Error(e);
|
|
81
|
+
if (Object.keys(r).length === 1 && typeof r.advancedFraudSignals == "boolean")
|
|
82
|
+
return r;
|
|
83
|
+
throw new Error(e);
|
|
84
|
+
}, f, s = !1, P = function() {
|
|
85
|
+
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
|
|
86
|
+
e[t] = arguments[t];
|
|
87
|
+
s = !0;
|
|
88
|
+
var n = Date.now();
|
|
89
|
+
return g(f).then(function(i) {
|
|
90
|
+
return L(i, e, n);
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
P.setLoadParameters = function(o) {
|
|
94
|
+
if (s && f) {
|
|
95
|
+
var r = S(o), e = Object.keys(r), t = e.reduce(function(n, i) {
|
|
96
|
+
var a;
|
|
97
|
+
return n && o[i] === ((a = f) === null || a === void 0 ? void 0 : a[i]);
|
|
98
|
+
}, !0);
|
|
99
|
+
if (t)
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (s)
|
|
103
|
+
throw new Error("You cannot change load parameters after calling loadStripe");
|
|
104
|
+
f = S(o);
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
P as l
|
|
108
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { g as _e } from "./vendor-react-DRsGZW4u.js";
|
|
2
|
+
import { r as be } from "./vendor-lottie-web-BYFVmCl1.js";
|
|
3
|
+
import he from "react";
|
|
4
|
+
import { r as De } from "./vendor-fast-deep-equal-DqTU8JOb.js";
|
|
5
|
+
import { r as Oe } from "./vendor-rfdc-DYTnHNWN.js";
|
|
6
|
+
function Pe(f, S) {
|
|
7
|
+
for (var t = 0; t < S.length; t++) {
|
|
8
|
+
const m = S[t];
|
|
9
|
+
if (typeof m != "string" && !Array.isArray(m)) {
|
|
10
|
+
for (const s in m)
|
|
11
|
+
if (s !== "default" && !(s in f)) {
|
|
12
|
+
const p = Object.getOwnPropertyDescriptor(m, s);
|
|
13
|
+
p && Object.defineProperty(f, s, p.get ? p : {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
get: () => m[s]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return Object.freeze(Object.defineProperty(f, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
}
|
|
22
|
+
var W, me;
|
|
23
|
+
function $e() {
|
|
24
|
+
if (me) return W;
|
|
25
|
+
me = 1;
|
|
26
|
+
function f(r) {
|
|
27
|
+
return r && typeof r == "object" && "default" in r ? r.default : r;
|
|
28
|
+
}
|
|
29
|
+
var S = f(/* @__PURE__ */ be()), t = he, m = f(t), s = f(De()), p = f(Oe());
|
|
30
|
+
function _() {
|
|
31
|
+
return _ = Object.assign ? Object.assign.bind() : function(r) {
|
|
32
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
33
|
+
var l = arguments[v];
|
|
34
|
+
for (var c in l)
|
|
35
|
+
Object.prototype.hasOwnProperty.call(l, c) && (r[c] = l[c]);
|
|
36
|
+
}
|
|
37
|
+
return r;
|
|
38
|
+
}, _.apply(this, arguments);
|
|
39
|
+
}
|
|
40
|
+
function T(r, v) {
|
|
41
|
+
if (r == null) return {};
|
|
42
|
+
var l = {}, c = Object.keys(r), n, o;
|
|
43
|
+
for (o = 0; o < c.length; o++)
|
|
44
|
+
n = c[o], !(v.indexOf(n) >= 0) && (l[n] = r[n]);
|
|
45
|
+
return l;
|
|
46
|
+
}
|
|
47
|
+
var pe = {}, L = function() {
|
|
48
|
+
}, ge = function(v) {
|
|
49
|
+
var l = v.loadAnimation, c = t.memo(t.forwardRef(function(n, o) {
|
|
50
|
+
var B = n.play, y = B === void 0 ? null : B, G = n.speed, q = G === void 0 ? 1 : G, H = n.direction, g = H === void 0 ? 1 : H, J = n.segments, b = J === void 0 ? null : J, Q = n.goTo, h = Q === void 0 ? null : Q, U = n.useSubframes, V = U === void 0 ? !0 : U, X = n.renderer, Y = X === void 0 ? "svg" : X, Z = n.loop, k = Z === void 0 ? !0 : Z, ee = n.rendererSettings, D = ee === void 0 ? pe : ee, M = n.audioFactory, te = n.onLoad, O = te === void 0 ? L : te, ne = n.onComplete, P = ne === void 0 ? L : ne, re = n.onLoopComplete, $ = re === void 0 ? L : re, oe = n.onEnterFrame, j = oe === void 0 ? L : oe, ie = n.onSegmentStart, C = ie === void 0 ? L : ie, E = T(n, ["play", "speed", "direction", "segments", "goTo", "useSubframes", "renderer", "loop", "rendererSettings", "audioFactory", "onLoad", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart"]), N = E, u, I;
|
|
51
|
+
if ("animationData" in E) {
|
|
52
|
+
var ae = E;
|
|
53
|
+
u = ae.animationData, N = T(ae, ["animationData"]);
|
|
54
|
+
}
|
|
55
|
+
if ("path" in E) {
|
|
56
|
+
var ue = E;
|
|
57
|
+
I = ue.path, N = T(ue, ["path"]);
|
|
58
|
+
}
|
|
59
|
+
var w = t.useRef(null), x = t.useRef(), e = t.useCallback(function() {
|
|
60
|
+
if (x.current == null) throw new Error("Lottie ref is not set");
|
|
61
|
+
return x.current;
|
|
62
|
+
}, []), fe = t.useState(!1), a = fe[0], se = fe[1], le = t.useState(b), d = le[0], ye = le[1];
|
|
63
|
+
t.useEffect(function() {
|
|
64
|
+
s(d, b) || ye(b);
|
|
65
|
+
}, [b, d]);
|
|
66
|
+
var ce = t.useState(D), F = ce[0], Ee = ce[1];
|
|
67
|
+
t.useEffect(function() {
|
|
68
|
+
s(F, D) || Ee(D);
|
|
69
|
+
}, [D, F]), t.useEffect(function() {
|
|
70
|
+
return function() {
|
|
71
|
+
return e().removeEventListener("complete", P);
|
|
72
|
+
};
|
|
73
|
+
}, [e, P]), t.useEffect(function() {
|
|
74
|
+
return function() {
|
|
75
|
+
return e().removeEventListener("loopComplete", $);
|
|
76
|
+
};
|
|
77
|
+
}, [e, $]), t.useEffect(function() {
|
|
78
|
+
return function() {
|
|
79
|
+
return e().removeEventListener("enterFrame", j);
|
|
80
|
+
};
|
|
81
|
+
}, [e, j]), t.useEffect(function() {
|
|
82
|
+
return function() {
|
|
83
|
+
return e().removeEventListener("segmentStart", C);
|
|
84
|
+
};
|
|
85
|
+
}, [e, C]), t.useEffect(function() {
|
|
86
|
+
return function() {
|
|
87
|
+
return e().removeEventListener("DOMLoaded", O);
|
|
88
|
+
};
|
|
89
|
+
}, [e, O]);
|
|
90
|
+
var z = t.useCallback(function(i) {
|
|
91
|
+
x.current = i, typeof o == "function" ? o(i) : o != null && (o.current = i);
|
|
92
|
+
}, [o]);
|
|
93
|
+
t.useEffect(function() {
|
|
94
|
+
function i() {
|
|
95
|
+
return u == null || typeof u != "object" ? u : "default" in u && typeof u.default == "object" ? p(u.default) : p(u);
|
|
96
|
+
}
|
|
97
|
+
if (w.current == null) throw new Error("animElementRef is not set");
|
|
98
|
+
var R = l(_({
|
|
99
|
+
animationData: i(),
|
|
100
|
+
path: I,
|
|
101
|
+
container: w.current,
|
|
102
|
+
renderer: Y,
|
|
103
|
+
loop: !1,
|
|
104
|
+
autoplay: !1,
|
|
105
|
+
rendererSettings: F
|
|
106
|
+
}, M ? {
|
|
107
|
+
audioFactory: M
|
|
108
|
+
} : {}));
|
|
109
|
+
z(R);
|
|
110
|
+
var A = function() {
|
|
111
|
+
return se(!0);
|
|
112
|
+
};
|
|
113
|
+
return e().addEventListener("DOMLoaded", A), function() {
|
|
114
|
+
e().removeEventListener("DOMLoaded", A), se(!1), e().destroy(), z(void 0);
|
|
115
|
+
};
|
|
116
|
+
}, [k, Y, F, u, I, M, z, e]), t.useEffect(function() {
|
|
117
|
+
e().addEventListener("DOMLoaded", O);
|
|
118
|
+
}, [e, O]), t.useEffect(function() {
|
|
119
|
+
e().addEventListener("complete", P);
|
|
120
|
+
}, [e, P]), t.useEffect(function() {
|
|
121
|
+
e().addEventListener("loopComplete", $);
|
|
122
|
+
}, [e, $]), t.useEffect(function() {
|
|
123
|
+
e().addEventListener("enterFrame", j);
|
|
124
|
+
}, [e, j]), t.useEffect(function() {
|
|
125
|
+
e().addEventListener("segmentStart", C);
|
|
126
|
+
}, [e, C]), t.useEffect(function() {
|
|
127
|
+
a && (e().loop = k);
|
|
128
|
+
}, [a, k, e]);
|
|
129
|
+
var K = t.useRef(!1);
|
|
130
|
+
return t.useEffect(function() {
|
|
131
|
+
if (!a) return;
|
|
132
|
+
function i(Se) {
|
|
133
|
+
e().goToAndPlay(Se, !0), e().setDirection(g);
|
|
134
|
+
}
|
|
135
|
+
if (y === !0) {
|
|
136
|
+
var R = !0;
|
|
137
|
+
if (d) {
|
|
138
|
+
if (e().playSegments(d, R), K.current = !0, g === -1) {
|
|
139
|
+
var A = typeof d[1] == "number" ? d[1] : d[1][1];
|
|
140
|
+
i(A);
|
|
141
|
+
}
|
|
142
|
+
} else if (K.current && e().resetSegments(R), K.current = !1, g === -1) {
|
|
143
|
+
var de = e().getDuration(!0);
|
|
144
|
+
i(de);
|
|
145
|
+
} else
|
|
146
|
+
e().play();
|
|
147
|
+
} else y === !1 && e().pause();
|
|
148
|
+
}, [y, d, a, g, e]), t.useEffect(function() {
|
|
149
|
+
a && (Number.isNaN(q) || e().setSpeed(q));
|
|
150
|
+
}, [q, a, e]), t.useEffect(function() {
|
|
151
|
+
a && e().setDirection(g);
|
|
152
|
+
}, [g, e, a]), t.useEffect(function() {
|
|
153
|
+
if (a && h != null) {
|
|
154
|
+
var i = !0;
|
|
155
|
+
y ? e().goToAndPlay(h, i) : e().goToAndStop(h, i);
|
|
156
|
+
}
|
|
157
|
+
}, [e, h, y, a]), t.useEffect(function() {
|
|
158
|
+
e().setSubframe && e().setSubframe(V);
|
|
159
|
+
}, [e, V]), /* @__PURE__ */ m.createElement("div", _({}, N, {
|
|
160
|
+
ref: w
|
|
161
|
+
}));
|
|
162
|
+
}));
|
|
163
|
+
return c;
|
|
164
|
+
}, Le = ge(S);
|
|
165
|
+
return W = Le, W;
|
|
166
|
+
}
|
|
167
|
+
var ve = $e();
|
|
168
|
+
const je = /* @__PURE__ */ _e(ve), qe = /* @__PURE__ */ Pe({
|
|
169
|
+
__proto__: null,
|
|
170
|
+
default: je
|
|
171
|
+
}, [ve]);
|
|
172
|
+
export {
|
|
173
|
+
qe as L
|
|
174
|
+
};
|