@telia-ace/widget-components-area 1.1.1-rc.2 → 1.1.1-rc.4

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/area-f1877ce1.mjs DELETED
@@ -1,718 +0,0 @@
1
- import { jsx as u, jsxs as fe } from "react/jsx-runtime";
2
- import { css as O, ThemeProvider as he } from "@emotion/react";
3
- import y from "@emotion/styled";
4
- import { E as ge, C as re, u as _, a as Y, b as z, c as ye, d as I, e as K, f as oe, W as R, g as se, G, h as H, i as J, j as V, p as ie, k as ae, T as be, l as ce, A as W, D as $e, m as xe, n as Ce, L as ve, B as we, o as Se, S as Te } from "./index-23726922.mjs";
5
- import le, { useContext as Q, useState as T, useCallback as ue, useEffect as C, forwardRef as Z, useMemo as De, Suspense as Pe } from "react";
6
- import "react-dom";
7
- import { Transition as de, TransitionGroup as Ee } from "react-transition-group";
8
- import { Switch as Re, Route as F } from "react-router";
9
- const Ne = (e) => e === "entering" || e === "entered", Ae = (e) => e === "exiting" || e === "exited", A = {
10
- fade: {
11
- in: "opacity: 1;",
12
- out: "opacity: 0;"
13
- },
14
- "slide-left": {
15
- in: "transform: translateX(0);",
16
- out: "transform: translateX(-100%);"
17
- },
18
- "slide-right": {
19
- in: "transform: translateX(0);",
20
- out: "transform: translateX(100%);"
21
- },
22
- "slide-up": {
23
- in: "transform: translateY(0);",
24
- out: "transform: translateY(100%);"
25
- },
26
- "slide-down": {
27
- in: "transform: translateY(0);",
28
- out: "transform: translateY(-100%);"
29
- },
30
- scale: {
31
- in: "transform: scale(1);",
32
- out: "transform: scale(0);"
33
- }
34
- }, Oe = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], k = {
35
- compose: (e = "exited", t) => {
36
- const { enter: r, exit: o } = t, n = r.transitionKeys.split(" "), i = Oe.indexOf(n[0]) > -1 ? "transform" : "opacity";
37
- if (Ne(e))
38
- return n && n.length > 0 ? O`
39
- ${n && n.length > 0 && n.map((a) => A[a] ? A[a].in : "")}
40
- transition: ${i} ${r.duration}ms ${r.easing};
41
- ` : "";
42
- const s = n && n.length > 0 && O`
43
- ${n.map((a) => A[a] ? A[a].out : "")}
44
- `;
45
- if (Ae(e)) {
46
- const a = o.transitionKeys.split(" ");
47
- return a && a.length > 0 && e === "exiting" ? O`
48
- ${s};
49
- ${a.map((c) => A[c] ? A[c].out : "")}
50
- transition: ${i} ${o.duration}ms ${o.easing};
51
- ` : s;
52
- }
53
- },
54
- composeViewTransition: (e, t, r) => {
55
- if (t === "slide")
56
- return k.compose(e, {
57
- enter: {
58
- transitionKeys: r === "forth" ? "slide-right" : "slide-left",
59
- duration: 500
60
- },
61
- exit: {
62
- transitionKeys: r === "forth" ? "slide-left" : "slide-right",
63
- duration: 500
64
- }
65
- });
66
- if (t === "fade")
67
- return k.compose(e, {
68
- enter: {
69
- transitionKeys: "fade",
70
- duration: 500
71
- },
72
- exit: {
73
- transitionKeys: "fade",
74
- duration: 500
75
- }
76
- });
77
- },
78
- get: (e) => A[e]
79
- }, ne = (e = {}) => (Object.keys(e).forEach((t) => {
80
- (e[t] === null || typeof e[t] > "u") && delete e[t];
81
- }), e), Ve = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ u(ge, { ...t }) : null, ee = () => Q(re), U = (e, t) => ({
82
- id: e.id,
83
- type: e.type,
84
- name: e.name,
85
- branch: t || "default"
86
- }), Ke = () => {
87
- const e = _(), t = Y(), [r, o] = T([]), n = z(), i = ue(
88
- (s) => {
89
- if (t && n.current && s) {
90
- const a = t.getBranch(s), c = s.getChildren(a).map((l) => U(l));
91
- o(c);
92
- }
93
- },
94
- [n, t, o, e]
95
- );
96
- return C(() => {
97
- e && i(e);
98
- }, [e, t]), C(() => {
99
- if (t) {
100
- const [s, a] = ye(t.events);
101
- return s("components:set-layout", (c, l) => {
102
- (e === l.node.parent || l.node.parent === t.nodes.root) && i(l.node.parent);
103
- }), s("components:node-appended", (c, l) => {
104
- (e === l.node.parent || l.node.parent === t.nodes.root) && i(l.node.parent);
105
- }), s("components:node-removed", (c, { parentNode: l }) => {
106
- (l === e || l === t.nodes.root) && i(l);
107
- }), () => {
108
- a();
109
- };
110
- }
111
- }, [e, t, i]), r;
112
- }, Me = () => Q(I), ze = (e, t) => {
113
- const r = ee(), o = K(), [n, i] = T(void 0), s = z(), a = e || r.type || "";
114
- return C(() => {
115
- if (a) {
116
- let c;
117
- return (t || o).getAsync("componentResolver").then((l) => {
118
- if (s.current) {
119
- const m = l.getComponent(a);
120
- i(m);
121
- }
122
- c = l.registerResolver(a, (m) => {
123
- s.current && i(m);
124
- });
125
- }), () => {
126
- c && c();
127
- };
128
- }
129
- }, [s, a, t, o]), n;
130
- }, je = (e) => {
131
- const t = _(e), r = Y(), [o, n] = T({}), i = z();
132
- return C(() => {
133
- t && i.current && n(t.attributes.layout);
134
- }, [t, i]), C(() => {
135
- if (r) {
136
- const s = r.events.subscribe(
137
- "components:layout-changed",
138
- (a, c) => {
139
- t === c.node && i.current && n(c.node.attributes.layout);
140
- }
141
- );
142
- return () => {
143
- s();
144
- };
145
- }
146
- }, [r, i, t]), o;
147
- }, te = () => Q(oe), Be = (e) => {
148
- const [t, r] = T(), o = K(), n = z();
149
- return C(() => {
150
- let i;
151
- const s = (e || o).get("$widget");
152
- if (!s)
153
- return;
154
- const { name: a, invoke: c } = s;
155
- return c("renderState").then((l) => {
156
- n.current && r(l);
157
- }), (e || o).getAsync("actionResolver").then((l) => {
158
- i = l.subscribe(a, (m, d) => {
159
- switch (d) {
160
- case "close":
161
- case "open":
162
- n.current && r(
163
- d === "open" ? R.open : R.closed
164
- );
165
- break;
166
- case "hide":
167
- n.current && r(R.hidden);
168
- }
169
- });
170
- }), () => {
171
- i && i();
172
- };
173
- }, [n]), t;
174
- }, Le = (e) => {
175
- const t = K(), r = se(), [o, n] = T({ name: "", params: {} }), i = z();
176
- return C(() => {
177
- const s = (e || t).get("$widget");
178
- if (!s)
179
- return;
180
- const { events: a } = s;
181
- return a.subscribe("router:change", (l, { next: { routeData: m } }) => {
182
- if (i.current) {
183
- const { name: d, params: p } = m;
184
- ne(p), n({ name: d, params: p });
185
- }
186
- });
187
- }, [i, e, t]), C(() => {
188
- if (r && r.history && i.current) {
189
- const s = r.getRouteData(), { name: a, params: c } = s;
190
- ne(c), n({ name: a, params: c });
191
- }
192
- }, [r, i]), o;
193
- }, We = (e) => {
194
- const {
195
- in: t,
196
- mountOnEnter: r = !0,
197
- unmountOnExit: o = !0,
198
- timeout: n,
199
- children: i,
200
- transitions: s
201
- } = e, c = (() => {
202
- var l, m;
203
- if (!(!s || s === "none")) {
204
- if (typeof s == "string")
205
- return {
206
- enter: {
207
- transitionKeys: s,
208
- duration: n ? typeof n == "number" ? n : n.enter : 200,
209
- easing: "ease-in"
210
- },
211
- exit: {
212
- transitionKeys: s,
213
- duration: n ? typeof n == "number" ? n : n.exit : 200,
214
- easing: "ease-out"
215
- }
216
- };
217
- if (typeof s == "object") {
218
- const { enter: d, exit: p } = s;
219
- return {
220
- enter: {
221
- transitionKeys: (l = s.enter) == null ? void 0 : l.type,
222
- duration: n ? typeof n == "number" ? n : n.enter : 200,
223
- easing: d.easing ? d.easing : "ease-in"
224
- },
225
- exit: {
226
- transitionKeys: (m = s.enter) == null ? void 0 : m.type,
227
- duration: n ? typeof n == "number" ? n : n.enter : 200,
228
- easing: p.easing ? p.easing : "ease-out"
229
- }
230
- };
231
- }
232
- }
233
- })();
234
- return /* @__PURE__ */ u(
235
- de,
236
- {
237
- timeout: {
238
- enter: c && c.enter.duration || 0,
239
- exit: c && c.exit.duration || 0
240
- },
241
- in: t,
242
- appear: !0,
243
- mountOnEnter: r,
244
- unmountOnExit: o,
245
- onEnter: (l) => l.clientHeight,
246
- children: (l) => i && i(l, c && k.compose(l, c))
247
- }
248
- );
249
- };
250
- var q = /* @__PURE__ */ ((e) => (e.back = "back", e.forth = "forth", e))(q || {});
251
- const _e = (e, t, r) => typeof r[e] == "number" && typeof r[t] == "number" && r[e] > r[t] ? "back" : "forth", me = ({ views: e, location: t, render: r }) => /* @__PURE__ */ u(
252
- Re,
253
- {
254
- location: t && {
255
- ...t,
256
- pathname: t.pathname.split("?")[0]
257
- },
258
- children: [
259
- ...Object.keys(e).filter((o) => !!e[o].path),
260
- ...Object.keys(e).filter((o) => !e[o].path)
261
- ].map((o) => {
262
- const { path: n } = e[o];
263
- return n ? Array.isArray(n) ? n.map((i) => /* @__PURE__ */ u(F, { exact: !0, path: i, render: () => r(o) }, o)) : /* @__PURE__ */ u(F, { exact: !0, path: n, render: () => r(o) }, o) : /* @__PURE__ */ u(F, { render: () => r(o) }, o);
264
- })
265
- }
266
- ), ke = y.div`
267
- position: relative;
268
- width: 100%;
269
- flex: 1;
270
- `, Xe = y(G)`
271
- position: absolute;
272
- left: 0;
273
- right: 0;
274
- ${(e) => !!e.animationCss && e.animationCss}
275
- ${(e) => !!e.scrollableCss && e.scrollableCss}
276
- `, Ye = {
277
- index: 1,
278
- search: 2,
279
- browse: 3,
280
- guide: 4,
281
- contact: 5,
282
- "contact-method": 6,
283
- conversation: 7
284
- }, Ge = ({ className: e = "", ...t }) => {
285
- const [r, o] = T("index"), [n, i] = T(
286
- q.forth
287
- ), s = Le(), a = se(), c = te(), l = H(), m = K(), d = _(), { gap: p = "0" } = l, {
288
- columns: D = 1,
289
- animation: v = "none",
290
- scrollable: g = !1,
291
- ...N
292
- } = c, [B, P] = J(g);
293
- if (!d || !a)
294
- return null;
295
- const { location: M } = a;
296
- s.name !== r && s.name !== "" && v && (i(
297
- _e(r, s.name, Ye)
298
- ), o(s.name));
299
- const { views: b } = m.get("$settings");
300
- if (!Object.keys(b).length)
301
- return null;
302
- const $ = (f, w, S) => {
303
- const h = L(w, S), E = d.getChildren(f)[0];
304
- return /* @__PURE__ */ u(
305
- Xe,
306
- {
307
- ...t,
308
- ...N,
309
- scrollableCss: B,
310
- ref: P,
311
- columns: D,
312
- gap: p,
313
- ...h,
314
- className: V(e, "humany-view"),
315
- children: /* @__PURE__ */ u(X, { id: E.id, branch: "default" })
316
- }
317
- );
318
- }, L = (f, w) => {
319
- if (v === "slide" || v === "fade")
320
- return {
321
- animationCss: k.composeViewTransition(
322
- f,
323
- v,
324
- w
325
- ),
326
- "data-state": f
327
- };
328
- };
329
- return /* @__PURE__ */ u(ke, { className: "humany-animated-view", children: /* @__PURE__ */ u(
330
- Ee,
331
- {
332
- component: null,
333
- childFactory: (f) => le.cloneElement(f, { direction: n }),
334
- children: /* @__PURE__ */ u(
335
- de,
336
- {
337
- timeout: { enter: 500, exit: 500 },
338
- onEnter: (f) => f == null ? void 0 : f.clientHeight,
339
- unmountOnExit: !0,
340
- direction: q.forth,
341
- children: (f, { direction: w }) => /* @__PURE__ */ u(
342
- me,
343
- {
344
- views: b,
345
- location: M,
346
- render: (S) => $(S, f, w)
347
- }
348
- )
349
- },
350
- r
351
- )
352
- }
353
- ) });
354
- }, He = y(G)`
355
- ${(e) => !!e.scrollableCss && e.scrollableCss}
356
- `, Fe = ({ className: e = "", ...t }) => {
357
- const r = te(), o = H(), n = K(), i = _(), { views: s } = n.get("$settings"), { gap: a = "0" } = o, { columns: c = 1, animation: l = "none", scrollable: m = !1, ...d } = r, [p, D] = J(m);
358
- return i ? /* @__PURE__ */ u(
359
- He,
360
- {
361
- ...t,
362
- ...d,
363
- scrollableCss: p,
364
- ref: D,
365
- columns: c,
366
- gap: a,
367
- className: V(e, "humany-view"),
368
- children: /* @__PURE__ */ u(
369
- me,
370
- {
371
- views: s,
372
- render: (v) => {
373
- const g = i.getChildren(v)[0];
374
- return /* @__PURE__ */ u(X, { id: g.id, node: g, branch: "default" });
375
- }
376
- }
377
- )
378
- }
379
- ) : null;
380
- }, j = (e) => {
381
- var t, r;
382
- return O`
383
- outline: none;
384
- box-sizing: border-box;
385
- * {
386
- box-sizing: border-box;
387
- outline: none;
388
- }
389
-
390
- grid-column: ${e["data-indent"] ? `${e["data-indent"] + 1} / ${e["data-indent"] + (e["data-width"] || 0) + 1}` : `span ${e["data-width"]}`};
391
-
392
- ${((t = e.theme.fonts) == null ? void 0 : t.type) && `
393
- font-family: ${e.theme.fonts.type};
394
-
395
- input, textarea {
396
- font-family: ${e.theme.fonts.type};
397
- }
398
- `}
399
-
400
- ${((r = e.theme.fonts) == null ? void 0 : r.base) && `
401
- font-size: ${e.theme.fonts.base};
402
- `}
403
-
404
- &:focus-visible {
405
- ${ie(e)};
406
- }
407
- `;
408
- }, Ie = y(Fe)`
409
- ${(e) => j(e)}
410
- `, Ue = y(Ge)`
411
- ${(e) => j(e)}
412
- `, qe = y.div`
413
- text-align: center;
414
- ${(e) => {
415
- var t, r, o;
416
- return typeof ((t = e.theme.colors) == null ? void 0 : t.warning) < "u" && O`
417
- color: ${(r = e.theme.colors) == null ? void 0 : r.warning};
418
- border: 2px dashed ${(o = e.theme.colors) == null ? void 0 : o.warning};
419
- `;
420
- }}
421
- ${(e) => typeof e.theme.borderRadius < "u" && `border-radius: ${e.theme.borderRadius};`}
422
- ${(e) => j(e)}
423
- `, Je = Z(
424
- ({ className: e = "", children: t, ...r }, o) => {
425
- const n = ze(), { name: i, type: s, id: a } = ee(), c = De(() => n ? y(n)`
426
- ${j}
427
- ${ae}
428
- ` : null, [n]);
429
- return typeof n > "u" ? null : n === null || c === null ? process.env.NODE_ENV !== "production" ? /* @__PURE__ */ u(
430
- qe,
431
- {
432
- ...r,
433
- title: `type: ${s}, definition-id: ${i}, instance-id: ${a}`,
434
- className: V(e, "humany-non-resolved-component"),
435
- children: /* @__PURE__ */ u(be, { variant: "h5", children: "Non Resolved Component Type" })
436
- }
437
- ) : null : /* @__PURE__ */ u(Pe, { fallback: null, children: /* @__PURE__ */ u(
438
- c,
439
- {
440
- ref: o,
441
- ...r,
442
- className: V(
443
- e,
444
- "humany-component",
445
- `humany-component-${i}`
446
- ),
447
- children: t
448
- }
449
- ) });
450
- }
451
- ), Qe = (e) => {
452
- const t = _(e), r = Y(), [o, n] = T({}), i = z();
453
- return C(() => {
454
- t && i.current && n(t.attributes.properties);
455
- }, [t, e, i]), C(() => {
456
- if (r) {
457
- const s = r.events.subscribe(
458
- "components:properties-changed",
459
- (a, c) => {
460
- t === c.node && i.current && n(c.node.attributes.properties);
461
- }
462
- );
463
- return () => {
464
- s();
465
- };
466
- }
467
- }, [r, i, e, t]), o;
468
- }, Ze = (e, t) => t ? !0 : typeof e == "string" ? e === "full" : e > 0, X = Z(
469
- ({
470
- className: e = "",
471
- id: t,
472
- branch: r,
473
- node: o,
474
- ariaLabel: n,
475
- tabIndex: i,
476
- context: s,
477
- ...a
478
- }, c) => {
479
- const l = Y(), m = K(), [d, p] = T(), D = Me(), v = H(t), g = Qe(t), { size: N = "none", indent: B = 0 } = je(t), P = Ze(N, o);
480
- if (C(() => {
481
- if (l) {
482
- if (t && !o) {
483
- const h = l.nodes.get(t);
484
- if (h && (p(U(h, r)), P)) {
485
- const E = h.mount(m);
486
- return () => {
487
- E();
488
- };
489
- }
490
- } else if (o) {
491
- p(U(o, r));
492
- const h = o.mount(m);
493
- return () => {
494
- h();
495
- };
496
- }
497
- }
498
- }, [l, t, o, P]), !d || !P)
499
- return null;
500
- const M = { ...v, ...s || {} }, {
501
- cardinal: b,
502
- fonts: $ = {},
503
- accessibility: L = {},
504
- ...f
505
- } = M, w = {
506
- type: $.type,
507
- base: $.base || "16px",
508
- small: $.small || "0.8em",
509
- normal: $.normal || "1em",
510
- medium: $.medium || "1.2em",
511
- large: $.large || "1.6em",
512
- huge: $.huge || "2.5em"
513
- }, S = {
514
- ...f,
515
- fonts: w,
516
- accessibility: {
517
- ...L
518
- }
519
- };
520
- return typeof b == "number" && (S.sizes = {
521
- cardinal: b,
522
- small: `${b}px`,
523
- normal: `${b * 3}px`,
524
- medium: `${b * 5}px`,
525
- large: `${b * 8}px`
526
- }), /* @__PURE__ */ u(he, { theme: S, children: /* @__PURE__ */ u(re.Provider, { value: d, children: /* @__PURE__ */ u(oe.Provider, { value: g, children: (() => {
527
- const h = {
528
- "data-width": N === "full" ? D : Math.min(N, D),
529
- "data-indent": B,
530
- "data-name": d.name,
531
- "data-node-id": d.id,
532
- "data-component-type": d.type,
533
- "aria-label": n,
534
- tabIndex: i,
535
- id: d.id,
536
- role: g && g.role,
537
- ...a
538
- };
539
- switch (d.type) {
540
- case "view":
541
- return typeof g.animation == "string" && g.animation !== "none" ? /* @__PURE__ */ u(Ue, { ...h, className: e }) : /* @__PURE__ */ u(Ie, { ...h, className: e });
542
- default: {
543
- const E = ce(g);
544
- return /* @__PURE__ */ u(
545
- Je,
546
- {
547
- ref: c,
548
- ...h,
549
- ...E,
550
- className: e
551
- }
552
- );
553
- }
554
- }
555
- })() }) }) });
556
- }
557
- );
558
- le.lazy(() => import("./detached-component-cc07075e.mjs"));
559
- const et = Z(
560
- ({ children: e, className: t, renderState: r, animation: o, ...n }, i) => r ? /* @__PURE__ */ u(
561
- We,
562
- {
563
- mountOnEnter: r !== R.hidden,
564
- timeout: 200,
565
- in: r === R.open,
566
- transitions: o,
567
- unmountOnExit: r === R.closed,
568
- children: (s, a) => /* @__PURE__ */ u(
569
- tt,
570
- {
571
- ...n,
572
- animationCss: a,
573
- "data-state": s,
574
- ref: i,
575
- className: V("humany-animated-area", t),
576
- children: e
577
- }
578
- )
579
- }
580
- ) : null
581
- ), tt = y(G)`
582
- ${j}
583
- ${(e) => !!e.animationCss && e.animationCss}
584
- ${(e) => !!e.scrollableCss && e.scrollableCss}
585
- text-size-adjust: 100%;
586
- input::-ms-clear {
587
- display: none;
588
- }
589
- ${(e) => e.hidden && e["data-state"] === "exited" && O`
590
- visibility: collapse;
591
- pointer-events: none;
592
- `};
593
- `, nt = ({ className: e, ...t }) => {
594
- const { name: r } = ee(), o = Be(), n = H(), i = te(), s = Ke(), a = K(), { gap: c = "0" } = n, {
595
- columns: l = 1,
596
- animation: m = "none",
597
- scrollable: d = !1,
598
- mode: p = W.Static,
599
- trigger: D = {},
600
- fullScreen: v,
601
- header: g,
602
- ...N
603
- } = i, { size: B = 24, symbol: P, label: M, ariaLabel: b, ...$ } = D, [L, f] = J(d), w = ue(
604
- (x) => {
605
- const { events: pe } = a.get("$widget");
606
- return pe.dispatch("widget:area-rendered", {
607
- name: r,
608
- properties: i,
609
- element: x
610
- }), f.current = x, x;
611
- },
612
- // eslint-disable-next-line react-hooks/exhaustive-deps
613
- [i, o]
614
- );
615
- if (!s.length)
616
- return Ve(a, {
617
- ...t,
618
- className: V(e, "humany-area")
619
- });
620
- const S = {
621
- ...t,
622
- className: V(
623
- e,
624
- "humany-area",
625
- `humany-area-${r}`
626
- ),
627
- scrollableCss: L,
628
- ...N,
629
- columns: l,
630
- gap: c,
631
- renderState: o,
632
- animation: m,
633
- hidden: o === R.hidden,
634
- ref: w
635
- }, h = (() => m !== "none" ? /* @__PURE__ */ u(I.Provider, { value: l, children: /* @__PURE__ */ u(et, { ...S, children: s.map((x) => /* @__PURE__ */ u(X, { id: x.id, branch: "default" }, x.id)) }) }) : o === R.closed ? null : /* @__PURE__ */ u(I.Provider, { value: l, children: /* @__PURE__ */ u(it, { ...S, children: s.map((x) => /* @__PURE__ */ u(X, { id: x.id, branch: "default" }, x.id)) }) }))();
636
- if (p === W.Static)
637
- return h;
638
- const E = /* @__PURE__ */ fe(
639
- rt,
640
- {
641
- className: "humany-area-trigger",
642
- title: b,
643
- ...ce($),
644
- children: [
645
- M && /* @__PURE__ */ u(ot, { children: M }),
646
- P && /* @__PURE__ */ u(st, { symbol: P, size: B })
647
- ]
648
- }
649
- );
650
- if (p === W.Dropdown)
651
- return /* @__PURE__ */ u($e, { trigger: E, children: h });
652
- if (p === W.Drawer) {
653
- const x = Object.values(xe).includes(m) && {
654
- type: m
655
- } || void 0;
656
- return /* @__PURE__ */ u(
657
- Ce,
658
- {
659
- header: g,
660
- animation: x,
661
- fullScreen: v,
662
- trigger: E,
663
- children: h
664
- }
665
- );
666
- }
667
- return p === W.Modal && ve.warn("modal area not implemented"), null;
668
- }, rt = y(we)`
669
- display: flex;
670
- align-items: inherit;
671
- align-self: center;
672
- width: fit-content;
673
- height: fit-content;
674
- ${ae}
675
-
676
- ${(e) => e.theme.fonts && `
677
- font-family: ${e.theme.fonts.type};
678
- font-size: ${e.theme.fonts.normal};
679
- `}
680
-
681
- &:focus-visible {
682
- ${ie};
683
- }
684
- `, ot = y(Se)`
685
- margin: 0 ${(e) => {
686
- var t;
687
- return (t = e.theme.sizes) == null ? void 0 : t.small;
688
- }} 0 0;
689
- color: ${(e) => {
690
- var t;
691
- return (t = e.theme.colors) == null ? void 0 : t.text;
692
- }};
693
- `, st = y(Te)`
694
- path {
695
- fill: ${(e) => {
696
- var t;
697
- return (t = e.theme.colors) == null ? void 0 : t.text;
698
- }};
699
- }
700
- `, it = y(G)`
701
- ${j}
702
- ${(e) => !!e.scrollableCss && e.scrollableCss}
703
- text-size-adjust: 100%;
704
- input::-ms-clear {
705
- display: none;
706
- }
707
- ${(e) => e.hidden && O`
708
- visibility: collapse;
709
- pointer-events: none;
710
- `};
711
- `, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
712
- __proto__: null,
713
- default: nt
714
- }, Symbol.toStringTag, { value: "Module" }));
715
- export {
716
- X as C,
717
- ht as a
718
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime");require("@emotion/react");const c=require("./index-ca09668e.js"),n=require("react");require("react-dom");require("react-transition-group");const d=require("./area-c682aa47.js");require("@emotion/styled");require("react-router-dom");require("react-router");const a=({builder:i})=>{const u=c.useContainer(),[e,o]=n.useState(null);return n.useEffect(()=>{u.getAsync("components").then(t=>i(t).then(r=>{o(r)}))},[]),n.useEffect(()=>()=>{e&&u.getAsync("components").then(t=>{t.nodes.detached=t.nodes.detached.filter(r=>r.id!==e.id)})},[e]),e?s.jsx(d.Component,{id:e.id,node:e,branch:"default"}):null};exports.default=a;