@ikonai/sdk-react-ui-rive 1.0.2 → 1.0.3
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/index.js +376 -358
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import me, { memo as ge, useMemo as
|
|
2
|
-
import { Fit as
|
|
3
|
-
import { useUiNode as
|
|
4
|
-
var
|
|
1
|
+
import me, { memo as ge, useMemo as Y, useRef as ee, useEffect as q, useCallback as U } from "react";
|
|
2
|
+
import { Fit as k, Alignment as O, Layout as be, useRive as he, EventType as te } from "@rive-app/react-canvas";
|
|
3
|
+
import { useUiNode as ve } from "@ikonai/sdk-react-ui";
|
|
4
|
+
var $ = { exports: {} }, z = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.js
|
|
@@ -11,27 +11,27 @@ var U = { exports: {} }, z = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var ce;
|
|
15
15
|
function pe() {
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var e = Symbol.for("react.transitional.element"),
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
for (var
|
|
24
|
-
|
|
25
|
-
} else
|
|
26
|
-
return i =
|
|
16
|
+
if (ce) return z;
|
|
17
|
+
ce = 1;
|
|
18
|
+
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
19
|
+
function r(c, i, o) {
|
|
20
|
+
var l = null;
|
|
21
|
+
if (o !== void 0 && (l = "" + o), i.key !== void 0 && (l = "" + i.key), "key" in i) {
|
|
22
|
+
o = {};
|
|
23
|
+
for (var p in i)
|
|
24
|
+
p !== "key" && (o[p] = i[p]);
|
|
25
|
+
} else o = i;
|
|
26
|
+
return i = o.ref, {
|
|
27
27
|
$$typeof: e,
|
|
28
|
-
type:
|
|
29
|
-
key:
|
|
28
|
+
type: c,
|
|
29
|
+
key: l,
|
|
30
30
|
ref: i !== void 0 ? i : null,
|
|
31
|
-
props:
|
|
31
|
+
props: o
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return z.Fragment =
|
|
34
|
+
return z.Fragment = n, z.jsx = r, z.jsxs = r, z;
|
|
35
35
|
}
|
|
36
36
|
var B = {};
|
|
37
37
|
/**
|
|
@@ -43,26 +43,26 @@ var B = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
46
|
+
var ue;
|
|
47
47
|
function ye() {
|
|
48
|
-
return
|
|
48
|
+
return ue || (ue = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function e(t) {
|
|
50
50
|
if (t == null) return null;
|
|
51
51
|
if (typeof t == "function")
|
|
52
|
-
return t.$$typeof ===
|
|
52
|
+
return t.$$typeof === H ? null : t.displayName || t.name || null;
|
|
53
53
|
if (typeof t == "string") return t;
|
|
54
54
|
switch (t) {
|
|
55
55
|
case x:
|
|
56
56
|
return "Fragment";
|
|
57
57
|
case S:
|
|
58
58
|
return "Profiler";
|
|
59
|
-
case
|
|
59
|
+
case M:
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case b:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case m:
|
|
64
64
|
return "SuspenseList";
|
|
65
|
-
case
|
|
65
|
+
case W:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
68
|
if (typeof t == "object")
|
|
@@ -71,51 +71,51 @@ function ye() {
|
|
|
71
71
|
), t.$$typeof) {
|
|
72
72
|
case L:
|
|
73
73
|
return "Portal";
|
|
74
|
-
case
|
|
74
|
+
case f:
|
|
75
75
|
return (t.displayName || "Context") + ".Provider";
|
|
76
76
|
case u:
|
|
77
77
|
return (t._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case d:
|
|
79
|
-
var
|
|
80
|
-
return t = t.displayName, t || (t =
|
|
81
|
-
case
|
|
82
|
-
return
|
|
83
|
-
case
|
|
84
|
-
|
|
79
|
+
var a = t.render;
|
|
80
|
+
return t = t.displayName, t || (t = a.displayName || a.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
81
|
+
case g:
|
|
82
|
+
return a = t.displayName || null, a !== null ? a : e(t.type) || "Memo";
|
|
83
|
+
case v:
|
|
84
|
+
a = t._payload, t = t._init;
|
|
85
85
|
try {
|
|
86
|
-
return e(t(
|
|
86
|
+
return e(t(a));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function n(t) {
|
|
93
93
|
return "" + t;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function r(t) {
|
|
96
96
|
try {
|
|
97
|
-
|
|
98
|
-
var
|
|
97
|
+
n(t);
|
|
98
|
+
var a = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
a = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var
|
|
105
|
-
return
|
|
106
|
-
|
|
102
|
+
if (a) {
|
|
103
|
+
a = console;
|
|
104
|
+
var h = a.error, y = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
105
|
+
return h.call(
|
|
106
|
+
a,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
y
|
|
109
|
-
),
|
|
109
|
+
), n(t);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function c(t) {
|
|
113
113
|
if (t === x) return "<>";
|
|
114
|
-
if (typeof t == "object" && t !== null && t.$$typeof ===
|
|
114
|
+
if (typeof t == "object" && t !== null && t.$$typeof === v)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var a = e(t);
|
|
118
|
+
return a ? "<" + a + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -124,44 +124,44 @@ function ye() {
|
|
|
124
124
|
var t = D.A;
|
|
125
125
|
return t === null ? null : t.getOwner();
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function o() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
if (
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
130
|
+
function l(t) {
|
|
131
|
+
if (V.call(t, "key")) {
|
|
132
|
+
var a = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
133
|
+
if (a && a.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return t.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
function
|
|
139
|
-
|
|
137
|
+
function p(t, a) {
|
|
138
|
+
function h() {
|
|
139
|
+
re || (re = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
a
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
get:
|
|
144
|
+
h.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
145
|
+
get: h,
|
|
146
146
|
configurable: !0
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function _() {
|
|
150
150
|
var t = e(this.type);
|
|
151
|
-
return
|
|
151
|
+
return oe[t] || (oe[t] = !0, console.error(
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
154
154
|
}
|
|
155
|
-
function T(t,
|
|
156
|
-
return
|
|
155
|
+
function T(t, a, h, y, P, A, X, Z) {
|
|
156
|
+
return h = A.ref, t = {
|
|
157
157
|
$$typeof: I,
|
|
158
158
|
type: t,
|
|
159
|
-
key:
|
|
159
|
+
key: a,
|
|
160
160
|
props: A,
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
161
|
+
_owner: P
|
|
162
|
+
}, (h !== void 0 ? h : null) !== null ? Object.defineProperty(t, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
164
|
+
get: _
|
|
165
165
|
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
@@ -176,33 +176,33 @@ function ye() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: X
|
|
180
180
|
}), Object.defineProperty(t, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: Z
|
|
185
185
|
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var R =
|
|
187
|
+
function s(t, a, h, y, P, A, X, Z) {
|
|
188
|
+
var R = a.children;
|
|
189
189
|
if (R !== void 0)
|
|
190
190
|
if (y)
|
|
191
|
-
if (
|
|
191
|
+
if (J(R)) {
|
|
192
192
|
for (y = 0; y < R.length; y++)
|
|
193
|
-
|
|
193
|
+
E(R[y]);
|
|
194
194
|
Object.freeze && Object.freeze(R);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else
|
|
200
|
-
if (
|
|
199
|
+
else E(R);
|
|
200
|
+
if (V.call(a, "key")) {
|
|
201
201
|
R = e(t);
|
|
202
|
-
var F = Object.keys(
|
|
202
|
+
var F = Object.keys(a).filter(function(de) {
|
|
203
203
|
return de !== "key";
|
|
204
204
|
});
|
|
205
|
-
y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
205
|
+
y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", ae[R + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
@@ -213,31 +213,31 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
R,
|
|
214
214
|
F,
|
|
215
215
|
R
|
|
216
|
-
),
|
|
216
|
+
), ae[R + y] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (R = null,
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return R &&
|
|
224
|
-
|
|
218
|
+
if (R = null, h !== void 0 && (r(h), R = "" + h), l(a) && (r(a.key), R = "" + a.key), "key" in a) {
|
|
219
|
+
h = {};
|
|
220
|
+
for (var Q in a)
|
|
221
|
+
Q !== "key" && (h[Q] = a[Q]);
|
|
222
|
+
} else h = a;
|
|
223
|
+
return R && p(
|
|
224
|
+
h,
|
|
225
225
|
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
226
226
|
), T(
|
|
227
227
|
t,
|
|
228
228
|
R,
|
|
229
229
|
A,
|
|
230
|
-
|
|
230
|
+
P,
|
|
231
231
|
i(),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
h,
|
|
233
|
+
X,
|
|
234
|
+
Z
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function E(t) {
|
|
238
238
|
typeof t == "object" && t !== null && t.$$typeof === I && t._store && (t._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var j = me, I = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), x = Symbol.for("react.fragment"),
|
|
240
|
+
var j = me, I = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), D = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, J = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
j = {
|
|
@@ -245,52 +245,52 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return t();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
248
|
+
var re, oe = {}, ie = j["react-stack-bottom-frame"].bind(
|
|
249
249
|
j,
|
|
250
|
-
|
|
251
|
-
)(),
|
|
252
|
-
B.Fragment = x, B.jsx = function(t,
|
|
250
|
+
o
|
|
251
|
+
)(), se = G(c(o)), ae = {};
|
|
252
|
+
B.Fragment = x, B.jsx = function(t, a, h, y, P) {
|
|
253
253
|
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
254
|
-
return
|
|
254
|
+
return s(
|
|
255
255
|
t,
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
a,
|
|
257
|
+
h,
|
|
258
258
|
!1,
|
|
259
259
|
y,
|
|
260
|
-
|
|
261
|
-
A ? Error("react-stack-top-frame") :
|
|
262
|
-
A ?
|
|
260
|
+
P,
|
|
261
|
+
A ? Error("react-stack-top-frame") : ie,
|
|
262
|
+
A ? G(c(t)) : se
|
|
263
263
|
);
|
|
264
|
-
}, B.jsxs = function(t,
|
|
264
|
+
}, B.jsxs = function(t, a, h, y, P) {
|
|
265
265
|
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
266
|
-
return
|
|
266
|
+
return s(
|
|
267
267
|
t,
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
a,
|
|
269
|
+
h,
|
|
270
270
|
!0,
|
|
271
271
|
y,
|
|
272
|
-
|
|
273
|
-
A ? Error("react-stack-top-frame") :
|
|
274
|
-
A ?
|
|
272
|
+
P,
|
|
273
|
+
A ? Error("react-stack-top-frame") : ie,
|
|
274
|
+
A ? G(c(t)) : se
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), B;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
279
|
+
var fe;
|
|
280
280
|
function Re() {
|
|
281
|
-
return
|
|
281
|
+
return fe || (fe = 1, process.env.NODE_ENV === "production" ? $.exports = pe() : $.exports = ye()), $.exports;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var ne = Re();
|
|
284
284
|
function C(e) {
|
|
285
285
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function w(e) {
|
|
288
288
|
if (typeof e == "string") {
|
|
289
|
-
const
|
|
290
|
-
return
|
|
289
|
+
const n = e.trim();
|
|
290
|
+
return n.length > 0 ? n : void 0;
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function N(e) {
|
|
294
294
|
if (typeof e == "boolean")
|
|
295
295
|
return e;
|
|
296
296
|
if (typeof e == "string") {
|
|
@@ -300,67 +300,67 @@ function M(e) {
|
|
|
300
300
|
return !1;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function K(e) {
|
|
304
304
|
if (typeof e == "number" && Number.isFinite(e))
|
|
305
305
|
return e;
|
|
306
306
|
if (typeof e == "string") {
|
|
307
|
-
const
|
|
308
|
-
return Number.isFinite(
|
|
307
|
+
const n = Number(e.trim());
|
|
308
|
+
return Number.isFinite(n) ? n : void 0;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
function le(e) {
|
|
312
312
|
if (typeof e == "number" && Number.isFinite(e))
|
|
313
313
|
return `${e}px`;
|
|
314
314
|
if (typeof e == "string") {
|
|
315
|
-
const
|
|
316
|
-
return
|
|
315
|
+
const n = e.trim();
|
|
316
|
+
return n.length > 0 ? n : void 0;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
function Ee(e,
|
|
320
|
-
const
|
|
319
|
+
function Ee(e, n, r) {
|
|
320
|
+
const c = [];
|
|
321
321
|
for (const i of e)
|
|
322
322
|
if (typeof i == "string") {
|
|
323
|
-
const
|
|
324
|
-
|
|
323
|
+
const o = i.trim();
|
|
324
|
+
o.length > 0 && c.push(o);
|
|
325
325
|
}
|
|
326
|
+
if (typeof n == "string") {
|
|
327
|
+
const i = n.trim();
|
|
328
|
+
i.length > 0 && c.push(i);
|
|
329
|
+
}
|
|
326
330
|
if (typeof r == "string") {
|
|
327
331
|
const i = r.trim();
|
|
328
|
-
i.length > 0 &&
|
|
329
|
-
}
|
|
330
|
-
if (typeof o == "string") {
|
|
331
|
-
const i = o.trim();
|
|
332
|
-
i.length > 0 && a.push(i);
|
|
332
|
+
i.length > 0 && c.push(i);
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return c.length > 0 ? c.join(" ") : void 0;
|
|
335
335
|
}
|
|
336
336
|
function we(e) {
|
|
337
337
|
if (typeof e == "string") {
|
|
338
|
-
const
|
|
339
|
-
return
|
|
338
|
+
const n = e.trim();
|
|
339
|
+
return n.length > 0 ? [n] : void 0;
|
|
340
340
|
}
|
|
341
341
|
if (Array.isArray(e)) {
|
|
342
|
-
const
|
|
343
|
-
return
|
|
342
|
+
const n = e.map((r) => typeof r == "string" ? r.trim() : "").filter((r) => r.length > 0);
|
|
343
|
+
return n.length > 0 ? Array.from(new Set(n)) : void 0;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
const ke = {
|
|
347
|
-
contain:
|
|
348
|
-
cover:
|
|
349
|
-
fill:
|
|
350
|
-
fitwidth:
|
|
351
|
-
fitheight:
|
|
352
|
-
width:
|
|
353
|
-
height:
|
|
354
|
-
scaledown:
|
|
355
|
-
layout:
|
|
356
|
-
stretch:
|
|
357
|
-
none:
|
|
347
|
+
contain: k.Contain,
|
|
348
|
+
cover: k.Cover,
|
|
349
|
+
fill: k.Fill,
|
|
350
|
+
fitwidth: k.FitWidth,
|
|
351
|
+
fitheight: k.FitHeight,
|
|
352
|
+
width: k.FitWidth,
|
|
353
|
+
height: k.FitHeight,
|
|
354
|
+
scaledown: k.ScaleDown,
|
|
355
|
+
layout: k.Layout,
|
|
356
|
+
stretch: k.Fill,
|
|
357
|
+
none: k.None
|
|
358
358
|
};
|
|
359
359
|
function Te(e) {
|
|
360
360
|
if (typeof e != "string")
|
|
361
361
|
return;
|
|
362
|
-
const
|
|
363
|
-
return ke[
|
|
362
|
+
const n = e.replace(/[-_\s]/g, "").toLowerCase();
|
|
363
|
+
return ke[n];
|
|
364
364
|
}
|
|
365
365
|
const _e = {
|
|
366
366
|
center: O.Center,
|
|
@@ -376,343 +376,354 @@ const _e = {
|
|
|
376
376
|
function Ae(e) {
|
|
377
377
|
if (typeof e != "string")
|
|
378
378
|
return;
|
|
379
|
-
const
|
|
380
|
-
return _e[
|
|
379
|
+
const n = e.replace(/[-_\s]/g, "").toLowerCase();
|
|
380
|
+
return _e[n];
|
|
381
381
|
}
|
|
382
382
|
function Oe(e) {
|
|
383
383
|
if (!C(e))
|
|
384
384
|
return;
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
for (const [
|
|
388
|
-
const
|
|
389
|
-
if (!
|
|
385
|
+
const n = {};
|
|
386
|
+
let r = !1;
|
|
387
|
+
for (const [c, i] of Object.entries(e)) {
|
|
388
|
+
const o = c.trim();
|
|
389
|
+
if (!o)
|
|
390
390
|
continue;
|
|
391
|
-
const
|
|
392
|
-
|
|
391
|
+
const l = N(i);
|
|
392
|
+
l !== void 0 && (n[o] = l, r = !0);
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return r ? n : void 0;
|
|
395
395
|
}
|
|
396
396
|
function Se(e) {
|
|
397
397
|
if (!C(e))
|
|
398
398
|
return;
|
|
399
|
-
const
|
|
400
|
-
let
|
|
401
|
-
for (const [
|
|
402
|
-
const
|
|
403
|
-
if (!
|
|
399
|
+
const n = {};
|
|
400
|
+
let r = !1;
|
|
401
|
+
for (const [c, i] of Object.entries(e)) {
|
|
402
|
+
const o = c.trim();
|
|
403
|
+
if (!o)
|
|
404
404
|
continue;
|
|
405
|
-
const
|
|
406
|
-
|
|
405
|
+
const l = K(i);
|
|
406
|
+
l !== void 0 && (n[o] = l, r = !0);
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return r ? n : void 0;
|
|
409
409
|
}
|
|
410
410
|
function Ce(e) {
|
|
411
411
|
if (!C(e))
|
|
412
412
|
return;
|
|
413
|
-
const
|
|
414
|
-
let
|
|
415
|
-
for (const [
|
|
416
|
-
const
|
|
417
|
-
if (!
|
|
413
|
+
const n = {};
|
|
414
|
+
let r = !1;
|
|
415
|
+
for (const [c, i] of Object.entries(e)) {
|
|
416
|
+
const o = c.trim();
|
|
417
|
+
if (!o)
|
|
418
418
|
continue;
|
|
419
|
-
const
|
|
420
|
-
|
|
419
|
+
const l = w(i);
|
|
420
|
+
l && (n[o] = l, r = !0);
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return r ? n : void 0;
|
|
423
423
|
}
|
|
424
424
|
function je(e) {
|
|
425
425
|
if (!C(e))
|
|
426
426
|
return;
|
|
427
|
-
const
|
|
428
|
-
if (!(!
|
|
429
|
-
return { booleans:
|
|
427
|
+
const n = Oe(e.booleans), r = Se(e.numbers), c = Ce(e.strings);
|
|
428
|
+
if (!(!n && !r && !c))
|
|
429
|
+
return { booleans: n, numbers: r, strings: c };
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Me(e) {
|
|
432
432
|
if (!Array.isArray(e))
|
|
433
433
|
return;
|
|
434
|
-
const
|
|
435
|
-
for (const
|
|
436
|
-
if (!C(
|
|
434
|
+
const n = [];
|
|
435
|
+
for (const r of e) {
|
|
436
|
+
if (!C(r))
|
|
437
437
|
continue;
|
|
438
|
-
const
|
|
439
|
-
!
|
|
438
|
+
const c = w(r.name), i = K(r.sequence);
|
|
439
|
+
!c || i === void 0 || n.push({ name: c, sequence: i });
|
|
440
440
|
}
|
|
441
|
-
if (
|
|
442
|
-
return
|
|
441
|
+
if (n.length !== 0)
|
|
442
|
+
return n;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Pe(e) {
|
|
445
445
|
if (!C(e))
|
|
446
446
|
return;
|
|
447
|
-
const
|
|
448
|
-
let
|
|
449
|
-
for (const [
|
|
450
|
-
const
|
|
451
|
-
if (
|
|
447
|
+
const n = {};
|
|
448
|
+
let r = !1;
|
|
449
|
+
for (const [c, i] of Object.entries(e)) {
|
|
450
|
+
const o = c.trim();
|
|
451
|
+
if (o) {
|
|
452
452
|
if (typeof i == "boolean") {
|
|
453
|
-
|
|
453
|
+
n[o] = i, r = !0;
|
|
454
454
|
continue;
|
|
455
455
|
}
|
|
456
456
|
if (typeof i == "number" && Number.isFinite(i)) {
|
|
457
|
-
|
|
457
|
+
n[o] = i, r = !0;
|
|
458
458
|
continue;
|
|
459
459
|
}
|
|
460
460
|
if (typeof i == "string") {
|
|
461
|
-
const
|
|
462
|
-
if (!
|
|
461
|
+
const l = i.trim();
|
|
462
|
+
if (!l)
|
|
463
463
|
continue;
|
|
464
|
-
|
|
464
|
+
n[o] = l, r = !0;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return r ? n : void 0;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ne(e) {
|
|
471
471
|
if (!C(e))
|
|
472
472
|
return;
|
|
473
|
-
const
|
|
474
|
-
if (!
|
|
473
|
+
const n = w(e.name);
|
|
474
|
+
if (!n)
|
|
475
475
|
return;
|
|
476
|
-
const
|
|
476
|
+
const r = K(e.type), c = K(e.delay), i = w(e.url), o = w(e.target), l = Pe(e.properties);
|
|
477
477
|
return {
|
|
478
|
-
name:
|
|
479
|
-
type:
|
|
480
|
-
delay:
|
|
478
|
+
name: n,
|
|
479
|
+
type: r === void 0 ? void 0 : Math.trunc(r),
|
|
480
|
+
delay: c,
|
|
481
481
|
url: i,
|
|
482
|
-
target:
|
|
483
|
-
properties:
|
|
482
|
+
target: o,
|
|
483
|
+
properties: l
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
function xe(e) {
|
|
487
487
|
if (!C(e))
|
|
488
488
|
return;
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
for (const [
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
489
|
+
const n = {};
|
|
490
|
+
let r = !1;
|
|
491
|
+
for (const [c, i] of Object.entries(e)) {
|
|
492
|
+
const o = c.trim();
|
|
493
|
+
if (!o)
|
|
494
494
|
continue;
|
|
495
|
-
const
|
|
496
|
-
|
|
495
|
+
const l = w(i);
|
|
496
|
+
l && (n[o] = l, r = !0);
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return r ? n : void 0;
|
|
499
499
|
}
|
|
500
500
|
function Ie(e) {
|
|
501
501
|
if (!Array.isArray(e))
|
|
502
502
|
return;
|
|
503
|
-
const
|
|
504
|
-
for (const
|
|
505
|
-
if (!C(
|
|
503
|
+
const n = [];
|
|
504
|
+
for (const r of e) {
|
|
505
|
+
if (!C(r))
|
|
506
506
|
continue;
|
|
507
|
-
const
|
|
508
|
-
if (!
|
|
507
|
+
const c = w(r.key), i = w(r.input), o = w(r.kind);
|
|
508
|
+
if (!c || !i || !o)
|
|
509
509
|
continue;
|
|
510
|
-
const
|
|
511
|
-
let
|
|
512
|
-
switch (
|
|
510
|
+
const l = c.replace(/[-_\s]+/g, "").toLowerCase();
|
|
511
|
+
let p;
|
|
512
|
+
switch (l) {
|
|
513
513
|
case "arrowup":
|
|
514
514
|
case "up":
|
|
515
|
-
|
|
515
|
+
p = "ArrowUp";
|
|
516
516
|
break;
|
|
517
517
|
case "arrowdown":
|
|
518
518
|
case "down":
|
|
519
|
-
|
|
519
|
+
p = "ArrowDown";
|
|
520
520
|
break;
|
|
521
521
|
case "arrowleft":
|
|
522
522
|
case "left":
|
|
523
|
-
|
|
523
|
+
p = "ArrowLeft";
|
|
524
524
|
break;
|
|
525
525
|
case "arrowright":
|
|
526
526
|
case "right":
|
|
527
|
-
|
|
527
|
+
p = "ArrowRight";
|
|
528
528
|
break;
|
|
529
529
|
default:
|
|
530
530
|
continue;
|
|
531
531
|
}
|
|
532
|
-
const
|
|
532
|
+
const _ = o.replace(/[-_\s]+/g, "").toLowerCase();
|
|
533
533
|
let T;
|
|
534
|
-
|
|
534
|
+
_ === "boolean" ? T = "boolean" : _ === "trigger" && (T = "trigger"), T && n.push({ key: p, input: i, kind: T });
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return n.length > 0 ? n : void 0;
|
|
537
537
|
}
|
|
538
|
-
function Fe(e,
|
|
539
|
-
return
|
|
538
|
+
function Fe(e, n) {
|
|
539
|
+
return n.byteLength > 0 ? (e.decode(n), !0) : !1;
|
|
540
540
|
}
|
|
541
541
|
function Le() {
|
|
542
542
|
if (typeof globalThis > "u")
|
|
543
543
|
return !1;
|
|
544
|
-
const e = globalThis,
|
|
545
|
-
return
|
|
544
|
+
const e = globalThis, n = typeof e.OffscreenCanvas < "u", r = typeof e.crossOriginIsolated == "boolean" ? e.crossOriginIsolated : !1;
|
|
545
|
+
return n && r;
|
|
546
546
|
}
|
|
547
547
|
function De(e) {
|
|
548
|
-
const
|
|
548
|
+
const n = Y(
|
|
549
549
|
() => new be({
|
|
550
|
-
fit: e.layoutFit ??
|
|
550
|
+
fit: e.layoutFit ?? k.Contain,
|
|
551
551
|
alignment: e.layoutAlignment ?? O.Center
|
|
552
552
|
}),
|
|
553
553
|
[e.layoutFit, e.layoutAlignment]
|
|
554
|
-
),
|
|
554
|
+
), r = Y(() => Le(), []), c = (e.useOffscreenRenderer ?? !0) && r, i = ee(null);
|
|
555
|
+
i.current === null && (i.current = {
|
|
555
556
|
src: e.src,
|
|
556
557
|
stateMachines: e.stateMachines,
|
|
557
558
|
autoplay: e.autoplay ?? !0,
|
|
558
|
-
useOffscreenRenderer:
|
|
559
|
+
useOffscreenRenderer: c,
|
|
559
560
|
autoBind: e.autoBind ?? !0,
|
|
560
561
|
enableMultiTouch: e.enableMultiTouch,
|
|
561
562
|
dispatchPointerExit: e.dispatchPointerExit,
|
|
562
563
|
isTouchScrollEnabled: e.isTouchScrollEnabled,
|
|
563
564
|
shouldDisableRiveListeners: e.shouldDisableRiveListeners,
|
|
564
|
-
layout:
|
|
565
|
+
layout: n,
|
|
565
566
|
assetLoader: Fe
|
|
566
|
-
}
|
|
567
|
+
});
|
|
568
|
+
const { rive: o, RiveComponent: l } = he(i.current), p = ee(/* @__PURE__ */ new Map()), { dispatchAction: _ } = e, T = Y(() => {
|
|
567
569
|
if (!e.eventHandlers)
|
|
568
570
|
return;
|
|
569
571
|
const u = Object.entries(e.eventHandlers);
|
|
570
572
|
if (u.length === 0)
|
|
571
573
|
return;
|
|
572
|
-
const
|
|
574
|
+
const f = /* @__PURE__ */ new Map();
|
|
573
575
|
for (const [d, b] of u) {
|
|
574
|
-
const
|
|
575
|
-
if (!
|
|
576
|
+
const m = d.trim();
|
|
577
|
+
if (!m)
|
|
576
578
|
continue;
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
+
const g = b.trim();
|
|
580
|
+
g && f.set(m, g);
|
|
579
581
|
}
|
|
580
|
-
return
|
|
581
|
-
}, [e.eventHandlers]),
|
|
582
|
+
return f.size > 0 ? f : void 0;
|
|
583
|
+
}, [e.eventHandlers]), s = Y(() => {
|
|
582
584
|
if (!e.keyboardBindings || e.keyboardBindings.length === 0)
|
|
583
585
|
return;
|
|
584
586
|
const u = /* @__PURE__ */ new Map();
|
|
585
|
-
for (const
|
|
586
|
-
const d = u.get(
|
|
587
|
-
d ? d.push(
|
|
587
|
+
for (const f of e.keyboardBindings) {
|
|
588
|
+
const d = u.get(f.key);
|
|
589
|
+
d ? d.push(f) : u.set(f.key, [f]);
|
|
588
590
|
}
|
|
589
591
|
return u;
|
|
590
|
-
}, [e.keyboardBindings]),
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}, [
|
|
594
|
-
const u =
|
|
592
|
+
}, [e.keyboardBindings]), E = ee(/* @__PURE__ */ new Set());
|
|
593
|
+
q(() => {
|
|
594
|
+
E.current.clear();
|
|
595
|
+
}, [s]), q(() => {
|
|
596
|
+
const u = o?.viewModelInstance;
|
|
595
597
|
if (!u)
|
|
596
598
|
return;
|
|
597
|
-
const
|
|
598
|
-
if (
|
|
599
|
-
for (const [
|
|
600
|
-
const
|
|
601
|
-
|
|
599
|
+
const f = e.viewModel?.booleans;
|
|
600
|
+
if (f)
|
|
601
|
+
for (const [m, g] of Object.entries(f)) {
|
|
602
|
+
const v = u.boolean(m);
|
|
603
|
+
v && (v.value = g);
|
|
602
604
|
}
|
|
603
605
|
const d = e.viewModel?.numbers;
|
|
604
606
|
if (d)
|
|
605
|
-
for (const [
|
|
606
|
-
const
|
|
607
|
-
|
|
607
|
+
for (const [m, g] of Object.entries(d)) {
|
|
608
|
+
const v = u.number(m);
|
|
609
|
+
v && (v.value = g);
|
|
608
610
|
}
|
|
609
611
|
const b = e.viewModel?.strings;
|
|
610
612
|
if (b)
|
|
611
|
-
for (const [
|
|
612
|
-
const
|
|
613
|
-
|
|
613
|
+
for (const [m, g] of Object.entries(b)) {
|
|
614
|
+
const v = u.string(m);
|
|
615
|
+
v && (v.value = g);
|
|
614
616
|
}
|
|
615
|
-
}, [e.viewModel,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
617
|
+
}, [e.viewModel, o]), q(() => {
|
|
618
|
+
if (!(!o || !e.triggerRequests || !e.stateMachines))
|
|
619
|
+
for (const u of e.triggerRequests) {
|
|
620
|
+
const f = p.current.get(u.name);
|
|
621
|
+
if (!(f !== void 0 && u.sequence <= f)) {
|
|
622
|
+
p.current.set(u.name, u.sequence);
|
|
623
|
+
for (const d of e.stateMachines) {
|
|
624
|
+
const b = o.stateMachineInputs(d);
|
|
625
|
+
if (!b)
|
|
626
|
+
continue;
|
|
627
|
+
const m = b.find((g) => g.name === u.name);
|
|
628
|
+
if (m && "fire" in m) {
|
|
629
|
+
m.fire();
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
623
634
|
}
|
|
624
|
-
}, [e.triggerRequests,
|
|
625
|
-
if (!
|
|
635
|
+
}, [e.triggerRequests, e.stateMachines, o]), q(() => {
|
|
636
|
+
if (!o || !T || !_)
|
|
626
637
|
return;
|
|
627
|
-
const u = (
|
|
628
|
-
if (
|
|
638
|
+
const u = (f) => {
|
|
639
|
+
if (f.type !== te.RiveEvent)
|
|
629
640
|
return;
|
|
630
|
-
const d =
|
|
641
|
+
const d = Ne(f.data);
|
|
631
642
|
if (!d)
|
|
632
643
|
return;
|
|
633
644
|
const b = T.get(d.name);
|
|
634
|
-
b &&
|
|
645
|
+
b && _(b, d);
|
|
635
646
|
};
|
|
636
|
-
return
|
|
637
|
-
|
|
647
|
+
return o.on?.(te.RiveEvent, u), () => {
|
|
648
|
+
o.off?.(te.RiveEvent, u);
|
|
638
649
|
};
|
|
639
|
-
}, [
|
|
640
|
-
const j =
|
|
650
|
+
}, [o, T, _]);
|
|
651
|
+
const j = U(
|
|
641
652
|
(u) => {
|
|
642
|
-
|
|
653
|
+
s && u.currentTarget.focus();
|
|
643
654
|
},
|
|
644
|
-
[
|
|
645
|
-
), I =
|
|
655
|
+
[s]
|
|
656
|
+
), I = U(
|
|
646
657
|
(u) => {
|
|
647
|
-
if (!
|
|
658
|
+
if (!s)
|
|
648
659
|
return;
|
|
649
|
-
const
|
|
660
|
+
const f = u.key, d = s.get(f);
|
|
650
661
|
if (!d || d.length === 0)
|
|
651
662
|
return;
|
|
652
|
-
if (
|
|
663
|
+
if (E.current.has(f)) {
|
|
653
664
|
u.preventDefault();
|
|
654
665
|
return;
|
|
655
666
|
}
|
|
656
|
-
const b =
|
|
667
|
+
const b = o?.viewModelInstance;
|
|
657
668
|
if (!b)
|
|
658
669
|
return;
|
|
659
|
-
let
|
|
660
|
-
for (const
|
|
661
|
-
if (
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
} else if (
|
|
665
|
-
const
|
|
666
|
-
|
|
670
|
+
let m = !1;
|
|
671
|
+
for (const g of d)
|
|
672
|
+
if (g.kind === "boolean") {
|
|
673
|
+
const v = b.boolean(g.input);
|
|
674
|
+
v && (v.value = !0, m = !0);
|
|
675
|
+
} else if (g.kind === "trigger") {
|
|
676
|
+
const v = b.trigger(g.input);
|
|
677
|
+
v && (v.trigger(), m = !0);
|
|
667
678
|
}
|
|
668
|
-
|
|
679
|
+
m && (E.current.add(f), u.preventDefault());
|
|
669
680
|
},
|
|
670
|
-
[
|
|
671
|
-
), L =
|
|
681
|
+
[s, o]
|
|
682
|
+
), L = U(
|
|
672
683
|
(u) => {
|
|
673
|
-
if (!
|
|
684
|
+
if (!s)
|
|
674
685
|
return;
|
|
675
|
-
const
|
|
686
|
+
const f = u.key, d = s.get(f);
|
|
676
687
|
if (!d || d.length === 0)
|
|
677
688
|
return;
|
|
678
|
-
const b =
|
|
689
|
+
const b = o?.viewModelInstance;
|
|
679
690
|
if (!b) {
|
|
680
|
-
|
|
691
|
+
E.current.delete(f);
|
|
681
692
|
return;
|
|
682
693
|
}
|
|
683
|
-
|
|
684
|
-
let
|
|
685
|
-
for (const
|
|
686
|
-
if (
|
|
694
|
+
E.current.delete(f);
|
|
695
|
+
let m = !1;
|
|
696
|
+
for (const g of d) {
|
|
697
|
+
if (g.kind !== "boolean")
|
|
687
698
|
continue;
|
|
688
|
-
const
|
|
689
|
-
|
|
699
|
+
const v = b.boolean(g.input);
|
|
700
|
+
v && (v.value = !1, m = !0);
|
|
690
701
|
}
|
|
691
|
-
|
|
702
|
+
m && u.preventDefault();
|
|
692
703
|
},
|
|
693
|
-
[
|
|
694
|
-
), x =
|
|
695
|
-
if (!
|
|
696
|
-
|
|
704
|
+
[s, o]
|
|
705
|
+
), x = U(() => {
|
|
706
|
+
if (!s || s.size === 0) {
|
|
707
|
+
E.current.clear();
|
|
697
708
|
return;
|
|
698
709
|
}
|
|
699
|
-
const u =
|
|
700
|
-
if (
|
|
701
|
-
for (const d of
|
|
702
|
-
const b =
|
|
710
|
+
const u = o?.viewModelInstance, f = Array.from(E.current);
|
|
711
|
+
if (E.current.clear(), !!u)
|
|
712
|
+
for (const d of f) {
|
|
713
|
+
const b = s.get(d);
|
|
703
714
|
if (b)
|
|
704
|
-
for (const
|
|
705
|
-
if (
|
|
715
|
+
for (const m of b) {
|
|
716
|
+
if (m.kind !== "boolean")
|
|
706
717
|
continue;
|
|
707
|
-
const
|
|
708
|
-
|
|
718
|
+
const g = u.boolean(m.input);
|
|
719
|
+
g && (g.value = !1);
|
|
709
720
|
}
|
|
710
721
|
}
|
|
711
|
-
}, [
|
|
712
|
-
e.backgroundColor && (
|
|
713
|
-
const S = !!
|
|
714
|
-
return /* @__PURE__ */
|
|
715
|
-
|
|
722
|
+
}, [s, o]), M = {};
|
|
723
|
+
e.backgroundColor && (M.backgroundColor = e.backgroundColor), e.width && (M.width = e.width), e.height && (M.height = e.height);
|
|
724
|
+
const S = !!s;
|
|
725
|
+
return /* @__PURE__ */ ne.jsx("div", { className: e.className, style: M, children: /* @__PURE__ */ ne.jsx(
|
|
726
|
+
l,
|
|
716
727
|
{
|
|
717
728
|
style: { width: "100%", height: "100%", backgroundColor: "transparent" },
|
|
718
729
|
tabIndex: S ? 0 : void 0,
|
|
@@ -724,42 +735,49 @@ function De(e) {
|
|
|
724
735
|
) });
|
|
725
736
|
}
|
|
726
737
|
function ze() {
|
|
727
|
-
|
|
728
|
-
|
|
738
|
+
const e = /* @__PURE__ */ new Map();
|
|
739
|
+
return (n) => {
|
|
740
|
+
if (n.type !== "rive-canvas")
|
|
729
741
|
return;
|
|
730
|
-
const r =
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
742
|
+
const r = w(n.props.src);
|
|
743
|
+
if (!r)
|
|
744
|
+
return;
|
|
745
|
+
const c = e.get(n.id);
|
|
746
|
+
if (c)
|
|
747
|
+
return c;
|
|
748
|
+
const i = ge(function({ nodeId: l, context: p, className: _ }) {
|
|
749
|
+
const s = ve(p.store, l) ?? n, E = w(s.props.src) ?? r, j = we(s.props.stateMachines), I = N(s.props.autoplay), L = N(s.props.autoBind), x = N(s.props.useOffscreenRenderer), M = N(s.props.enableMultiTouch), S = N(s.props.dispatchPointerExit), u = N(s.props.isTouchScrollEnabled), f = N(s.props.shouldDisableRiveListeners), d = Ie(s.props.keyboardBindings), b = Te(s.props.layoutFit), m = Ae(s.props.layoutAlignment), g = w(s.props.backgroundColor), v = le(s.props.width), W = le(s.props.height), H = je(s.props.viewModel), D = Me(s.props.triggerRequests), V = xe(s.props.eventHandlers), J = Ee(
|
|
750
|
+
s.styleIds,
|
|
751
|
+
_,
|
|
752
|
+
w(s.props.style)
|
|
736
753
|
);
|
|
737
|
-
return /* @__PURE__ */
|
|
754
|
+
return /* @__PURE__ */ ne.jsx(
|
|
738
755
|
De,
|
|
739
756
|
{
|
|
740
|
-
src:
|
|
741
|
-
stateMachines:
|
|
742
|
-
autoplay:
|
|
743
|
-
autoBind:
|
|
744
|
-
useOffscreenRenderer:
|
|
745
|
-
enableMultiTouch:
|
|
746
|
-
dispatchPointerExit:
|
|
747
|
-
isTouchScrollEnabled:
|
|
748
|
-
shouldDisableRiveListeners:
|
|
749
|
-
keyboardBindings:
|
|
750
|
-
layoutFit:
|
|
751
|
-
layoutAlignment:
|
|
752
|
-
backgroundColor:
|
|
757
|
+
src: E,
|
|
758
|
+
stateMachines: j,
|
|
759
|
+
autoplay: I,
|
|
760
|
+
autoBind: L,
|
|
761
|
+
useOffscreenRenderer: x,
|
|
762
|
+
enableMultiTouch: M,
|
|
763
|
+
dispatchPointerExit: S,
|
|
764
|
+
isTouchScrollEnabled: u,
|
|
765
|
+
shouldDisableRiveListeners: f,
|
|
766
|
+
keyboardBindings: d,
|
|
767
|
+
layoutFit: b,
|
|
768
|
+
layoutAlignment: m,
|
|
769
|
+
backgroundColor: g,
|
|
753
770
|
width: v,
|
|
754
|
-
height:
|
|
755
|
-
viewModel:
|
|
756
|
-
triggerRequests:
|
|
757
|
-
eventHandlers:
|
|
758
|
-
dispatchAction:
|
|
759
|
-
className:
|
|
771
|
+
height: W,
|
|
772
|
+
viewModel: H,
|
|
773
|
+
triggerRequests: D,
|
|
774
|
+
eventHandlers: V,
|
|
775
|
+
dispatchAction: p.dispatchAction,
|
|
776
|
+
className: J
|
|
760
777
|
}
|
|
761
778
|
);
|
|
762
|
-
})
|
|
779
|
+
});
|
|
780
|
+
return e.set(n.id, i), i;
|
|
763
781
|
};
|
|
764
782
|
}
|
|
765
783
|
const Be = "rive";
|