@landtrustinc/design-system 1.2.67 → 1.2.69
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/index.d.ts +880 -1
- package/dist/index.js +1214 -648
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __export(src_exports, {
|
|
|
65
65
|
LayoutTokens: () => LayoutTokens,
|
|
66
66
|
ListingChat: () => ListingChat_default,
|
|
67
67
|
Logo: () => Logo_default,
|
|
68
|
+
LottieAnimations: () => LottieAnimations_default,
|
|
68
69
|
MarkdownContent: () => MarkdownContent_default,
|
|
69
70
|
MessageBubble: () => MessageBubble_default,
|
|
70
71
|
Modal: () => Modal_default,
|
|
@@ -94,6 +95,7 @@ __export(src_exports, {
|
|
|
94
95
|
WidgetPanel: () => WidgetPanel,
|
|
95
96
|
WidgetTrigger: () => WidgetTrigger,
|
|
96
97
|
globalStyles: () => globalStyles,
|
|
98
|
+
lottieAnimations: () => lottieAnimations,
|
|
97
99
|
styles: () => styles_exports,
|
|
98
100
|
useBottomDrawer: () => useBottomDrawer_default,
|
|
99
101
|
useBottomDrawerHook: () => useBottomDrawer
|
|
@@ -6196,8 +6198,8 @@ function useBottomDrawer(options) {
|
|
|
6196
6198
|
var useBottomDrawer_default = useBottomDrawer;
|
|
6197
6199
|
|
|
6198
6200
|
// src/ChatWidget/ChatWidget.tsx
|
|
6199
|
-
var
|
|
6200
|
-
var
|
|
6201
|
+
var import_react41 = require("@emotion/react");
|
|
6202
|
+
var import_react42 = __toESM(require("react"));
|
|
6201
6203
|
|
|
6202
6204
|
// src/Divider/Divider.tsx
|
|
6203
6205
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
@@ -6246,6 +6248,8 @@ var textareaBase = import_react29.css`
|
|
|
6246
6248
|
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
6247
6249
|
outline: none;
|
|
6248
6250
|
resize: none;
|
|
6251
|
+
overscroll-behavior: contain;
|
|
6252
|
+
overscroll-behavior-y: contain;
|
|
6249
6253
|
|
|
6250
6254
|
&::placeholder {
|
|
6251
6255
|
color: var(--text-secondary);
|
|
@@ -6403,38 +6407,568 @@ var TextArea = (0, import_react31.forwardRef)(
|
|
|
6403
6407
|
TextArea.displayName = "TextArea";
|
|
6404
6408
|
var TextArea_default = TextArea;
|
|
6405
6409
|
|
|
6410
|
+
// src/LottieAnimations/LottieAnimations.tsx
|
|
6411
|
+
var import_react32 = require("react");
|
|
6412
|
+
|
|
6413
|
+
// src/LottieAnimations/animations/loading.ts
|
|
6414
|
+
var loadingAnimationData = {
|
|
6415
|
+
nm: "Loading Dots",
|
|
6416
|
+
ddd: 0,
|
|
6417
|
+
h: 1080,
|
|
6418
|
+
w: 1920,
|
|
6419
|
+
meta: { g: "@lottiefiles/toolkit-js 0.26.1" },
|
|
6420
|
+
layers: [
|
|
6421
|
+
{
|
|
6422
|
+
ty: 4,
|
|
6423
|
+
nm: "Dot4",
|
|
6424
|
+
sr: 1,
|
|
6425
|
+
st: 0,
|
|
6426
|
+
op: 360,
|
|
6427
|
+
ip: 0,
|
|
6428
|
+
hd: false,
|
|
6429
|
+
ddd: 0,
|
|
6430
|
+
bm: 0,
|
|
6431
|
+
hasMask: false,
|
|
6432
|
+
ao: 0,
|
|
6433
|
+
ks: {
|
|
6434
|
+
a: { a: 0, k: [-284, 92, 0], ix: 1 },
|
|
6435
|
+
s: {
|
|
6436
|
+
a: 1,
|
|
6437
|
+
k: [
|
|
6438
|
+
{
|
|
6439
|
+
o: { x: 0.333, y: 0 },
|
|
6440
|
+
i: { x: 0.667, y: 1 },
|
|
6441
|
+
s: [50, 50, 100],
|
|
6442
|
+
t: 25
|
|
6443
|
+
},
|
|
6444
|
+
{
|
|
6445
|
+
o: { x: 0.333, y: 0 },
|
|
6446
|
+
i: { x: 0.667, y: 1 },
|
|
6447
|
+
s: [75, 75, 100],
|
|
6448
|
+
t: 39
|
|
6449
|
+
},
|
|
6450
|
+
{ s: [50, 50, 100], t: 55 }
|
|
6451
|
+
],
|
|
6452
|
+
ix: 6
|
|
6453
|
+
},
|
|
6454
|
+
sk: { a: 0, k: 0 },
|
|
6455
|
+
p: {
|
|
6456
|
+
a: 1,
|
|
6457
|
+
k: [
|
|
6458
|
+
{
|
|
6459
|
+
o: { x: 0.333, y: 0 },
|
|
6460
|
+
i: { x: 0.667, y: 1 },
|
|
6461
|
+
s: [1142, 540, 0],
|
|
6462
|
+
t: 25,
|
|
6463
|
+
ti: [0, 0, 0],
|
|
6464
|
+
to: [0, -6.667, 0]
|
|
6465
|
+
},
|
|
6466
|
+
{
|
|
6467
|
+
o: { x: 0.333, y: 0 },
|
|
6468
|
+
i: { x: 0.667, y: 1 },
|
|
6469
|
+
s: [1142, 500, 0],
|
|
6470
|
+
t: 39,
|
|
6471
|
+
ti: [0, -6.667, 0],
|
|
6472
|
+
to: [0, 0, 0]
|
|
6473
|
+
},
|
|
6474
|
+
{ s: [1142, 540, 0], t: 55 }
|
|
6475
|
+
],
|
|
6476
|
+
ix: 2
|
|
6477
|
+
},
|
|
6478
|
+
r: { a: 0, k: 0, ix: 10 },
|
|
6479
|
+
sa: { a: 0, k: 0 },
|
|
6480
|
+
o: {
|
|
6481
|
+
a: 1,
|
|
6482
|
+
k: [
|
|
6483
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [25], t: 25 },
|
|
6484
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [100], t: 39 },
|
|
6485
|
+
{ s: [25], t: 55 }
|
|
6486
|
+
],
|
|
6487
|
+
ix: 11
|
|
6488
|
+
}
|
|
6489
|
+
},
|
|
6490
|
+
ef: [],
|
|
6491
|
+
shapes: [
|
|
6492
|
+
{
|
|
6493
|
+
ty: "gr",
|
|
6494
|
+
bm: 0,
|
|
6495
|
+
hd: false,
|
|
6496
|
+
mn: "ADBE Vector Group",
|
|
6497
|
+
nm: "Ellipse 1",
|
|
6498
|
+
ix: 1,
|
|
6499
|
+
cix: 2,
|
|
6500
|
+
np: 3,
|
|
6501
|
+
it: [
|
|
6502
|
+
{
|
|
6503
|
+
ty: "el",
|
|
6504
|
+
bm: 0,
|
|
6505
|
+
hd: false,
|
|
6506
|
+
mn: "ADBE Vector Shape - Ellipse",
|
|
6507
|
+
nm: "Ellipse Path 1",
|
|
6508
|
+
d: 1,
|
|
6509
|
+
p: { a: 0, k: [0, 0], ix: 3 },
|
|
6510
|
+
s: { a: 0, k: [120, 120], ix: 2 }
|
|
6511
|
+
},
|
|
6512
|
+
{
|
|
6513
|
+
ty: "fl",
|
|
6514
|
+
bm: 0,
|
|
6515
|
+
hd: false,
|
|
6516
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
6517
|
+
nm: "Fill 1",
|
|
6518
|
+
c: { a: 0, k: [0.0902, 0.2196, 0.3922], ix: 4 },
|
|
6519
|
+
r: 1,
|
|
6520
|
+
o: { a: 0, k: 100, ix: 5 }
|
|
6521
|
+
},
|
|
6522
|
+
{
|
|
6523
|
+
ty: "tr",
|
|
6524
|
+
a: { a: 0, k: [0, 0], ix: 1 },
|
|
6525
|
+
s: { a: 0, k: [100, 100], ix: 3 },
|
|
6526
|
+
sk: { a: 0, k: 0, ix: 4 },
|
|
6527
|
+
p: { a: 0, k: [-284, 92], ix: 2 },
|
|
6528
|
+
r: { a: 0, k: 0, ix: 6 },
|
|
6529
|
+
sa: { a: 0, k: 0, ix: 5 },
|
|
6530
|
+
o: { a: 0, k: 100, ix: 7 }
|
|
6531
|
+
}
|
|
6532
|
+
]
|
|
6533
|
+
}
|
|
6534
|
+
],
|
|
6535
|
+
ind: 1
|
|
6536
|
+
},
|
|
6537
|
+
{
|
|
6538
|
+
ty: 4,
|
|
6539
|
+
nm: "Dot3",
|
|
6540
|
+
sr: 1,
|
|
6541
|
+
st: 0,
|
|
6542
|
+
op: 360,
|
|
6543
|
+
ip: 0,
|
|
6544
|
+
hd: false,
|
|
6545
|
+
ddd: 0,
|
|
6546
|
+
bm: 0,
|
|
6547
|
+
hasMask: false,
|
|
6548
|
+
ao: 0,
|
|
6549
|
+
ks: {
|
|
6550
|
+
a: { a: 0, k: [-284, 92, 0], ix: 1 },
|
|
6551
|
+
s: {
|
|
6552
|
+
a: 1,
|
|
6553
|
+
k: [
|
|
6554
|
+
{
|
|
6555
|
+
o: { x: 0.333, y: 0 },
|
|
6556
|
+
i: { x: 0.667, y: 1 },
|
|
6557
|
+
s: [50, 50, 100],
|
|
6558
|
+
t: 17
|
|
6559
|
+
},
|
|
6560
|
+
{
|
|
6561
|
+
o: { x: 0.333, y: 0 },
|
|
6562
|
+
i: { x: 0.667, y: 1 },
|
|
6563
|
+
s: [75, 75, 100],
|
|
6564
|
+
t: 31
|
|
6565
|
+
},
|
|
6566
|
+
{ s: [50, 50, 100], t: 47 }
|
|
6567
|
+
],
|
|
6568
|
+
ix: 6
|
|
6569
|
+
},
|
|
6570
|
+
sk: { a: 0, k: 0 },
|
|
6571
|
+
p: {
|
|
6572
|
+
a: 1,
|
|
6573
|
+
k: [
|
|
6574
|
+
{
|
|
6575
|
+
o: { x: 0.333, y: 0 },
|
|
6576
|
+
i: { x: 0.667, y: 1 },
|
|
6577
|
+
s: [1022, 540, 0],
|
|
6578
|
+
t: 17,
|
|
6579
|
+
ti: [0, 0, 0],
|
|
6580
|
+
to: [0, -6.667, 0]
|
|
6581
|
+
},
|
|
6582
|
+
{
|
|
6583
|
+
o: { x: 0.333, y: 0 },
|
|
6584
|
+
i: { x: 0.667, y: 1 },
|
|
6585
|
+
s: [1022, 500, 0],
|
|
6586
|
+
t: 31,
|
|
6587
|
+
ti: [0, -6.667, 0],
|
|
6588
|
+
to: [0, 0, 0]
|
|
6589
|
+
},
|
|
6590
|
+
{ s: [1022, 540, 0], t: 47 }
|
|
6591
|
+
],
|
|
6592
|
+
ix: 2
|
|
6593
|
+
},
|
|
6594
|
+
r: { a: 0, k: 0, ix: 10 },
|
|
6595
|
+
sa: { a: 0, k: 0 },
|
|
6596
|
+
o: {
|
|
6597
|
+
a: 1,
|
|
6598
|
+
k: [
|
|
6599
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [25], t: 17 },
|
|
6600
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [100], t: 31 },
|
|
6601
|
+
{ s: [25], t: 47 }
|
|
6602
|
+
],
|
|
6603
|
+
ix: 11
|
|
6604
|
+
}
|
|
6605
|
+
},
|
|
6606
|
+
ef: [],
|
|
6607
|
+
shapes: [
|
|
6608
|
+
{
|
|
6609
|
+
ty: "gr",
|
|
6610
|
+
bm: 0,
|
|
6611
|
+
hd: false,
|
|
6612
|
+
mn: "ADBE Vector Group",
|
|
6613
|
+
nm: "Ellipse 1",
|
|
6614
|
+
ix: 1,
|
|
6615
|
+
cix: 2,
|
|
6616
|
+
np: 3,
|
|
6617
|
+
it: [
|
|
6618
|
+
{
|
|
6619
|
+
ty: "el",
|
|
6620
|
+
bm: 0,
|
|
6621
|
+
hd: false,
|
|
6622
|
+
mn: "ADBE Vector Shape - Ellipse",
|
|
6623
|
+
nm: "Ellipse Path 1",
|
|
6624
|
+
d: 1,
|
|
6625
|
+
p: { a: 0, k: [0, 0], ix: 3 },
|
|
6626
|
+
s: { a: 0, k: [120, 120], ix: 2 }
|
|
6627
|
+
},
|
|
6628
|
+
{
|
|
6629
|
+
ty: "fl",
|
|
6630
|
+
bm: 0,
|
|
6631
|
+
hd: false,
|
|
6632
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
6633
|
+
nm: "Fill 1",
|
|
6634
|
+
c: { a: 0, k: [0.0902, 0.2196, 0.3922], ix: 4 },
|
|
6635
|
+
r: 1,
|
|
6636
|
+
o: { a: 0, k: 100, ix: 5 }
|
|
6637
|
+
},
|
|
6638
|
+
{
|
|
6639
|
+
ty: "tr",
|
|
6640
|
+
a: { a: 0, k: [0, 0], ix: 1 },
|
|
6641
|
+
s: { a: 0, k: [100, 100], ix: 3 },
|
|
6642
|
+
sk: { a: 0, k: 0, ix: 4 },
|
|
6643
|
+
p: { a: 0, k: [-284, 92], ix: 2 },
|
|
6644
|
+
r: { a: 0, k: 0, ix: 6 },
|
|
6645
|
+
sa: { a: 0, k: 0, ix: 5 },
|
|
6646
|
+
o: { a: 0, k: 100, ix: 7 }
|
|
6647
|
+
}
|
|
6648
|
+
]
|
|
6649
|
+
}
|
|
6650
|
+
],
|
|
6651
|
+
ind: 2
|
|
6652
|
+
},
|
|
6653
|
+
{
|
|
6654
|
+
ty: 4,
|
|
6655
|
+
nm: "Dot2",
|
|
6656
|
+
sr: 1,
|
|
6657
|
+
st: 0,
|
|
6658
|
+
op: 360,
|
|
6659
|
+
ip: 0,
|
|
6660
|
+
hd: false,
|
|
6661
|
+
ddd: 0,
|
|
6662
|
+
bm: 0,
|
|
6663
|
+
hasMask: false,
|
|
6664
|
+
ao: 0,
|
|
6665
|
+
ks: {
|
|
6666
|
+
a: { a: 0, k: [-284, 92, 0], ix: 1 },
|
|
6667
|
+
s: {
|
|
6668
|
+
a: 1,
|
|
6669
|
+
k: [
|
|
6670
|
+
{
|
|
6671
|
+
o: { x: 0.333, y: 0 },
|
|
6672
|
+
i: { x: 0.667, y: 1 },
|
|
6673
|
+
s: [50, 50, 100],
|
|
6674
|
+
t: 9
|
|
6675
|
+
},
|
|
6676
|
+
{
|
|
6677
|
+
o: { x: 0.333, y: 0 },
|
|
6678
|
+
i: { x: 0.667, y: 1 },
|
|
6679
|
+
s: [75, 75, 100],
|
|
6680
|
+
t: 23
|
|
6681
|
+
},
|
|
6682
|
+
{ s: [50, 50, 100], t: 39 }
|
|
6683
|
+
],
|
|
6684
|
+
ix: 6
|
|
6685
|
+
},
|
|
6686
|
+
sk: { a: 0, k: 0 },
|
|
6687
|
+
p: {
|
|
6688
|
+
a: 1,
|
|
6689
|
+
k: [
|
|
6690
|
+
{
|
|
6691
|
+
o: { x: 0.333, y: 0 },
|
|
6692
|
+
i: { x: 0.667, y: 1 },
|
|
6693
|
+
s: [902, 540, 0],
|
|
6694
|
+
t: 9,
|
|
6695
|
+
ti: [0, 0, 0],
|
|
6696
|
+
to: [0, -6.667, 0]
|
|
6697
|
+
},
|
|
6698
|
+
{
|
|
6699
|
+
o: { x: 0.333, y: 0 },
|
|
6700
|
+
i: { x: 0.667, y: 1 },
|
|
6701
|
+
s: [902, 500, 0],
|
|
6702
|
+
t: 23,
|
|
6703
|
+
ti: [0, 0, 0],
|
|
6704
|
+
to: [0, 0, 0]
|
|
6705
|
+
},
|
|
6706
|
+
{ s: [902, 540, 0], t: 39 }
|
|
6707
|
+
],
|
|
6708
|
+
ix: 2
|
|
6709
|
+
},
|
|
6710
|
+
r: { a: 0, k: 0, ix: 10 },
|
|
6711
|
+
sa: { a: 0, k: 0 },
|
|
6712
|
+
o: {
|
|
6713
|
+
a: 1,
|
|
6714
|
+
k: [
|
|
6715
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [25], t: 9 },
|
|
6716
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [100], t: 23 },
|
|
6717
|
+
{ s: [25], t: 39 }
|
|
6718
|
+
],
|
|
6719
|
+
ix: 11
|
|
6720
|
+
}
|
|
6721
|
+
},
|
|
6722
|
+
ef: [],
|
|
6723
|
+
shapes: [
|
|
6724
|
+
{
|
|
6725
|
+
ty: "gr",
|
|
6726
|
+
bm: 0,
|
|
6727
|
+
hd: false,
|
|
6728
|
+
mn: "ADBE Vector Group",
|
|
6729
|
+
nm: "Ellipse 1",
|
|
6730
|
+
ix: 1,
|
|
6731
|
+
cix: 2,
|
|
6732
|
+
np: 3,
|
|
6733
|
+
it: [
|
|
6734
|
+
{
|
|
6735
|
+
ty: "el",
|
|
6736
|
+
bm: 0,
|
|
6737
|
+
hd: false,
|
|
6738
|
+
mn: "ADBE Vector Shape - Ellipse",
|
|
6739
|
+
nm: "Ellipse Path 1",
|
|
6740
|
+
d: 1,
|
|
6741
|
+
p: { a: 0, k: [0, 0], ix: 3 },
|
|
6742
|
+
s: { a: 0, k: [120, 120], ix: 2 }
|
|
6743
|
+
},
|
|
6744
|
+
{
|
|
6745
|
+
ty: "fl",
|
|
6746
|
+
bm: 0,
|
|
6747
|
+
hd: false,
|
|
6748
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
6749
|
+
nm: "Fill 1",
|
|
6750
|
+
c: { a: 0, k: [0.0902, 0.2196, 0.3922], ix: 4 },
|
|
6751
|
+
r: 1,
|
|
6752
|
+
o: { a: 0, k: 100, ix: 5 }
|
|
6753
|
+
},
|
|
6754
|
+
{
|
|
6755
|
+
ty: "tr",
|
|
6756
|
+
a: { a: 0, k: [0, 0], ix: 1 },
|
|
6757
|
+
s: { a: 0, k: [100, 100], ix: 3 },
|
|
6758
|
+
sk: { a: 0, k: 0, ix: 4 },
|
|
6759
|
+
p: { a: 0, k: [-284, 92], ix: 2 },
|
|
6760
|
+
r: { a: 0, k: 0, ix: 6 },
|
|
6761
|
+
sa: { a: 0, k: 0, ix: 5 },
|
|
6762
|
+
o: { a: 0, k: 100, ix: 7 }
|
|
6763
|
+
}
|
|
6764
|
+
]
|
|
6765
|
+
}
|
|
6766
|
+
],
|
|
6767
|
+
ind: 3
|
|
6768
|
+
},
|
|
6769
|
+
{
|
|
6770
|
+
ty: 4,
|
|
6771
|
+
nm: "Dot1",
|
|
6772
|
+
sr: 1,
|
|
6773
|
+
st: 0,
|
|
6774
|
+
op: 360,
|
|
6775
|
+
ip: 0,
|
|
6776
|
+
hd: false,
|
|
6777
|
+
ddd: 0,
|
|
6778
|
+
bm: 0,
|
|
6779
|
+
hasMask: false,
|
|
6780
|
+
ao: 0,
|
|
6781
|
+
ks: {
|
|
6782
|
+
a: { a: 0, k: [-284, 92, 0], ix: 1 },
|
|
6783
|
+
s: {
|
|
6784
|
+
a: 1,
|
|
6785
|
+
k: [
|
|
6786
|
+
{
|
|
6787
|
+
o: { x: 0.333, y: 0 },
|
|
6788
|
+
i: { x: 0.667, y: 1 },
|
|
6789
|
+
s: [50, 50, 100],
|
|
6790
|
+
t: 0
|
|
6791
|
+
},
|
|
6792
|
+
{
|
|
6793
|
+
o: { x: 0.333, y: 0 },
|
|
6794
|
+
i: { x: 0.667, y: 1 },
|
|
6795
|
+
s: [75, 75, 100],
|
|
6796
|
+
t: 14
|
|
6797
|
+
},
|
|
6798
|
+
{ s: [50, 50, 100], t: 30 }
|
|
6799
|
+
],
|
|
6800
|
+
ix: 6
|
|
6801
|
+
},
|
|
6802
|
+
sk: { a: 0, k: 0 },
|
|
6803
|
+
p: {
|
|
6804
|
+
a: 1,
|
|
6805
|
+
k: [
|
|
6806
|
+
{
|
|
6807
|
+
o: { x: 0.333, y: 0 },
|
|
6808
|
+
i: { x: 0.667, y: 1 },
|
|
6809
|
+
s: [782, 540, 0],
|
|
6810
|
+
t: 0,
|
|
6811
|
+
ti: [0, 0, 0],
|
|
6812
|
+
to: [0, -6.667, 0]
|
|
6813
|
+
},
|
|
6814
|
+
{
|
|
6815
|
+
o: { x: 0.333, y: 0 },
|
|
6816
|
+
i: { x: 0.667, y: 1 },
|
|
6817
|
+
s: [782, 500, 0],
|
|
6818
|
+
t: 14,
|
|
6819
|
+
ti: [0, -6.667, 0],
|
|
6820
|
+
to: [0, 0, 0]
|
|
6821
|
+
},
|
|
6822
|
+
{ s: [782, 540, 0], t: 30 }
|
|
6823
|
+
],
|
|
6824
|
+
ix: 2
|
|
6825
|
+
},
|
|
6826
|
+
r: { a: 0, k: 0, ix: 10 },
|
|
6827
|
+
sa: { a: 0, k: 0 },
|
|
6828
|
+
o: {
|
|
6829
|
+
a: 1,
|
|
6830
|
+
k: [
|
|
6831
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [25], t: 0 },
|
|
6832
|
+
{ o: { x: 0.333, y: 0 }, i: { x: 0.667, y: 1 }, s: [100], t: 14 },
|
|
6833
|
+
{ s: [25], t: 30 }
|
|
6834
|
+
],
|
|
6835
|
+
ix: 11
|
|
6836
|
+
}
|
|
6837
|
+
},
|
|
6838
|
+
ef: [],
|
|
6839
|
+
shapes: [
|
|
6840
|
+
{
|
|
6841
|
+
ty: "gr",
|
|
6842
|
+
bm: 0,
|
|
6843
|
+
hd: false,
|
|
6844
|
+
mn: "ADBE Vector Group",
|
|
6845
|
+
nm: "Ellipse 1",
|
|
6846
|
+
ix: 1,
|
|
6847
|
+
cix: 2,
|
|
6848
|
+
np: 3,
|
|
6849
|
+
it: [
|
|
6850
|
+
{
|
|
6851
|
+
ty: "el",
|
|
6852
|
+
bm: 0,
|
|
6853
|
+
hd: false,
|
|
6854
|
+
mn: "ADBE Vector Shape - Ellipse",
|
|
6855
|
+
nm: "Ellipse Path 1",
|
|
6856
|
+
d: 1,
|
|
6857
|
+
p: { a: 0, k: [0, 0], ix: 3 },
|
|
6858
|
+
s: { a: 0, k: [120, 120], ix: 2 }
|
|
6859
|
+
},
|
|
6860
|
+
{
|
|
6861
|
+
ty: "fl",
|
|
6862
|
+
bm: 0,
|
|
6863
|
+
hd: false,
|
|
6864
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
6865
|
+
nm: "Fill 1",
|
|
6866
|
+
c: { a: 0, k: [0.0902, 0.2196, 0.3922], ix: 4 },
|
|
6867
|
+
r: 1,
|
|
6868
|
+
o: { a: 0, k: 100, ix: 5 }
|
|
6869
|
+
},
|
|
6870
|
+
{
|
|
6871
|
+
ty: "tr",
|
|
6872
|
+
a: { a: 0, k: [0, 0], ix: 1 },
|
|
6873
|
+
s: { a: 0, k: [100, 100], ix: 3 },
|
|
6874
|
+
sk: { a: 0, k: 0, ix: 4 },
|
|
6875
|
+
p: { a: 0, k: [-284, 92], ix: 2 },
|
|
6876
|
+
r: { a: 0, k: 0, ix: 6 },
|
|
6877
|
+
sa: { a: 0, k: 0, ix: 5 },
|
|
6878
|
+
o: { a: 0, k: 100, ix: 7 }
|
|
6879
|
+
}
|
|
6880
|
+
]
|
|
6881
|
+
}
|
|
6882
|
+
],
|
|
6883
|
+
ind: 4
|
|
6884
|
+
}
|
|
6885
|
+
],
|
|
6886
|
+
v: "5.7.11",
|
|
6887
|
+
fr: 60,
|
|
6888
|
+
op: 81,
|
|
6889
|
+
ip: 0,
|
|
6890
|
+
assets: []
|
|
6891
|
+
};
|
|
6892
|
+
|
|
6893
|
+
// src/LottieAnimations/LottieAnimations.tsx
|
|
6894
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6895
|
+
var lottieAnimations = {
|
|
6896
|
+
loading: loadingAnimationData
|
|
6897
|
+
};
|
|
6898
|
+
var LottieAnimations = ({
|
|
6899
|
+
animation = "loading",
|
|
6900
|
+
animationData,
|
|
6901
|
+
size,
|
|
6902
|
+
loop = true,
|
|
6903
|
+
autoPlay = true,
|
|
6904
|
+
style,
|
|
6905
|
+
...props
|
|
6906
|
+
}) => {
|
|
6907
|
+
const [LottieComponent, setLottieComponent] = (0, import_react32.useState)(null);
|
|
6908
|
+
(0, import_react32.useEffect)(() => {
|
|
6909
|
+
let isMounted = true;
|
|
6910
|
+
import("lottie-react").then((module2) => {
|
|
6911
|
+
if (isMounted) {
|
|
6912
|
+
setLottieComponent(() => module2.default);
|
|
6913
|
+
}
|
|
6914
|
+
});
|
|
6915
|
+
return () => {
|
|
6916
|
+
isMounted = false;
|
|
6917
|
+
};
|
|
6918
|
+
}, []);
|
|
6919
|
+
const sizeValue = typeof size === "number" ? `${size}px` : size;
|
|
6920
|
+
const mergedStyle = sizeValue !== void 0 ? { width: sizeValue, height: sizeValue, ...style } : style;
|
|
6921
|
+
if (!LottieComponent) {
|
|
6922
|
+
return null;
|
|
6923
|
+
}
|
|
6924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6925
|
+
LottieComponent,
|
|
6926
|
+
{
|
|
6927
|
+
animationData: animationData != null ? animationData : lottieAnimations[animation],
|
|
6928
|
+
loop,
|
|
6929
|
+
autoPlay,
|
|
6930
|
+
rendererSettings: {
|
|
6931
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
6932
|
+
},
|
|
6933
|
+
style: mergedStyle,
|
|
6934
|
+
...props
|
|
6935
|
+
}
|
|
6936
|
+
);
|
|
6937
|
+
};
|
|
6938
|
+
var LottieAnimations_default = LottieAnimations;
|
|
6939
|
+
|
|
6406
6940
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
6407
|
-
var
|
|
6408
|
-
var getRootStyles = (variant) =>
|
|
6941
|
+
var import_react33 = require("@emotion/react");
|
|
6942
|
+
var getRootStyles = (variant) => import_react33.css`
|
|
6409
6943
|
display: flex;
|
|
6410
6944
|
flex-direction: column;
|
|
6411
6945
|
gap: var(--spacing-1);
|
|
6412
6946
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
6413
6947
|
`;
|
|
6414
|
-
var getOuterWrapperStyles = (variant) =>
|
|
6948
|
+
var getOuterWrapperStyles = (variant) => import_react33.css`
|
|
6415
6949
|
display: flex;
|
|
6416
6950
|
flex-direction: ${variant === "sent" ? "row-reverse" : "row"};
|
|
6417
6951
|
gap: var(--spacing-3);
|
|
6418
6952
|
align-items: flex-start;
|
|
6419
6953
|
width: 100%;
|
|
6420
6954
|
`;
|
|
6421
|
-
var avatarWrapperStyles =
|
|
6955
|
+
var avatarWrapperStyles = import_react33.css`
|
|
6422
6956
|
flex-shrink: 0;
|
|
6423
6957
|
`;
|
|
6424
|
-
var contentWrapperStyles =
|
|
6958
|
+
var contentWrapperStyles = import_react33.css`
|
|
6425
6959
|
display: flex;
|
|
6426
6960
|
flex-direction: column;
|
|
6427
6961
|
gap: var(--spacing-1);
|
|
6428
6962
|
flex: 1;
|
|
6429
6963
|
min-width: 0;
|
|
6430
6964
|
`;
|
|
6431
|
-
var getHeaderStyles = (variant) =>
|
|
6965
|
+
var getHeaderStyles = (variant) => import_react33.css`
|
|
6432
6966
|
display: flex;
|
|
6433
6967
|
align-items: center;
|
|
6434
6968
|
gap: var(--spacing-2);
|
|
6435
6969
|
flex-direction: ${variant === "sent" ? "row-reverse" : "row"};
|
|
6436
6970
|
`;
|
|
6437
|
-
var getBubbleStyles = (variant) =>
|
|
6971
|
+
var getBubbleStyles = (variant) => import_react33.css`
|
|
6438
6972
|
max-width: 100%;
|
|
6439
6973
|
width: 100%;
|
|
6440
6974
|
box-sizing: border-box;
|
|
@@ -6450,10 +6984,10 @@ var getBubbleStyles = (variant) => import_react32.css`
|
|
|
6450
6984
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
6451
6985
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
6452
6986
|
`;
|
|
6453
|
-
var getTimestampStyles = (variant) =>
|
|
6987
|
+
var getTimestampStyles = (variant) => import_react33.css`
|
|
6454
6988
|
text-align: ${variant === "sent" ? "right" : "left"};
|
|
6455
6989
|
`;
|
|
6456
|
-
var contentStyles2 =
|
|
6990
|
+
var contentStyles2 = import_react33.css`
|
|
6457
6991
|
flex: 1 1 auto;
|
|
6458
6992
|
min-width: 1px;
|
|
6459
6993
|
min-height: 1px;
|
|
@@ -6464,7 +6998,7 @@ var contentStyles2 = import_react32.css`
|
|
|
6464
6998
|
`;
|
|
6465
6999
|
|
|
6466
7000
|
// src/MessageBubble/MessageBubble.tsx
|
|
6467
|
-
var
|
|
7001
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6468
7002
|
var MessageBubble = ({
|
|
6469
7003
|
variant = "sent",
|
|
6470
7004
|
timestamp,
|
|
@@ -6475,8 +7009,8 @@ var MessageBubble = ({
|
|
|
6475
7009
|
}) => {
|
|
6476
7010
|
const hasAvatar = !!avatarSrc || !!author;
|
|
6477
7011
|
const firstName = author == null ? void 0 : author.split(" ")[0];
|
|
6478
|
-
return /* @__PURE__ */ (0,
|
|
6479
|
-
hasAvatar && /* @__PURE__ */ (0,
|
|
7012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { className, css: getRootStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { css: getOuterWrapperStyles(variant), children: [
|
|
7013
|
+
hasAvatar && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { css: avatarWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6480
7014
|
Avatar_default,
|
|
6481
7015
|
{
|
|
6482
7016
|
type: avatarSrc ? "image" : "text",
|
|
@@ -6486,11 +7020,11 @@ var MessageBubble = ({
|
|
|
6486
7020
|
size: "md"
|
|
6487
7021
|
}
|
|
6488
7022
|
) }),
|
|
6489
|
-
/* @__PURE__ */ (0,
|
|
6490
|
-
firstName && /* @__PURE__ */ (0,
|
|
6491
|
-
/* @__PURE__ */ (0,
|
|
6492
|
-
/* @__PURE__ */ (0,
|
|
6493
|
-
timestamp && /* @__PURE__ */ (0,
|
|
7023
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { css: contentWrapperStyles, children: [
|
|
7024
|
+
firstName && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { css: getHeaderStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Text_default, { size: "sm", fontWeight: "semibold", color: "var(--text-primary)", children: firstName }) }),
|
|
7025
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { css: getBubbleStyles(variant), children: [
|
|
7026
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { css: contentStyles2, children }),
|
|
7027
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6494
7028
|
Text_default,
|
|
6495
7029
|
{
|
|
6496
7030
|
size: "xs",
|
|
@@ -6506,34 +7040,34 @@ var MessageBubble = ({
|
|
|
6506
7040
|
var MessageBubble_default = MessageBubble;
|
|
6507
7041
|
|
|
6508
7042
|
// src/TagChip/TagChip.styles.ts
|
|
6509
|
-
var
|
|
7043
|
+
var import_react34 = require("@emotion/react");
|
|
6510
7044
|
var tagChipVariantStyles = {
|
|
6511
|
-
default:
|
|
7045
|
+
default: import_react34.css`
|
|
6512
7046
|
background-color: var(--surface-page);
|
|
6513
7047
|
border: 1px solid var(--border-primary);
|
|
6514
7048
|
color: var(--text-primary);
|
|
6515
7049
|
`,
|
|
6516
|
-
active:
|
|
7050
|
+
active: import_react34.css`
|
|
6517
7051
|
background-color: var(--text-primary);
|
|
6518
7052
|
border: 1px solid var(--border-secondary);
|
|
6519
7053
|
color: var(--color-base-white);
|
|
6520
7054
|
`,
|
|
6521
|
-
primary:
|
|
7055
|
+
primary: import_react34.css`
|
|
6522
7056
|
background-color: var(--surface-disabled);
|
|
6523
7057
|
border: 1px solid var(--surface-disabled);
|
|
6524
7058
|
color: var(--text-primary);
|
|
6525
7059
|
`,
|
|
6526
|
-
error:
|
|
7060
|
+
error: import_react34.css`
|
|
6527
7061
|
background-color: var(--surface-error);
|
|
6528
7062
|
border: 1px solid var(--color-red-300);
|
|
6529
7063
|
color: var(--text-error);
|
|
6530
7064
|
`,
|
|
6531
|
-
success:
|
|
7065
|
+
success: import_react34.css`
|
|
6532
7066
|
background-color: var(--surface-success);
|
|
6533
7067
|
border: 1px solid var(--color-green-300);
|
|
6534
7068
|
color: var(--text-primary);
|
|
6535
7069
|
`,
|
|
6536
|
-
warning:
|
|
7070
|
+
warning: import_react34.css`
|
|
6537
7071
|
background-color: var(--surface-subtle);
|
|
6538
7072
|
border: 1px solid var(--color-brown-200);
|
|
6539
7073
|
color: var(--text-primary);
|
|
@@ -6541,14 +7075,14 @@ var tagChipVariantStyles = {
|
|
|
6541
7075
|
};
|
|
6542
7076
|
|
|
6543
7077
|
// src/TagChip/TagChip.tsx
|
|
6544
|
-
var
|
|
7078
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6545
7079
|
var TagChip = ({
|
|
6546
7080
|
variant = "primary",
|
|
6547
7081
|
className,
|
|
6548
7082
|
children,
|
|
6549
7083
|
...rest
|
|
6550
7084
|
}) => {
|
|
6551
|
-
return /* @__PURE__ */ (0,
|
|
7085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6552
7086
|
Box_default,
|
|
6553
7087
|
{
|
|
6554
7088
|
display: "inline-flex",
|
|
@@ -6559,18 +7093,18 @@ var TagChip = ({
|
|
|
6559
7093
|
css: tagChipVariantStyles[variant],
|
|
6560
7094
|
className,
|
|
6561
7095
|
...rest,
|
|
6562
|
-
children: /* @__PURE__ */ (0,
|
|
7096
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
6563
7097
|
}
|
|
6564
7098
|
);
|
|
6565
7099
|
};
|
|
6566
7100
|
var TagChip_default = TagChip;
|
|
6567
7101
|
|
|
6568
7102
|
// src/Widget/Widget.tsx
|
|
6569
|
-
var
|
|
7103
|
+
var import_react36 = require("react");
|
|
6570
7104
|
|
|
6571
7105
|
// src/Widget/Widget.styles.ts
|
|
6572
|
-
var
|
|
6573
|
-
var panelContainer =
|
|
7106
|
+
var import_react35 = require("@emotion/react");
|
|
7107
|
+
var panelContainer = import_react35.css`
|
|
6574
7108
|
position: absolute;
|
|
6575
7109
|
right: 0;
|
|
6576
7110
|
bottom: calc(100% + var(--spacing-2));
|
|
@@ -6584,7 +7118,7 @@ var panelContainer = import_react34.css`
|
|
|
6584
7118
|
justify-content: stretch;
|
|
6585
7119
|
}
|
|
6586
7120
|
`;
|
|
6587
|
-
var panelCard = (width2) =>
|
|
7121
|
+
var panelCard = (width2) => import_react35.css`
|
|
6588
7122
|
background: var(--surface-page);
|
|
6589
7123
|
color: var(--text-primary);
|
|
6590
7124
|
border: 1px solid var(--border-primary);
|
|
@@ -6611,24 +7145,25 @@ var panelCard = (width2) => import_react34.css`
|
|
|
6611
7145
|
|
|
6612
7146
|
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
6613
7147
|
width: 100vw;
|
|
6614
|
-
height:
|
|
6615
|
-
max-height:
|
|
7148
|
+
height: 100dvh;
|
|
7149
|
+
max-height: 100dvh;
|
|
6616
7150
|
border-radius: 0;
|
|
6617
7151
|
padding: var(--spacing-4);
|
|
7152
|
+
padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
|
|
6618
7153
|
overflow: auto;
|
|
6619
7154
|
animation: none;
|
|
6620
7155
|
}
|
|
6621
7156
|
`;
|
|
6622
|
-
var widgetTrigger =
|
|
7157
|
+
var widgetTrigger = import_react35.css`
|
|
6623
7158
|
margin: var(--spacing-1);
|
|
6624
7159
|
box-shadow: var(--shadow-2xl);
|
|
6625
7160
|
`;
|
|
6626
7161
|
|
|
6627
7162
|
// src/Widget/Widget.tsx
|
|
6628
|
-
var
|
|
6629
|
-
var WidgetContext = (0,
|
|
7163
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
7164
|
+
var WidgetContext = (0, import_react36.createContext)(null);
|
|
6630
7165
|
var useWidgetContext = () => {
|
|
6631
|
-
const ctx = (0,
|
|
7166
|
+
const ctx = (0, import_react36.useContext)(WidgetContext);
|
|
6632
7167
|
if (!ctx)
|
|
6633
7168
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
6634
7169
|
return ctx;
|
|
@@ -6636,7 +7171,7 @@ var useWidgetContext = () => {
|
|
|
6636
7171
|
var WidgetTrigger = () => {
|
|
6637
7172
|
const { expanded, toggle, triggerRef, icon: icon2, expandedIcon } = useWidgetContext();
|
|
6638
7173
|
const currentIcon = expanded ? expandedIcon : icon2;
|
|
6639
|
-
return /* @__PURE__ */ (0,
|
|
7174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_jsx_runtime232.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6640
7175
|
Button_default,
|
|
6641
7176
|
{
|
|
6642
7177
|
ref: triggerRef,
|
|
@@ -6644,7 +7179,7 @@ var WidgetTrigger = () => {
|
|
|
6644
7179
|
"aria-haspopup": "dialog",
|
|
6645
7180
|
onClick: toggle,
|
|
6646
7181
|
size: "lg",
|
|
6647
|
-
icon: /* @__PURE__ */ (0,
|
|
7182
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
|
|
6648
7183
|
css: widgetTrigger
|
|
6649
7184
|
}
|
|
6650
7185
|
) });
|
|
@@ -6653,7 +7188,7 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
6653
7188
|
const { expanded, panelWidth } = useWidgetContext();
|
|
6654
7189
|
if (!expanded)
|
|
6655
7190
|
return null;
|
|
6656
|
-
return /* @__PURE__ */ (0,
|
|
7191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6657
7192
|
Box_default,
|
|
6658
7193
|
{
|
|
6659
7194
|
css: panelCard(panelWidth),
|
|
@@ -6677,12 +7212,12 @@ var WidgetRoot = ({
|
|
|
6677
7212
|
containerProps,
|
|
6678
7213
|
closeOnClickOutside = true
|
|
6679
7214
|
}) => {
|
|
6680
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
7215
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react36.useState)(defaultExpanded);
|
|
6681
7216
|
const isControlled = typeof expanded === "boolean";
|
|
6682
7217
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
6683
|
-
const triggerRef = (0,
|
|
6684
|
-
const containerRef = (0,
|
|
6685
|
-
const setExpanded = (0,
|
|
7218
|
+
const triggerRef = (0, import_react36.useRef)(null);
|
|
7219
|
+
const containerRef = (0, import_react36.useRef)(null);
|
|
7220
|
+
const setExpanded = (0, import_react36.useCallback)(
|
|
6686
7221
|
(next) => {
|
|
6687
7222
|
if (!isControlled)
|
|
6688
7223
|
setInternalExpanded(next);
|
|
@@ -6696,11 +7231,11 @@ var WidgetRoot = ({
|
|
|
6696
7231
|
},
|
|
6697
7232
|
[isControlled, onExpandedChange]
|
|
6698
7233
|
);
|
|
6699
|
-
const toggle = (0,
|
|
7234
|
+
const toggle = (0, import_react36.useCallback)(
|
|
6700
7235
|
() => setExpanded(!isExpanded),
|
|
6701
7236
|
[isExpanded, setExpanded]
|
|
6702
7237
|
);
|
|
6703
|
-
(0,
|
|
7238
|
+
(0, import_react36.useEffect)(() => {
|
|
6704
7239
|
if (!isExpanded || !closeOnClickOutside)
|
|
6705
7240
|
return;
|
|
6706
7241
|
const onDocClick = (e) => {
|
|
@@ -6714,7 +7249,7 @@ var WidgetRoot = ({
|
|
|
6714
7249
|
document.addEventListener("mousedown", onDocClick);
|
|
6715
7250
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
6716
7251
|
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
6717
|
-
(0,
|
|
7252
|
+
(0, import_react36.useEffect)(() => {
|
|
6718
7253
|
if (!isExpanded)
|
|
6719
7254
|
return;
|
|
6720
7255
|
const onKey = (e) => {
|
|
@@ -6724,7 +7259,7 @@ var WidgetRoot = ({
|
|
|
6724
7259
|
document.addEventListener("keydown", onKey);
|
|
6725
7260
|
return () => document.removeEventListener("keydown", onKey);
|
|
6726
7261
|
}, [isExpanded, setExpanded]);
|
|
6727
|
-
(0,
|
|
7262
|
+
(0, import_react36.useEffect)(() => {
|
|
6728
7263
|
if (!isExpanded)
|
|
6729
7264
|
return;
|
|
6730
7265
|
const mql = window.matchMedia(`(max-width: calc(${screens.lg} - 1px))`);
|
|
@@ -6742,7 +7277,7 @@ var WidgetRoot = ({
|
|
|
6742
7277
|
document.body.style.overflow = originalOverflow;
|
|
6743
7278
|
};
|
|
6744
7279
|
}, [isExpanded]);
|
|
6745
|
-
const value = (0,
|
|
7280
|
+
const value = (0, import_react36.useMemo)(
|
|
6746
7281
|
() => ({
|
|
6747
7282
|
expanded: isExpanded,
|
|
6748
7283
|
toggle,
|
|
@@ -6753,7 +7288,7 @@ var WidgetRoot = ({
|
|
|
6753
7288
|
}),
|
|
6754
7289
|
[expandedIcon, icon2, isExpanded, panelWidth, toggle]
|
|
6755
7290
|
);
|
|
6756
|
-
return /* @__PURE__ */ (0,
|
|
7291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6757
7292
|
Box_default,
|
|
6758
7293
|
{
|
|
6759
7294
|
ref: containerRef,
|
|
@@ -6764,7 +7299,7 @@ var WidgetRoot = ({
|
|
|
6764
7299
|
bottom: "var(--spacing-6)",
|
|
6765
7300
|
zIndex: 100,
|
|
6766
7301
|
...containerProps,
|
|
6767
|
-
children: /* @__PURE__ */ (0,
|
|
7302
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(WidgetContext.Provider, { value, children })
|
|
6768
7303
|
}
|
|
6769
7304
|
);
|
|
6770
7305
|
};
|
|
@@ -6775,8 +7310,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
6775
7310
|
var Widget_default = Widget;
|
|
6776
7311
|
|
|
6777
7312
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
6778
|
-
var
|
|
6779
|
-
var sentWrapperStyles =
|
|
7313
|
+
var import_react37 = require("@emotion/react");
|
|
7314
|
+
var sentWrapperStyles = import_react37.css`
|
|
6780
7315
|
align-self: flex-end;
|
|
6781
7316
|
max-width: 90%;
|
|
6782
7317
|
width: 100%;
|
|
@@ -6784,32 +7319,32 @@ var sentWrapperStyles = import_react36.css`
|
|
|
6784
7319
|
overflow-wrap: anywhere;
|
|
6785
7320
|
padding-top: var(--spacing-4);
|
|
6786
7321
|
`;
|
|
6787
|
-
var receivedWrapperStyles =
|
|
7322
|
+
var receivedWrapperStyles = import_react37.css`
|
|
6788
7323
|
align-self: flex-start;
|
|
6789
7324
|
width: 100%;
|
|
6790
7325
|
min-width: 0;
|
|
6791
7326
|
overflow-wrap: anywhere;
|
|
6792
7327
|
padding-top: var(--spacing-4);
|
|
6793
7328
|
`;
|
|
6794
|
-
var containerStyles2 =
|
|
7329
|
+
var containerStyles2 = import_react37.css`
|
|
6795
7330
|
display: flex;
|
|
6796
7331
|
flex-direction: column;
|
|
6797
7332
|
min-height: 0;
|
|
6798
|
-
height:
|
|
6799
|
-
max-height:
|
|
7333
|
+
height: 100%;
|
|
7334
|
+
max-height: 100%;
|
|
6800
7335
|
|
|
6801
|
-
@media (
|
|
6802
|
-
height:
|
|
6803
|
-
max-height:
|
|
7336
|
+
@media (min-width: ${screens.lg}) {
|
|
7337
|
+
height: 765px;
|
|
7338
|
+
max-height: 80vh;
|
|
6804
7339
|
}
|
|
6805
7340
|
`;
|
|
6806
|
-
var thinkingRowStyles =
|
|
7341
|
+
var thinkingRowStyles = import_react37.css`
|
|
6807
7342
|
display: flex;
|
|
6808
7343
|
align-items: center;
|
|
6809
7344
|
gap: var(--spacing-2);
|
|
6810
7345
|
color: var(--text-primary);
|
|
6811
7346
|
`;
|
|
6812
|
-
var thinkingTextStyles =
|
|
7347
|
+
var thinkingTextStyles = import_react37.css`
|
|
6813
7348
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
6814
7349
|
|
|
6815
7350
|
@keyframes ltchat-pulse {
|
|
@@ -6822,7 +7357,7 @@ var thinkingTextStyles = import_react36.css`
|
|
|
6822
7357
|
}
|
|
6823
7358
|
}
|
|
6824
7359
|
`;
|
|
6825
|
-
var badge =
|
|
7360
|
+
var badge = import_react37.css`
|
|
6826
7361
|
width: var(--spacing-11);
|
|
6827
7362
|
height: var(--spacing-11);
|
|
6828
7363
|
border-radius: var(--radius-round);
|
|
@@ -6832,12 +7367,12 @@ var badge = import_react36.css`
|
|
|
6832
7367
|
background-color: var(--color-primary-500);
|
|
6833
7368
|
color: var(--color-base-white);
|
|
6834
7369
|
`;
|
|
6835
|
-
var closeButtonContent =
|
|
7370
|
+
var closeButtonContent = import_react37.css`
|
|
6836
7371
|
display: inline-flex;
|
|
6837
7372
|
align-items: center;
|
|
6838
7373
|
gap: var(--spacing-2);
|
|
6839
7374
|
`;
|
|
6840
|
-
var scrollToBottomButtonStyles =
|
|
7375
|
+
var scrollToBottomButtonStyles = import_react37.css`
|
|
6841
7376
|
position: absolute;
|
|
6842
7377
|
bottom: var(--spacing-4);
|
|
6843
7378
|
left: 50%;
|
|
@@ -6854,11 +7389,11 @@ var scrollToBottomButtonStyles = import_react36.css`
|
|
|
6854
7389
|
`;
|
|
6855
7390
|
|
|
6856
7391
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
6857
|
-
var
|
|
7392
|
+
var import_react39 = __toESM(require("react"));
|
|
6858
7393
|
|
|
6859
7394
|
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
6860
|
-
var
|
|
6861
|
-
var rotateGradient =
|
|
7395
|
+
var import_react38 = require("@emotion/react");
|
|
7396
|
+
var rotateGradient = import_react38.keyframes`
|
|
6862
7397
|
0% {
|
|
6863
7398
|
--gradient-angle: 0deg;
|
|
6864
7399
|
}
|
|
@@ -6866,7 +7401,7 @@ var rotateGradient = import_react37.keyframes`
|
|
|
6866
7401
|
--gradient-angle: 360deg;
|
|
6867
7402
|
}
|
|
6868
7403
|
`;
|
|
6869
|
-
var triggerWrapperStyles = (isAnimating) =>
|
|
7404
|
+
var triggerWrapperStyles = (isAnimating) => import_react38.css`
|
|
6870
7405
|
position: relative;
|
|
6871
7406
|
display: inline-block;
|
|
6872
7407
|
|
|
@@ -6880,7 +7415,7 @@ var triggerWrapperStyles = (isAnimating) => import_react37.css`
|
|
|
6880
7415
|
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
6881
7416
|
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
6882
7417
|
|
|
6883
|
-
${isAnimating ?
|
|
7418
|
+
${isAnimating ? import_react38.css`
|
|
6884
7419
|
/* Register the custom property */
|
|
6885
7420
|
@property --gradient-angle {
|
|
6886
7421
|
syntax: '<angle>';
|
|
@@ -6898,13 +7433,13 @@ var triggerWrapperStyles = (isAnimating) => import_react37.css`
|
|
|
6898
7433
|
var(--color-primary-600) 100%
|
|
6899
7434
|
);
|
|
6900
7435
|
animation: ${rotateGradient} 3s linear infinite;
|
|
6901
|
-
` :
|
|
7436
|
+
` : import_react38.css`
|
|
6902
7437
|
/* Static border when not animating */
|
|
6903
7438
|
background: var(--color-primary-600);
|
|
6904
7439
|
`}
|
|
6905
7440
|
}
|
|
6906
7441
|
`;
|
|
6907
|
-
var badgeStyles =
|
|
7442
|
+
var badgeStyles = import_react38.css`
|
|
6908
7443
|
display: inline-flex;
|
|
6909
7444
|
align-items: center;
|
|
6910
7445
|
justify-content: center;
|
|
@@ -6919,7 +7454,7 @@ var badgeStyles = import_react37.css`
|
|
|
6919
7454
|
flex-shrink: 0;
|
|
6920
7455
|
margin-right: var(--spacing-1);
|
|
6921
7456
|
`;
|
|
6922
|
-
var buttonOverrideStyles =
|
|
7457
|
+
var buttonOverrideStyles = import_react38.css`
|
|
6923
7458
|
background: var(--surface-page);
|
|
6924
7459
|
border: none;
|
|
6925
7460
|
border-radius: var(--radius-round);
|
|
@@ -6947,23 +7482,23 @@ var buttonOverrideStyles = import_react37.css`
|
|
|
6947
7482
|
`;
|
|
6948
7483
|
|
|
6949
7484
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
6950
|
-
var
|
|
6951
|
-
var AskBuckButton =
|
|
7485
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
7486
|
+
var AskBuckButton = import_react39.default.forwardRef(
|
|
6952
7487
|
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
6953
7488
|
var _a;
|
|
6954
|
-
const widgetContext = (0,
|
|
7489
|
+
const widgetContext = (0, import_react39.useContext)(WidgetContext);
|
|
6955
7490
|
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
6956
7491
|
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
6957
|
-
return /* @__PURE__ */ (0,
|
|
7492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6958
7493
|
Button_default,
|
|
6959
7494
|
{
|
|
6960
7495
|
ref,
|
|
6961
7496
|
"aria-expanded": widgetContext == null ? void 0 : widgetContext.expanded,
|
|
6962
7497
|
"aria-haspopup": "dialog",
|
|
6963
7498
|
onClick: widgetContext == null ? void 0 : widgetContext.toggle,
|
|
6964
|
-
icon: /* @__PURE__ */ (0,
|
|
6965
|
-
showBadge && /* @__PURE__ */ (0,
|
|
6966
|
-
/* @__PURE__ */ (0,
|
|
7499
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(import_jsx_runtime233.Fragment, { children: [
|
|
7500
|
+
showBadge && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("span", { css: badgeStyles, children: badgeCount }),
|
|
7501
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6967
7502
|
Icon_default,
|
|
6968
7503
|
{
|
|
6969
7504
|
variant: isExpanded ? "AngleDownSharp" : "ConversationalSearchAi",
|
|
@@ -6981,25 +7516,25 @@ AskBuckButton.displayName = "AskBuckButton";
|
|
|
6981
7516
|
var AskBuckButton_default = AskBuckButton;
|
|
6982
7517
|
|
|
6983
7518
|
// src/ChatWidget/hooks/useChatScrollControl.ts
|
|
6984
|
-
var
|
|
7519
|
+
var import_react40 = require("react");
|
|
6985
7520
|
var useChatScrollControl = ({
|
|
6986
7521
|
messages,
|
|
6987
7522
|
isThinking,
|
|
6988
7523
|
isExpanded,
|
|
6989
7524
|
enableScrollToBottomControl
|
|
6990
7525
|
}) => {
|
|
6991
|
-
const scrollRef = (0,
|
|
6992
|
-
const savedScrollPosition = (0,
|
|
6993
|
-
const previousMessagesLengthRef = (0,
|
|
6994
|
-
const previousIsThinkingRef = (0,
|
|
6995
|
-
const userJustSentMessageRef = (0,
|
|
6996
|
-
const [isAtBottom, setIsAtBottom] = (0,
|
|
6997
|
-
const [showScrollButton, setShowScrollButton] = (0,
|
|
6998
|
-
const isScrolledToBottom = (0,
|
|
7526
|
+
const scrollRef = (0, import_react40.useRef)(null);
|
|
7527
|
+
const savedScrollPosition = (0, import_react40.useRef)(0);
|
|
7528
|
+
const previousMessagesLengthRef = (0, import_react40.useRef)(messages.length);
|
|
7529
|
+
const previousIsThinkingRef = (0, import_react40.useRef)(isThinking);
|
|
7530
|
+
const userJustSentMessageRef = (0, import_react40.useRef)(false);
|
|
7531
|
+
const [isAtBottom, setIsAtBottom] = (0, import_react40.useState)(true);
|
|
7532
|
+
const [showScrollButton, setShowScrollButton] = (0, import_react40.useState)(false);
|
|
7533
|
+
const isScrolledToBottom = (0, import_react40.useCallback)((el) => {
|
|
6999
7534
|
const threshold = 50;
|
|
7000
7535
|
return el.scrollTop + el.clientHeight >= el.scrollHeight - threshold;
|
|
7001
7536
|
}, []);
|
|
7002
|
-
const scrollToBottom = (0,
|
|
7537
|
+
const scrollToBottom = (0, import_react40.useCallback)((behavior = "smooth") => {
|
|
7003
7538
|
const el = scrollRef.current;
|
|
7004
7539
|
if (!el)
|
|
7005
7540
|
return;
|
|
@@ -7008,15 +7543,15 @@ var useChatScrollControl = ({
|
|
|
7008
7543
|
setIsAtBottom(true);
|
|
7009
7544
|
setShowScrollButton(false);
|
|
7010
7545
|
}, []);
|
|
7011
|
-
const saveCurrentScrollPosition = (0,
|
|
7546
|
+
const saveCurrentScrollPosition = (0, import_react40.useCallback)(() => {
|
|
7012
7547
|
if (!scrollRef.current)
|
|
7013
7548
|
return;
|
|
7014
7549
|
savedScrollPosition.current = scrollRef.current.scrollTop;
|
|
7015
7550
|
}, []);
|
|
7016
|
-
const markUserMessageSubmitted = (0,
|
|
7551
|
+
const markUserMessageSubmitted = (0, import_react40.useCallback)(() => {
|
|
7017
7552
|
userJustSentMessageRef.current = true;
|
|
7018
7553
|
}, []);
|
|
7019
|
-
(0,
|
|
7554
|
+
(0, import_react40.useEffect)(() => {
|
|
7020
7555
|
const el = scrollRef.current;
|
|
7021
7556
|
if (!el || !isExpanded)
|
|
7022
7557
|
return;
|
|
@@ -7029,7 +7564,7 @@ var useChatScrollControl = ({
|
|
|
7029
7564
|
setShowScrollButton(enableScrollToBottomControl && !atBottom);
|
|
7030
7565
|
});
|
|
7031
7566
|
}, [isExpanded, isScrolledToBottom, enableScrollToBottomControl]);
|
|
7032
|
-
(0,
|
|
7567
|
+
(0, import_react40.useEffect)(() => {
|
|
7033
7568
|
const el = scrollRef.current;
|
|
7034
7569
|
if (!el || !isExpanded)
|
|
7035
7570
|
return;
|
|
@@ -7043,7 +7578,7 @@ var useChatScrollControl = ({
|
|
|
7043
7578
|
el.addEventListener("scroll", handleScroll);
|
|
7044
7579
|
return () => el.removeEventListener("scroll", handleScroll);
|
|
7045
7580
|
}, [isExpanded, isScrolledToBottom, enableScrollToBottomControl]);
|
|
7046
|
-
(0,
|
|
7581
|
+
(0, import_react40.useEffect)(() => {
|
|
7047
7582
|
const el = scrollRef.current;
|
|
7048
7583
|
if (!el || !isExpanded)
|
|
7049
7584
|
return;
|
|
@@ -7061,7 +7596,9 @@ var useChatScrollControl = ({
|
|
|
7061
7596
|
}
|
|
7062
7597
|
const shouldAutoScroll = userJustSentMessageRef.current;
|
|
7063
7598
|
if (!shouldAutoScroll) {
|
|
7064
|
-
|
|
7599
|
+
const atBottomNow = isScrolledToBottom(el);
|
|
7600
|
+
setIsAtBottom(atBottomNow);
|
|
7601
|
+
setShowScrollButton(enableScrollToBottomControl && !atBottomNow);
|
|
7065
7602
|
return;
|
|
7066
7603
|
}
|
|
7067
7604
|
requestAnimationFrame(() => {
|
|
@@ -7088,9 +7625,9 @@ var useChatScrollControl = ({
|
|
|
7088
7625
|
var useChatScrollControl_default = useChatScrollControl;
|
|
7089
7626
|
|
|
7090
7627
|
// src/ChatWidget/ChatWidget.tsx
|
|
7091
|
-
var
|
|
7628
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7092
7629
|
var DEFAULT_EMPTY_STATE = [
|
|
7093
|
-
/* @__PURE__ */ (0,
|
|
7630
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7094
7631
|
AIResponse_default,
|
|
7095
7632
|
{
|
|
7096
7633
|
showDisclaimer: false,
|
|
@@ -7124,9 +7661,9 @@ var ChatWidget = ({
|
|
|
7124
7661
|
closeOnClickOutside = true,
|
|
7125
7662
|
enableScrollToBottomControl = true
|
|
7126
7663
|
}) => {
|
|
7127
|
-
const [value, setValue] = (0,
|
|
7664
|
+
const [value, setValue] = (0, import_react42.useState)("");
|
|
7128
7665
|
const isControlled = typeof expanded === "boolean";
|
|
7129
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
7666
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react42.useState)(defaultExpanded);
|
|
7130
7667
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
7131
7668
|
const {
|
|
7132
7669
|
scrollRef,
|
|
@@ -7140,7 +7677,7 @@ var ChatWidget = ({
|
|
|
7140
7677
|
isExpanded,
|
|
7141
7678
|
enableScrollToBottomControl
|
|
7142
7679
|
});
|
|
7143
|
-
const setExpanded = (0,
|
|
7680
|
+
const setExpanded = (0, import_react42.useCallback)(
|
|
7144
7681
|
(next) => {
|
|
7145
7682
|
if (!next)
|
|
7146
7683
|
saveCurrentScrollPosition();
|
|
@@ -7151,19 +7688,27 @@ var ChatWidget = ({
|
|
|
7151
7688
|
[isControlled, onExpandedChange, saveCurrentScrollPosition]
|
|
7152
7689
|
);
|
|
7153
7690
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
7154
|
-
const
|
|
7691
|
+
const shouldRenderSuggestedPrompts = messages.length === 0 && !!(suggestedPrompts == null ? void 0 : suggestedPrompts.length);
|
|
7692
|
+
const firstAIResponseIndex = messagesToRender.findIndex(
|
|
7693
|
+
(element) => element.type === AIResponse_default
|
|
7694
|
+
);
|
|
7695
|
+
const renderedMessages = (0, import_react42.useMemo)(
|
|
7155
7696
|
() => messagesToRender.map((element, index) => {
|
|
7156
|
-
var _a;
|
|
7697
|
+
var _a, _b;
|
|
7157
7698
|
const key = (_a = element.key) != null ? _a : index;
|
|
7158
7699
|
if (element.type === AIResponse_default) {
|
|
7159
|
-
|
|
7700
|
+
const aiElement = element;
|
|
7701
|
+
const shouldShowTitleOnElement = index === firstAIResponseIndex ? (_b = aiElement.props.showTitle) != null ? _b : true : false;
|
|
7702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: receivedWrapperStyles, children: import_react42.default.cloneElement(aiElement, {
|
|
7703
|
+
showTitle: shouldShowTitleOnElement
|
|
7704
|
+
}) }, key);
|
|
7160
7705
|
}
|
|
7161
7706
|
if (element.type === MessageBubble_default) {
|
|
7162
|
-
return /* @__PURE__ */ (0,
|
|
7707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
7163
7708
|
}
|
|
7164
|
-
return /* @__PURE__ */ (0,
|
|
7709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(import_react42.default.Fragment, { children: element }, key);
|
|
7165
7710
|
}),
|
|
7166
|
-
[messagesToRender]
|
|
7711
|
+
[messagesToRender, firstAIResponseIndex]
|
|
7167
7712
|
);
|
|
7168
7713
|
const handleSubmit = () => {
|
|
7169
7714
|
const trimmed = value.trim();
|
|
@@ -7173,7 +7718,7 @@ var ChatWidget = ({
|
|
|
7173
7718
|
onSubmit(trimmed);
|
|
7174
7719
|
setValue("");
|
|
7175
7720
|
};
|
|
7176
|
-
return /* @__PURE__ */ (0,
|
|
7721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7177
7722
|
Widget_default,
|
|
7178
7723
|
{
|
|
7179
7724
|
ariaLabel,
|
|
@@ -7185,10 +7730,10 @@ var ChatWidget = ({
|
|
|
7185
7730
|
containerProps,
|
|
7186
7731
|
closeOnClickOutside,
|
|
7187
7732
|
children: [
|
|
7188
|
-
/* @__PURE__ */ (0,
|
|
7189
|
-
/* @__PURE__ */ (0,
|
|
7190
|
-
/* @__PURE__ */ (0,
|
|
7191
|
-
/* @__PURE__ */ (0,
|
|
7733
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { mt: 2, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(AskBuckButton_default, { badgeCount: notificationCount }) }),
|
|
7734
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { css: containerStyles2, children: [
|
|
7735
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
7736
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7192
7737
|
Box_default,
|
|
7193
7738
|
{
|
|
7194
7739
|
display: "flex",
|
|
@@ -7196,38 +7741,35 @@ var ChatWidget = ({
|
|
|
7196
7741
|
justifyContent: "space-between",
|
|
7197
7742
|
gap: "var(--spacing-4)",
|
|
7198
7743
|
children: [
|
|
7199
|
-
/* @__PURE__ */ (0,
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
)
|
|
7210
|
-
] }),
|
|
7211
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7744
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7745
|
+
Heading_default,
|
|
7746
|
+
{
|
|
7747
|
+
size: "2xs",
|
|
7748
|
+
fontWeight: "bold",
|
|
7749
|
+
color: "var(--text-primary)",
|
|
7750
|
+
children: title
|
|
7751
|
+
}
|
|
7752
|
+
) }),
|
|
7753
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7212
7754
|
Button_default,
|
|
7213
7755
|
{
|
|
7214
7756
|
variant: "text",
|
|
7215
7757
|
size: "xs",
|
|
7216
7758
|
"aria-label": "Close widget",
|
|
7217
7759
|
onClick: () => setExpanded(false),
|
|
7218
|
-
children: /* @__PURE__ */ (0,
|
|
7219
|
-
/* @__PURE__ */ (0,
|
|
7220
|
-
/* @__PURE__ */ (0,
|
|
7760
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)("span", { css: closeButtonContent, children: [
|
|
7761
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
7762
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("span", { children: "Close" })
|
|
7221
7763
|
] })
|
|
7222
7764
|
}
|
|
7223
7765
|
)
|
|
7224
7766
|
]
|
|
7225
7767
|
}
|
|
7226
7768
|
),
|
|
7227
|
-
/* @__PURE__ */ (0,
|
|
7769
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
7228
7770
|
] }),
|
|
7229
|
-
/* @__PURE__ */ (0,
|
|
7230
|
-
/* @__PURE__ */ (0,
|
|
7771
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { position: "relative", flex: "1 1 auto", minHeight: 0, children: [
|
|
7772
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7231
7773
|
Box_default,
|
|
7232
7774
|
{
|
|
7233
7775
|
ref: scrollRef,
|
|
@@ -7238,23 +7780,45 @@ var ChatWidget = ({
|
|
|
7238
7780
|
display: "flex",
|
|
7239
7781
|
flexDirection: "column",
|
|
7240
7782
|
gap: "var(--spacing-2)",
|
|
7241
|
-
css:
|
|
7783
|
+
css: import_react41.css`
|
|
7242
7784
|
overscroll-behavior: contain;
|
|
7243
7785
|
`,
|
|
7244
7786
|
children: [
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7246
|
-
isThinking && /* @__PURE__ */ (0,
|
|
7247
|
-
/* @__PURE__ */ (0,
|
|
7248
|
-
|
|
7787
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
7788
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
7789
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7790
|
+
"div",
|
|
7791
|
+
{
|
|
7792
|
+
css: import_react41.css`
|
|
7793
|
+
width: 48px;
|
|
7794
|
+
height: 24px;
|
|
7795
|
+
overflow: hidden;
|
|
7796
|
+
display: inline-flex;
|
|
7797
|
+
align-items: center;
|
|
7798
|
+
justify-content: center;
|
|
7799
|
+
`,
|
|
7800
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7801
|
+
LottieAnimations_default,
|
|
7802
|
+
{
|
|
7803
|
+
size: 24,
|
|
7804
|
+
style: {
|
|
7805
|
+
transform: "scale(3.4)",
|
|
7806
|
+
transformOrigin: "center"
|
|
7807
|
+
}
|
|
7808
|
+
}
|
|
7809
|
+
)
|
|
7810
|
+
}
|
|
7811
|
+
),
|
|
7812
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("span", { css: thinkingTextStyles, children: thinkingText })
|
|
7249
7813
|
] }) }),
|
|
7250
|
-
|
|
7814
|
+
shouldRenderSuggestedPrompts && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7251
7815
|
Box_default,
|
|
7252
7816
|
{
|
|
7253
7817
|
display: "flex",
|
|
7254
7818
|
flexDirection: "column",
|
|
7255
7819
|
gap: "var(--spacing-4)",
|
|
7256
7820
|
children: [
|
|
7257
|
-
/* @__PURE__ */ (0,
|
|
7821
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7258
7822
|
Text_default,
|
|
7259
7823
|
{
|
|
7260
7824
|
size: "md",
|
|
@@ -7263,14 +7827,14 @@ var ChatWidget = ({
|
|
|
7263
7827
|
children: suggestedPromptsTitle
|
|
7264
7828
|
}
|
|
7265
7829
|
),
|
|
7266
|
-
/* @__PURE__ */ (0,
|
|
7830
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7267
7831
|
Box_default,
|
|
7268
7832
|
{
|
|
7269
7833
|
display: "flex",
|
|
7270
7834
|
flexWrap: "wrap",
|
|
7271
7835
|
gap: "var(--spacing-4)",
|
|
7272
7836
|
alignItems: "flex-start",
|
|
7273
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
7837
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7274
7838
|
TagChip_default,
|
|
7275
7839
|
{
|
|
7276
7840
|
variant: "success",
|
|
@@ -7291,20 +7855,20 @@ var ChatWidget = ({
|
|
|
7291
7855
|
]
|
|
7292
7856
|
}
|
|
7293
7857
|
),
|
|
7294
|
-
enableScrollToBottomControl && /* @__PURE__ */ (0,
|
|
7858
|
+
enableScrollToBottomControl && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7295
7859
|
Box_default,
|
|
7296
7860
|
{
|
|
7297
7861
|
css: scrollToBottomButtonStyles,
|
|
7298
7862
|
className: showScrollButton ? "visible" : void 0,
|
|
7299
|
-
children: /* @__PURE__ */ (0,
|
|
7863
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7300
7864
|
Button_default,
|
|
7301
7865
|
{
|
|
7302
7866
|
variant: "secondary",
|
|
7303
7867
|
size: "xs",
|
|
7304
|
-
icon: /* @__PURE__ */ (0,
|
|
7868
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon_default, { variant: "AngleDownSharp" }),
|
|
7305
7869
|
onClick: () => scrollToBottom("smooth"),
|
|
7306
7870
|
"aria-label": "Scroll to bottom",
|
|
7307
|
-
css:
|
|
7871
|
+
css: import_react41.css`
|
|
7308
7872
|
background-color: var(--color-base-white);
|
|
7309
7873
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
7310
7874
|
`
|
|
@@ -7313,7 +7877,7 @@ var ChatWidget = ({
|
|
|
7313
7877
|
}
|
|
7314
7878
|
)
|
|
7315
7879
|
] }),
|
|
7316
|
-
/* @__PURE__ */ (0,
|
|
7880
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7317
7881
|
TextArea_default,
|
|
7318
7882
|
{
|
|
7319
7883
|
rows: 3,
|
|
@@ -7336,8 +7900,8 @@ var ChatWidget = ({
|
|
|
7336
7900
|
var ChatWidget_default = ChatWidget;
|
|
7337
7901
|
|
|
7338
7902
|
// src/CtaCard/CtaCard.tsx
|
|
7339
|
-
var
|
|
7340
|
-
var
|
|
7903
|
+
var import_react43 = require("react");
|
|
7904
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7341
7905
|
var CtaCard = ({
|
|
7342
7906
|
title,
|
|
7343
7907
|
description,
|
|
@@ -7348,11 +7912,11 @@ var CtaCard = ({
|
|
|
7348
7912
|
onCtaClick,
|
|
7349
7913
|
className
|
|
7350
7914
|
}) => {
|
|
7351
|
-
(0,
|
|
7915
|
+
(0, import_react43.useEffect)(() => {
|
|
7352
7916
|
onDisplay == null ? void 0 : onDisplay();
|
|
7353
7917
|
}, [onDisplay]);
|
|
7354
7918
|
const showButton = ctaUrl || onCtaClick;
|
|
7355
|
-
return /* @__PURE__ */ (0,
|
|
7919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7356
7920
|
Box_default,
|
|
7357
7921
|
{
|
|
7358
7922
|
display: "flex",
|
|
@@ -7364,7 +7928,7 @@ var CtaCard = ({
|
|
|
7364
7928
|
textAlign: "center",
|
|
7365
7929
|
className,
|
|
7366
7930
|
children: [
|
|
7367
|
-
/* @__PURE__ */ (0,
|
|
7931
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7368
7932
|
Box_default,
|
|
7369
7933
|
{
|
|
7370
7934
|
display: "flex",
|
|
@@ -7372,12 +7936,12 @@ var CtaCard = ({
|
|
|
7372
7936
|
gap: "var(--spacing-1)",
|
|
7373
7937
|
alignItems: "center",
|
|
7374
7938
|
children: [
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7939
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "sm", fontWeight: "bold", color: "var(--color-primary-500)", children: title }),
|
|
7940
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "xs", fontWeight: "semibold", color: "var(--color-primary-400)", children: description })
|
|
7377
7941
|
]
|
|
7378
7942
|
}
|
|
7379
7943
|
),
|
|
7380
|
-
showButton && /* @__PURE__ */ (0,
|
|
7944
|
+
showButton && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { display: "flex", justifyContent: "center", children: ctaUrl ? /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7381
7945
|
Button_default,
|
|
7382
7946
|
{
|
|
7383
7947
|
as: "a",
|
|
@@ -7389,7 +7953,7 @@ var CtaCard = ({
|
|
|
7389
7953
|
rel: ctaOpenInNewTab ? "noopener noreferrer" : void 0,
|
|
7390
7954
|
children: ctaLabel
|
|
7391
7955
|
}
|
|
7392
|
-
) : /* @__PURE__ */ (0,
|
|
7956
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Button_default, { variant: "primary", size: "sm", onClick: onCtaClick, children: ctaLabel }) })
|
|
7393
7957
|
]
|
|
7394
7958
|
}
|
|
7395
7959
|
);
|
|
@@ -7398,9 +7962,9 @@ CtaCard.displayName = "CtaCard";
|
|
|
7398
7962
|
var CtaCard_default = CtaCard;
|
|
7399
7963
|
|
|
7400
7964
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
7401
|
-
var
|
|
7965
|
+
var import_react44 = require("@emotion/react");
|
|
7402
7966
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
7403
|
-
var
|
|
7967
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7404
7968
|
var FeatureListItem = ({
|
|
7405
7969
|
iconVariant,
|
|
7406
7970
|
label,
|
|
@@ -7415,8 +7979,8 @@ var FeatureListItem = ({
|
|
|
7415
7979
|
}) => {
|
|
7416
7980
|
const iconDimensions = IconSizeMap[iconSize];
|
|
7417
7981
|
if (isLoading) {
|
|
7418
|
-
return /* @__PURE__ */ (0,
|
|
7419
|
-
/* @__PURE__ */ (0,
|
|
7982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
7983
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7420
7984
|
Box_default,
|
|
7421
7985
|
{
|
|
7422
7986
|
display: "flex",
|
|
@@ -7426,7 +7990,7 @@ var FeatureListItem = ({
|
|
|
7426
7990
|
className,
|
|
7427
7991
|
...rest,
|
|
7428
7992
|
children: [
|
|
7429
|
-
/* @__PURE__ */ (0,
|
|
7993
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
7430
7994
|
import_react_loading_skeleton.default,
|
|
7431
7995
|
{
|
|
7432
7996
|
circle: true,
|
|
@@ -7435,24 +7999,24 @@ var FeatureListItem = ({
|
|
|
7435
7999
|
borderRadius: 4
|
|
7436
8000
|
}
|
|
7437
8001
|
),
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
8002
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
7439
8003
|
]
|
|
7440
8004
|
}
|
|
7441
8005
|
),
|
|
7442
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7443
|
-
/* @__PURE__ */ (0,
|
|
7444
|
-
/* @__PURE__ */ (0,
|
|
8006
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
8007
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
8008
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
7445
8009
|
] })
|
|
7446
8010
|
] });
|
|
7447
8011
|
}
|
|
7448
|
-
return /* @__PURE__ */ (0,
|
|
7449
|
-
/* @__PURE__ */ (0,
|
|
8012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: isInline ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Text_default, { as: "span", children: [
|
|
8013
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
7450
8014
|
label,
|
|
7451
8015
|
" "
|
|
7452
8016
|
] }),
|
|
7453
8017
|
subtitle
|
|
7454
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
7455
|
-
/* @__PURE__ */ (0,
|
|
8018
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_jsx_runtime236.Fragment, { children: [
|
|
8019
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7456
8020
|
Box_default,
|
|
7457
8021
|
{
|
|
7458
8022
|
display: "flex",
|
|
@@ -7461,33 +8025,33 @@ var FeatureListItem = ({
|
|
|
7461
8025
|
className,
|
|
7462
8026
|
...rest,
|
|
7463
8027
|
children: [
|
|
7464
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
8028
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
7465
8029
|
Icon_default,
|
|
7466
8030
|
{
|
|
7467
8031
|
variant: iconVariant,
|
|
7468
8032
|
size: iconSize,
|
|
7469
8033
|
fill: iconColor,
|
|
7470
|
-
css:
|
|
8034
|
+
css: import_react44.css`
|
|
7471
8035
|
flex-shrink: 0;
|
|
7472
8036
|
`
|
|
7473
8037
|
}
|
|
7474
8038
|
),
|
|
7475
|
-
/* @__PURE__ */ (0,
|
|
8039
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
7476
8040
|
]
|
|
7477
8041
|
}
|
|
7478
8042
|
),
|
|
7479
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7481
|
-
/* @__PURE__ */ (0,
|
|
8043
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
8044
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
8045
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
7482
8046
|
] })
|
|
7483
8047
|
] }) });
|
|
7484
8048
|
};
|
|
7485
8049
|
var FeatureListItem_default = FeatureListItem;
|
|
7486
8050
|
|
|
7487
8051
|
// src/FeatureList/FeatureList.tsx
|
|
7488
|
-
var
|
|
8052
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7489
8053
|
var FeatureList = ({ heading, items, className }) => {
|
|
7490
|
-
return /* @__PURE__ */ (0,
|
|
8054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
7491
8055
|
Box_default,
|
|
7492
8056
|
{
|
|
7493
8057
|
display: "flex",
|
|
@@ -7495,8 +8059,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
7495
8059
|
gap: "var(--spacing-2)",
|
|
7496
8060
|
className,
|
|
7497
8061
|
children: [
|
|
7498
|
-
heading && /* @__PURE__ */ (0,
|
|
7499
|
-
/* @__PURE__ */ (0,
|
|
8062
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
8063
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
7500
8064
|
]
|
|
7501
8065
|
}
|
|
7502
8066
|
);
|
|
@@ -7504,8 +8068,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
7504
8068
|
var FeatureList_default = FeatureList;
|
|
7505
8069
|
|
|
7506
8070
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
7507
|
-
var
|
|
7508
|
-
var cardContainerStyles =
|
|
8071
|
+
var import_react45 = require("@emotion/react");
|
|
8072
|
+
var cardContainerStyles = import_react45.css`
|
|
7509
8073
|
position: relative;
|
|
7510
8074
|
height: 335px;
|
|
7511
8075
|
|
|
@@ -7513,12 +8077,12 @@ var cardContainerStyles = import_react44.css`
|
|
|
7513
8077
|
height: 480px;
|
|
7514
8078
|
}
|
|
7515
8079
|
`;
|
|
7516
|
-
var cardContentStyles =
|
|
8080
|
+
var cardContentStyles = import_react45.css`
|
|
7517
8081
|
position: relative;
|
|
7518
8082
|
border-radius: var(--spacing-4);
|
|
7519
8083
|
overflow: hidden;
|
|
7520
8084
|
`;
|
|
7521
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
8085
|
+
var getBackgroundWithGradient = (imageUrl) => import_react45.css`
|
|
7522
8086
|
background-image: linear-gradient(
|
|
7523
8087
|
180deg,
|
|
7524
8088
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7532,7 +8096,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react44.css`
|
|
|
7532
8096
|
`;
|
|
7533
8097
|
|
|
7534
8098
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
7535
|
-
var
|
|
8099
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7536
8100
|
var FieldNoteCard = ({
|
|
7537
8101
|
backgroundImage,
|
|
7538
8102
|
title,
|
|
@@ -7541,14 +8105,14 @@ var FieldNoteCard = ({
|
|
|
7541
8105
|
className,
|
|
7542
8106
|
...rest
|
|
7543
8107
|
}) => {
|
|
7544
|
-
return /* @__PURE__ */ (0,
|
|
8108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7545
8109
|
Box_default,
|
|
7546
8110
|
{
|
|
7547
8111
|
display: "flex",
|
|
7548
8112
|
css: cardContainerStyles,
|
|
7549
8113
|
className,
|
|
7550
8114
|
...rest,
|
|
7551
|
-
children: /* @__PURE__ */ (0,
|
|
8115
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7552
8116
|
Box_default,
|
|
7553
8117
|
{
|
|
7554
8118
|
display: "flex",
|
|
@@ -7556,9 +8120,9 @@ var FieldNoteCard = ({
|
|
|
7556
8120
|
justifyContent: "flex-end",
|
|
7557
8121
|
p: 6,
|
|
7558
8122
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
7559
|
-
children: /* @__PURE__ */ (0,
|
|
7560
|
-
/* @__PURE__ */ (0,
|
|
7561
|
-
/* @__PURE__ */ (0,
|
|
8123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
8124
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
8125
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
7562
8126
|
] })
|
|
7563
8127
|
}
|
|
7564
8128
|
)
|
|
@@ -7568,14 +8132,14 @@ var FieldNoteCard = ({
|
|
|
7568
8132
|
var FieldNoteCard_default = FieldNoteCard;
|
|
7569
8133
|
|
|
7570
8134
|
// src/Form/FormField.tsx
|
|
7571
|
-
var
|
|
7572
|
-
var
|
|
7573
|
-
var fieldContainerStyles =
|
|
8135
|
+
var import_react46 = require("@emotion/react");
|
|
8136
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
8137
|
+
var fieldContainerStyles = import_react46.css`
|
|
7574
8138
|
display: flex;
|
|
7575
8139
|
flex-direction: column;
|
|
7576
8140
|
gap: ${space["2"]};
|
|
7577
8141
|
`;
|
|
7578
|
-
var labelStyles2 =
|
|
8142
|
+
var labelStyles2 = import_react46.css`
|
|
7579
8143
|
font-family: ${fonts.base};
|
|
7580
8144
|
font-size: ${fontSizes.sm};
|
|
7581
8145
|
font-weight: ${fontWeights.medium};
|
|
@@ -7583,17 +8147,17 @@ var labelStyles2 = import_react45.css`
|
|
|
7583
8147
|
color: ${colors.gray["900"]};
|
|
7584
8148
|
margin-bottom: ${space["1"]};
|
|
7585
8149
|
`;
|
|
7586
|
-
var requiredIndicatorStyles =
|
|
8150
|
+
var requiredIndicatorStyles = import_react46.css`
|
|
7587
8151
|
color: ${colors.red["500"]};
|
|
7588
8152
|
margin-left: ${space["1"]};
|
|
7589
8153
|
`;
|
|
7590
|
-
var helpTextStyles =
|
|
8154
|
+
var helpTextStyles = import_react46.css`
|
|
7591
8155
|
font-family: ${fonts.base};
|
|
7592
8156
|
font-size: ${fontSizes.sm};
|
|
7593
8157
|
line-height: ${lineHeights.tight};
|
|
7594
8158
|
color: ${colors.gray["600"]};
|
|
7595
8159
|
`;
|
|
7596
|
-
var errorTextStyles =
|
|
8160
|
+
var errorTextStyles = import_react46.css`
|
|
7597
8161
|
font-family: ${fonts.base};
|
|
7598
8162
|
font-size: ${fontSizes.sm};
|
|
7599
8163
|
line-height: ${lineHeights.tight};
|
|
@@ -7602,7 +8166,7 @@ var errorTextStyles = import_react45.css`
|
|
|
7602
8166
|
align-items: center;
|
|
7603
8167
|
gap: ${space["1"]};
|
|
7604
8168
|
`;
|
|
7605
|
-
var successTextStyles =
|
|
8169
|
+
var successTextStyles = import_react46.css`
|
|
7606
8170
|
font-family: ${fonts.base};
|
|
7607
8171
|
font-size: ${fontSizes.sm};
|
|
7608
8172
|
line-height: ${lineHeights.tight};
|
|
@@ -7611,7 +8175,7 @@ var successTextStyles = import_react45.css`
|
|
|
7611
8175
|
align-items: center;
|
|
7612
8176
|
gap: ${space["1"]};
|
|
7613
8177
|
`;
|
|
7614
|
-
var visuallyHiddenStyles =
|
|
8178
|
+
var visuallyHiddenStyles = import_react46.css`
|
|
7615
8179
|
position: absolute;
|
|
7616
8180
|
width: 1px;
|
|
7617
8181
|
height: 1px;
|
|
@@ -7636,21 +8200,21 @@ var FormField = ({
|
|
|
7636
8200
|
const hasError = !!error;
|
|
7637
8201
|
const hasSuccess = !!success && !hasError;
|
|
7638
8202
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
7639
|
-
return /* @__PURE__ */ (0,
|
|
7640
|
-
label && /* @__PURE__ */ (0,
|
|
8203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
8204
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7641
8205
|
"label",
|
|
7642
8206
|
{
|
|
7643
8207
|
htmlFor,
|
|
7644
8208
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
7645
8209
|
children: [
|
|
7646
8210
|
label,
|
|
7647
|
-
required && /* @__PURE__ */ (0,
|
|
8211
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
7648
8212
|
]
|
|
7649
8213
|
}
|
|
7650
8214
|
),
|
|
7651
8215
|
children,
|
|
7652
|
-
hasError && /* @__PURE__ */ (0,
|
|
7653
|
-
/* @__PURE__ */ (0,
|
|
8216
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
8217
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7654
8218
|
"path",
|
|
7655
8219
|
{
|
|
7656
8220
|
fillRule: "evenodd",
|
|
@@ -7660,8 +8224,8 @@ var FormField = ({
|
|
|
7660
8224
|
) }),
|
|
7661
8225
|
error
|
|
7662
8226
|
] }),
|
|
7663
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
7664
|
-
/* @__PURE__ */ (0,
|
|
8227
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("div", { css: successTextStyles, children: [
|
|
8228
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7665
8229
|
"path",
|
|
7666
8230
|
{
|
|
7667
8231
|
fillRule: "evenodd",
|
|
@@ -7671,15 +8235,15 @@ var FormField = ({
|
|
|
7671
8235
|
) }),
|
|
7672
8236
|
success
|
|
7673
8237
|
] }),
|
|
7674
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
8238
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
7675
8239
|
] });
|
|
7676
8240
|
};
|
|
7677
8241
|
|
|
7678
8242
|
// src/Form/Input.tsx
|
|
7679
|
-
var
|
|
7680
|
-
var
|
|
7681
|
-
var
|
|
7682
|
-
var inputStyles =
|
|
8243
|
+
var import_react47 = require("@emotion/react");
|
|
8244
|
+
var import_react48 = require("react");
|
|
8245
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
8246
|
+
var inputStyles = import_react47.css`
|
|
7683
8247
|
position: relative;
|
|
7684
8248
|
width: 100%;
|
|
7685
8249
|
font-family: ${fonts.base};
|
|
@@ -7716,19 +8280,19 @@ var inputStyles = import_react46.css`
|
|
|
7716
8280
|
}
|
|
7717
8281
|
`;
|
|
7718
8282
|
var sizeStyles = {
|
|
7719
|
-
sm:
|
|
8283
|
+
sm: import_react47.css`
|
|
7720
8284
|
padding: ${space["2"]} ${space["3"]};
|
|
7721
8285
|
font-size: ${fontSizes.sm};
|
|
7722
8286
|
line-height: ${lineHeights.tight};
|
|
7723
8287
|
height: ${space["8"]};
|
|
7724
8288
|
`,
|
|
7725
|
-
md:
|
|
8289
|
+
md: import_react47.css`
|
|
7726
8290
|
padding: ${space["3"]} ${space["4"]};
|
|
7727
8291
|
font-size: ${fontSizes.base};
|
|
7728
8292
|
line-height: ${lineHeights.normal};
|
|
7729
8293
|
height: ${space["10"]};
|
|
7730
8294
|
`,
|
|
7731
|
-
lg:
|
|
8295
|
+
lg: import_react47.css`
|
|
7732
8296
|
padding: ${space["4"]} ${space["5"]};
|
|
7733
8297
|
font-size: ${fontSizes.lg};
|
|
7734
8298
|
line-height: ${lineHeights.normal};
|
|
@@ -7736,8 +8300,8 @@ var sizeStyles = {
|
|
|
7736
8300
|
`
|
|
7737
8301
|
};
|
|
7738
8302
|
var variantStyles = {
|
|
7739
|
-
default:
|
|
7740
|
-
error:
|
|
8303
|
+
default: import_react47.css``,
|
|
8304
|
+
error: import_react47.css`
|
|
7741
8305
|
border-color: ${colors.red["500"]};
|
|
7742
8306
|
|
|
7743
8307
|
&:focus {
|
|
@@ -7745,7 +8309,7 @@ var variantStyles = {
|
|
|
7745
8309
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7746
8310
|
}
|
|
7747
8311
|
`,
|
|
7748
|
-
success:
|
|
8312
|
+
success: import_react47.css`
|
|
7749
8313
|
border-color: ${colors.accent.green};
|
|
7750
8314
|
|
|
7751
8315
|
&:focus {
|
|
@@ -7754,7 +8318,7 @@ var variantStyles = {
|
|
|
7754
8318
|
}
|
|
7755
8319
|
`
|
|
7756
8320
|
};
|
|
7757
|
-
var inputWithIconStyles =
|
|
8321
|
+
var inputWithIconStyles = import_react47.css`
|
|
7758
8322
|
padding-left: ${space["10"]};
|
|
7759
8323
|
|
|
7760
8324
|
&.has-end-icon {
|
|
@@ -7765,7 +8329,7 @@ var inputWithIconStyles = import_react46.css`
|
|
|
7765
8329
|
padding-left: ${space["10"]};
|
|
7766
8330
|
}
|
|
7767
8331
|
`;
|
|
7768
|
-
var iconContainerStyles =
|
|
8332
|
+
var iconContainerStyles = import_react47.css`
|
|
7769
8333
|
position: absolute;
|
|
7770
8334
|
top: 50%;
|
|
7771
8335
|
transform: translateY(-50%);
|
|
@@ -7776,20 +8340,20 @@ var iconContainerStyles = import_react46.css`
|
|
|
7776
8340
|
pointer-events: none;
|
|
7777
8341
|
z-index: 1;
|
|
7778
8342
|
`;
|
|
7779
|
-
var startIconStyles =
|
|
8343
|
+
var startIconStyles = import_react47.css`
|
|
7780
8344
|
${iconContainerStyles}
|
|
7781
8345
|
left: ${space["3"]};
|
|
7782
8346
|
`;
|
|
7783
|
-
var endIconStyles =
|
|
8347
|
+
var endIconStyles = import_react47.css`
|
|
7784
8348
|
${iconContainerStyles}
|
|
7785
8349
|
right: ${space["3"]};
|
|
7786
8350
|
`;
|
|
7787
|
-
var inputWrapperStyles =
|
|
8351
|
+
var inputWrapperStyles = import_react47.css`
|
|
7788
8352
|
position: relative;
|
|
7789
8353
|
display: inline-block;
|
|
7790
8354
|
width: 100%;
|
|
7791
8355
|
`;
|
|
7792
|
-
var Input = (0,
|
|
8356
|
+
var Input = (0, import_react48.forwardRef)(
|
|
7793
8357
|
({
|
|
7794
8358
|
size = "md",
|
|
7795
8359
|
variant = "default",
|
|
@@ -7808,9 +8372,9 @@ var Input = (0, import_react47.forwardRef)(
|
|
|
7808
8372
|
hasEndIcon && "has-end-icon",
|
|
7809
8373
|
className
|
|
7810
8374
|
].filter(Boolean).join(" ");
|
|
7811
|
-
return /* @__PURE__ */ (0,
|
|
7812
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
7813
|
-
/* @__PURE__ */ (0,
|
|
8375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
8376
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
8377
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7814
8378
|
"input",
|
|
7815
8379
|
{
|
|
7816
8380
|
ref,
|
|
@@ -7827,17 +8391,17 @@ var Input = (0, import_react47.forwardRef)(
|
|
|
7827
8391
|
...props
|
|
7828
8392
|
}
|
|
7829
8393
|
),
|
|
7830
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
8394
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
7831
8395
|
] });
|
|
7832
8396
|
}
|
|
7833
8397
|
);
|
|
7834
8398
|
Input.displayName = "Input";
|
|
7835
8399
|
|
|
7836
8400
|
// src/Form/Select.tsx
|
|
7837
|
-
var
|
|
7838
|
-
var
|
|
7839
|
-
var
|
|
7840
|
-
var selectStyles =
|
|
8401
|
+
var import_react49 = require("@emotion/react");
|
|
8402
|
+
var import_react50 = require("react");
|
|
8403
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
8404
|
+
var selectStyles = import_react49.css`
|
|
7841
8405
|
position: relative;
|
|
7842
8406
|
width: 100%;
|
|
7843
8407
|
font-family: ${fonts.base};
|
|
@@ -7876,19 +8440,19 @@ var selectStyles = import_react48.css`
|
|
|
7876
8440
|
}
|
|
7877
8441
|
`;
|
|
7878
8442
|
var sizeStyles2 = {
|
|
7879
|
-
sm:
|
|
8443
|
+
sm: import_react49.css`
|
|
7880
8444
|
padding: ${space["2"]} ${space["3"]};
|
|
7881
8445
|
font-size: ${fontSizes.sm};
|
|
7882
8446
|
line-height: ${lineHeights.tight};
|
|
7883
8447
|
height: ${space["8"]};
|
|
7884
8448
|
`,
|
|
7885
|
-
md:
|
|
8449
|
+
md: import_react49.css`
|
|
7886
8450
|
padding: ${space["3"]} ${space["4"]};
|
|
7887
8451
|
font-size: ${fontSizes.base};
|
|
7888
8452
|
line-height: ${lineHeights.normal};
|
|
7889
8453
|
height: ${space["10"]};
|
|
7890
8454
|
`,
|
|
7891
|
-
lg:
|
|
8455
|
+
lg: import_react49.css`
|
|
7892
8456
|
padding: ${space["4"]} ${space["5"]};
|
|
7893
8457
|
font-size: ${fontSizes.lg};
|
|
7894
8458
|
line-height: ${lineHeights.normal};
|
|
@@ -7896,8 +8460,8 @@ var sizeStyles2 = {
|
|
|
7896
8460
|
`
|
|
7897
8461
|
};
|
|
7898
8462
|
var variantStyles2 = {
|
|
7899
|
-
default:
|
|
7900
|
-
error:
|
|
8463
|
+
default: import_react49.css``,
|
|
8464
|
+
error: import_react49.css`
|
|
7901
8465
|
border-color: ${colors.red["500"]};
|
|
7902
8466
|
|
|
7903
8467
|
&:focus {
|
|
@@ -7905,7 +8469,7 @@ var variantStyles2 = {
|
|
|
7905
8469
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7906
8470
|
}
|
|
7907
8471
|
`,
|
|
7908
|
-
success:
|
|
8472
|
+
success: import_react49.css`
|
|
7909
8473
|
border-color: ${colors.accent.green};
|
|
7910
8474
|
|
|
7911
8475
|
&:focus {
|
|
@@ -7914,7 +8478,7 @@ var variantStyles2 = {
|
|
|
7914
8478
|
}
|
|
7915
8479
|
`
|
|
7916
8480
|
};
|
|
7917
|
-
var optionStyles =
|
|
8481
|
+
var optionStyles = import_react49.css`
|
|
7918
8482
|
background-color: ${colors.light["100"]};
|
|
7919
8483
|
color: ${colors.gray["900"]};
|
|
7920
8484
|
|
|
@@ -7923,7 +8487,7 @@ var optionStyles = import_react48.css`
|
|
|
7923
8487
|
background-color: ${colors.gray["100"]};
|
|
7924
8488
|
}
|
|
7925
8489
|
`;
|
|
7926
|
-
var Select = (0,
|
|
8490
|
+
var Select = (0, import_react50.forwardRef)(
|
|
7927
8491
|
({
|
|
7928
8492
|
size = "md",
|
|
7929
8493
|
variant = "default",
|
|
@@ -7933,7 +8497,7 @@ var Select = (0, import_react49.forwardRef)(
|
|
|
7933
8497
|
className = "",
|
|
7934
8498
|
...props
|
|
7935
8499
|
}, ref) => {
|
|
7936
|
-
return /* @__PURE__ */ (0,
|
|
8500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7937
8501
|
"select",
|
|
7938
8502
|
{
|
|
7939
8503
|
ref,
|
|
@@ -7942,8 +8506,8 @@ var Select = (0, import_react49.forwardRef)(
|
|
|
7942
8506
|
className,
|
|
7943
8507
|
...props,
|
|
7944
8508
|
children: [
|
|
7945
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
7946
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
8509
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
8510
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7947
8511
|
"option",
|
|
7948
8512
|
{
|
|
7949
8513
|
value: option.value,
|
|
@@ -7961,10 +8525,10 @@ var Select = (0, import_react49.forwardRef)(
|
|
|
7961
8525
|
Select.displayName = "Select";
|
|
7962
8526
|
|
|
7963
8527
|
// src/Grid/Column.tsx
|
|
7964
|
-
var
|
|
8528
|
+
var import_react52 = require("@emotion/react");
|
|
7965
8529
|
|
|
7966
8530
|
// src/Grid/utils.ts
|
|
7967
|
-
var
|
|
8531
|
+
var import_react51 = require("@emotion/react");
|
|
7968
8532
|
var LayoutTokens = {
|
|
7969
8533
|
containers: {
|
|
7970
8534
|
sm: screens.sm,
|
|
@@ -8004,11 +8568,11 @@ var getResponsiveValue = (value) => {
|
|
|
8004
8568
|
var generateGridColumns = (columns) => {
|
|
8005
8569
|
const baseColumns = getResponsiveValue(columns);
|
|
8006
8570
|
if (typeof columns === "number") {
|
|
8007
|
-
return
|
|
8571
|
+
return import_react51.css`
|
|
8008
8572
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
8009
8573
|
`;
|
|
8010
8574
|
}
|
|
8011
|
-
return
|
|
8575
|
+
return import_react51.css`
|
|
8012
8576
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
8013
8577
|
|
|
8014
8578
|
${media.sm} {
|
|
@@ -8040,11 +8604,11 @@ var generateGridColumns = (columns) => {
|
|
|
8040
8604
|
var generateGapStyles = (gap2) => {
|
|
8041
8605
|
const baseGap = getResponsiveValue(gap2);
|
|
8042
8606
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
8043
|
-
return
|
|
8607
|
+
return import_react51.css`
|
|
8044
8608
|
gap: ${space[gap2]};
|
|
8045
8609
|
`;
|
|
8046
8610
|
}
|
|
8047
|
-
return
|
|
8611
|
+
return import_react51.css`
|
|
8048
8612
|
gap: ${space[baseGap]};
|
|
8049
8613
|
|
|
8050
8614
|
${media.sm} {
|
|
@@ -8067,11 +8631,11 @@ var generateGapStyles = (gap2) => {
|
|
|
8067
8631
|
var generateRowGapStyles = (rowGap) => {
|
|
8068
8632
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
8069
8633
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
8070
|
-
return
|
|
8634
|
+
return import_react51.css`
|
|
8071
8635
|
row-gap: ${space[rowGap]};
|
|
8072
8636
|
`;
|
|
8073
8637
|
}
|
|
8074
|
-
return
|
|
8638
|
+
return import_react51.css`
|
|
8075
8639
|
row-gap: ${space[baseRowGap]};
|
|
8076
8640
|
|
|
8077
8641
|
${media.sm} {
|
|
@@ -8094,11 +8658,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
8094
8658
|
var generateColumnGapStyles = (columnGap) => {
|
|
8095
8659
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
8096
8660
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
8097
|
-
return
|
|
8661
|
+
return import_react51.css`
|
|
8098
8662
|
column-gap: ${space[columnGap]};
|
|
8099
8663
|
`;
|
|
8100
8664
|
}
|
|
8101
|
-
return
|
|
8665
|
+
return import_react51.css`
|
|
8102
8666
|
column-gap: ${space[baseColumnGap]};
|
|
8103
8667
|
|
|
8104
8668
|
${media.sm} {
|
|
@@ -8121,11 +8685,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
8121
8685
|
var generateColumnSpan = (span) => {
|
|
8122
8686
|
const baseSpan = getResponsiveValue(span);
|
|
8123
8687
|
if (typeof span === "string" || typeof span === "number") {
|
|
8124
|
-
return
|
|
8688
|
+
return import_react51.css`
|
|
8125
8689
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
8126
8690
|
`;
|
|
8127
8691
|
}
|
|
8128
|
-
return
|
|
8692
|
+
return import_react51.css`
|
|
8129
8693
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
8130
8694
|
|
|
8131
8695
|
${media.sm} {
|
|
@@ -8148,11 +8712,11 @@ var generateColumnSpan = (span) => {
|
|
|
8148
8712
|
var generateAlignItems = (alignItems) => {
|
|
8149
8713
|
const baseAlign = getResponsiveValue(alignItems);
|
|
8150
8714
|
if (typeof alignItems === "string") {
|
|
8151
|
-
return
|
|
8715
|
+
return import_react51.css`
|
|
8152
8716
|
align-items: ${alignItems};
|
|
8153
8717
|
`;
|
|
8154
8718
|
}
|
|
8155
|
-
return
|
|
8719
|
+
return import_react51.css`
|
|
8156
8720
|
align-items: ${baseAlign};
|
|
8157
8721
|
|
|
8158
8722
|
${media.sm} {
|
|
@@ -8175,11 +8739,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
8175
8739
|
var generateJustifyItems = (justifyItems) => {
|
|
8176
8740
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
8177
8741
|
if (typeof justifyItems === "string") {
|
|
8178
|
-
return
|
|
8742
|
+
return import_react51.css`
|
|
8179
8743
|
justify-items: ${justifyItems};
|
|
8180
8744
|
`;
|
|
8181
8745
|
}
|
|
8182
|
-
return
|
|
8746
|
+
return import_react51.css`
|
|
8183
8747
|
justify-items: ${baseJustify};
|
|
8184
8748
|
|
|
8185
8749
|
${media.sm} {
|
|
@@ -8201,7 +8765,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
8201
8765
|
};
|
|
8202
8766
|
|
|
8203
8767
|
// src/Grid/Column.tsx
|
|
8204
|
-
var
|
|
8768
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
8205
8769
|
var Column = ({
|
|
8206
8770
|
span,
|
|
8207
8771
|
start,
|
|
@@ -8214,30 +8778,30 @@ var Column = ({
|
|
|
8214
8778
|
}) => {
|
|
8215
8779
|
const columnStyles = [
|
|
8216
8780
|
span && generateColumnSpan(span),
|
|
8217
|
-
start &&
|
|
8781
|
+
start && import_react52.css`
|
|
8218
8782
|
grid-column-start: ${start};
|
|
8219
8783
|
`,
|
|
8220
|
-
end &&
|
|
8784
|
+
end && import_react52.css`
|
|
8221
8785
|
grid-column-end: ${end};
|
|
8222
8786
|
`,
|
|
8223
|
-
row &&
|
|
8787
|
+
row && import_react52.css`
|
|
8224
8788
|
grid-row: ${row};
|
|
8225
8789
|
`,
|
|
8226
|
-
rowSpan &&
|
|
8790
|
+
rowSpan && import_react52.css`
|
|
8227
8791
|
grid-row: span ${rowSpan};
|
|
8228
8792
|
`,
|
|
8229
|
-
area &&
|
|
8793
|
+
area && import_react52.css`
|
|
8230
8794
|
grid-area: ${area};
|
|
8231
8795
|
`
|
|
8232
8796
|
].filter(Boolean);
|
|
8233
|
-
return /* @__PURE__ */ (0,
|
|
8797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
8234
8798
|
};
|
|
8235
8799
|
var Column_default = Column;
|
|
8236
8800
|
|
|
8237
8801
|
// src/Grid/Grid.tsx
|
|
8238
|
-
var
|
|
8239
|
-
var
|
|
8240
|
-
var baseGridStyles =
|
|
8802
|
+
var import_react53 = require("@emotion/react");
|
|
8803
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
8804
|
+
var baseGridStyles = import_react53.css`
|
|
8241
8805
|
display: grid;
|
|
8242
8806
|
`;
|
|
8243
8807
|
var Grid = ({
|
|
@@ -8262,27 +8826,27 @@ var Grid = ({
|
|
|
8262
8826
|
columnGap && generateColumnGapStyles(columnGap),
|
|
8263
8827
|
alignItems && generateAlignItems(alignItems),
|
|
8264
8828
|
justifyItems && generateJustifyItems(justifyItems),
|
|
8265
|
-
autoRows &&
|
|
8829
|
+
autoRows && import_react53.css`
|
|
8266
8830
|
grid-auto-rows: ${autoRows};
|
|
8267
8831
|
`,
|
|
8268
|
-
autoColumns &&
|
|
8832
|
+
autoColumns && import_react53.css`
|
|
8269
8833
|
grid-auto-columns: ${autoColumns};
|
|
8270
8834
|
`,
|
|
8271
|
-
templateAreas &&
|
|
8835
|
+
templateAreas && import_react53.css`
|
|
8272
8836
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
8273
8837
|
`,
|
|
8274
|
-
justifyContent &&
|
|
8838
|
+
justifyContent && import_react53.css`
|
|
8275
8839
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
8276
8840
|
`
|
|
8277
8841
|
].filter(Boolean);
|
|
8278
|
-
return /* @__PURE__ */ (0,
|
|
8842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
8279
8843
|
};
|
|
8280
8844
|
var Grid_default = Grid;
|
|
8281
8845
|
|
|
8282
8846
|
// src/Grid/GridContainer.tsx
|
|
8283
|
-
var
|
|
8284
|
-
var
|
|
8285
|
-
var baseContainerStyles =
|
|
8847
|
+
var import_react54 = require("@emotion/react");
|
|
8848
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8849
|
+
var baseContainerStyles = import_react54.css`
|
|
8286
8850
|
width: 100%;
|
|
8287
8851
|
margin: 0 auto;
|
|
8288
8852
|
padding-left: 1rem;
|
|
@@ -8290,14 +8854,14 @@ var baseContainerStyles = import_react53.css`
|
|
|
8290
8854
|
`;
|
|
8291
8855
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
8292
8856
|
if (maxWidth === "full") {
|
|
8293
|
-
return
|
|
8857
|
+
return import_react54.css`
|
|
8294
8858
|
max-width: 100%;
|
|
8295
8859
|
padding-left: 0;
|
|
8296
8860
|
padding-right: 0;
|
|
8297
8861
|
`;
|
|
8298
8862
|
}
|
|
8299
8863
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
8300
|
-
return
|
|
8864
|
+
return import_react54.css`
|
|
8301
8865
|
max-width: ${width2};
|
|
8302
8866
|
|
|
8303
8867
|
${media.sm} {
|
|
@@ -8326,13 +8890,13 @@ var GridContainer = ({
|
|
|
8326
8890
|
baseContainerStyles,
|
|
8327
8891
|
generateMaxWidthStyles(maxWidth)
|
|
8328
8892
|
];
|
|
8329
|
-
return /* @__PURE__ */ (0,
|
|
8893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { css: containerStyles6, className, ...props, children });
|
|
8330
8894
|
};
|
|
8331
8895
|
var GridContainer_default = GridContainer;
|
|
8332
8896
|
|
|
8333
8897
|
// src/HuntCard/HuntCard.styles.ts
|
|
8334
|
-
var
|
|
8335
|
-
var cardContainerStyles2 =
|
|
8898
|
+
var import_react55 = require("@emotion/react");
|
|
8899
|
+
var cardContainerStyles2 = import_react55.css`
|
|
8336
8900
|
position: relative;
|
|
8337
8901
|
height: 335px;
|
|
8338
8902
|
|
|
@@ -8340,12 +8904,12 @@ var cardContainerStyles2 = import_react54.css`
|
|
|
8340
8904
|
height: 480px;
|
|
8341
8905
|
}
|
|
8342
8906
|
`;
|
|
8343
|
-
var cardContentStyles2 =
|
|
8907
|
+
var cardContentStyles2 = import_react55.css`
|
|
8344
8908
|
position: relative;
|
|
8345
8909
|
border-radius: var(--spacing-4);
|
|
8346
8910
|
overflow: hidden;
|
|
8347
8911
|
`;
|
|
8348
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
8912
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react55.css`
|
|
8349
8913
|
background-image: linear-gradient(
|
|
8350
8914
|
180deg,
|
|
8351
8915
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -8359,7 +8923,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react54.css`
|
|
|
8359
8923
|
`;
|
|
8360
8924
|
|
|
8361
8925
|
// src/HuntCard/HuntCard.tsx
|
|
8362
|
-
var
|
|
8926
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
8363
8927
|
var HuntCard = ({
|
|
8364
8928
|
backgroundImage,
|
|
8365
8929
|
title,
|
|
@@ -8368,14 +8932,14 @@ var HuntCard = ({
|
|
|
8368
8932
|
className,
|
|
8369
8933
|
...rest
|
|
8370
8934
|
}) => {
|
|
8371
|
-
return /* @__PURE__ */ (0,
|
|
8935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8372
8936
|
Box_default,
|
|
8373
8937
|
{
|
|
8374
8938
|
display: "flex",
|
|
8375
8939
|
css: cardContainerStyles2,
|
|
8376
8940
|
className,
|
|
8377
8941
|
...rest,
|
|
8378
|
-
children: /* @__PURE__ */ (0,
|
|
8942
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8379
8943
|
Box_default,
|
|
8380
8944
|
{
|
|
8381
8945
|
display: "flex",
|
|
@@ -8383,9 +8947,9 @@ var HuntCard = ({
|
|
|
8383
8947
|
justifyContent: "flex-end",
|
|
8384
8948
|
p: 6,
|
|
8385
8949
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
8386
|
-
children: /* @__PURE__ */ (0,
|
|
8387
|
-
/* @__PURE__ */ (0,
|
|
8388
|
-
/* @__PURE__ */ (0,
|
|
8950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
8951
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
8952
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
8389
8953
|
] })
|
|
8390
8954
|
}
|
|
8391
8955
|
)
|
|
@@ -8395,15 +8959,15 @@ var HuntCard = ({
|
|
|
8395
8959
|
var HuntCard_default = HuntCard;
|
|
8396
8960
|
|
|
8397
8961
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8398
|
-
var
|
|
8962
|
+
var import_react59 = require("react");
|
|
8399
8963
|
|
|
8400
8964
|
// src/Modal/Modal.tsx
|
|
8401
|
-
var
|
|
8965
|
+
var import_react57 = require("react");
|
|
8402
8966
|
var import_react_dom4 = __toESM(require("react-dom"));
|
|
8403
8967
|
|
|
8404
8968
|
// src/Modal/Modal.styles.ts
|
|
8405
|
-
var
|
|
8406
|
-
var fadeIn2 =
|
|
8969
|
+
var import_react56 = require("@emotion/react");
|
|
8970
|
+
var fadeIn2 = import_react56.keyframes`
|
|
8407
8971
|
from {
|
|
8408
8972
|
opacity: 0;
|
|
8409
8973
|
}
|
|
@@ -8411,7 +8975,7 @@ var fadeIn2 = import_react55.keyframes`
|
|
|
8411
8975
|
opacity: 1;
|
|
8412
8976
|
}
|
|
8413
8977
|
`;
|
|
8414
|
-
var fadeInScale2 =
|
|
8978
|
+
var fadeInScale2 = import_react56.keyframes`
|
|
8415
8979
|
from {
|
|
8416
8980
|
opacity: 0;
|
|
8417
8981
|
transform: scale(0.95);
|
|
@@ -8421,7 +8985,7 @@ var fadeInScale2 = import_react55.keyframes`
|
|
|
8421
8985
|
transform: scale(1);
|
|
8422
8986
|
}
|
|
8423
8987
|
`;
|
|
8424
|
-
var scrollLayerStyles =
|
|
8988
|
+
var scrollLayerStyles = import_react56.css`
|
|
8425
8989
|
background-color: rgba(0, 0, 0, 0.6);
|
|
8426
8990
|
backdrop-filter: blur(4px);
|
|
8427
8991
|
animation: ${fadeIn2} 0.15s ease-out forwards;
|
|
@@ -8430,7 +8994,7 @@ var scrollLayerStyles = import_react55.css`
|
|
|
8430
8994
|
animation: none;
|
|
8431
8995
|
}
|
|
8432
8996
|
`;
|
|
8433
|
-
var containerStyles3 =
|
|
8997
|
+
var containerStyles3 = import_react56.css`
|
|
8434
8998
|
background-color: var(--surface-primary, #ffffff);
|
|
8435
8999
|
border-radius: var(--radius-lg, 12px);
|
|
8436
9000
|
max-height: calc(100dvh - var(--spacing-8));
|
|
@@ -8442,17 +9006,17 @@ var containerStyles3 = import_react55.css`
|
|
|
8442
9006
|
}
|
|
8443
9007
|
`;
|
|
8444
9008
|
var sizeStyles3 = {
|
|
8445
|
-
sm:
|
|
9009
|
+
sm: import_react56.css`
|
|
8446
9010
|
width: 100%;
|
|
8447
9011
|
max-width: 24rem; /* 384px */
|
|
8448
9012
|
padding: var(--spacing-5);
|
|
8449
9013
|
`,
|
|
8450
|
-
md:
|
|
9014
|
+
md: import_react56.css`
|
|
8451
9015
|
width: 100%;
|
|
8452
9016
|
max-width: 32rem; /* 512px */
|
|
8453
9017
|
padding: var(--spacing-6);
|
|
8454
9018
|
`,
|
|
8455
|
-
lg:
|
|
9019
|
+
lg: import_react56.css`
|
|
8456
9020
|
width: 100%;
|
|
8457
9021
|
max-width: 48rem; /* 768px */
|
|
8458
9022
|
padding: var(--spacing-6);
|
|
@@ -8461,7 +9025,7 @@ var sizeStyles3 = {
|
|
|
8461
9025
|
padding: var(--spacing-8);
|
|
8462
9026
|
}
|
|
8463
9027
|
`,
|
|
8464
|
-
xl:
|
|
9028
|
+
xl: import_react56.css`
|
|
8465
9029
|
width: 100%;
|
|
8466
9030
|
max-width: 64rem; /* 1024px */
|
|
8467
9031
|
padding: var(--spacing-6);
|
|
@@ -8470,7 +9034,7 @@ var sizeStyles3 = {
|
|
|
8470
9034
|
padding: var(--spacing-8);
|
|
8471
9035
|
}
|
|
8472
9036
|
`,
|
|
8473
|
-
full:
|
|
9037
|
+
full: import_react56.css`
|
|
8474
9038
|
width: calc(100vw - var(--spacing-8));
|
|
8475
9039
|
height: calc(100dvh - var(--spacing-8));
|
|
8476
9040
|
max-width: none;
|
|
@@ -8479,13 +9043,13 @@ var sizeStyles3 = {
|
|
|
8479
9043
|
border-radius: var(--radius-md, 8px);
|
|
8480
9044
|
`
|
|
8481
9045
|
};
|
|
8482
|
-
var closeButtonStyles2 =
|
|
9046
|
+
var closeButtonStyles2 = import_react56.css`
|
|
8483
9047
|
position: absolute;
|
|
8484
9048
|
top: var(--spacing-4);
|
|
8485
9049
|
right: var(--spacing-4);
|
|
8486
9050
|
z-index: 1;
|
|
8487
9051
|
`;
|
|
8488
|
-
var closeButtonFullStyles =
|
|
9052
|
+
var closeButtonFullStyles = import_react56.css`
|
|
8489
9053
|
top: var(--spacing-3);
|
|
8490
9054
|
right: var(--spacing-3);
|
|
8491
9055
|
background-color: rgba(255, 255, 255, 0.9);
|
|
@@ -8498,7 +9062,7 @@ var closeButtonFullStyles = import_react55.css`
|
|
|
8498
9062
|
`;
|
|
8499
9063
|
|
|
8500
9064
|
// src/Modal/Modal.tsx
|
|
8501
|
-
var
|
|
9065
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
8502
9066
|
var Modal = ({
|
|
8503
9067
|
id,
|
|
8504
9068
|
isOpen,
|
|
@@ -8517,10 +9081,10 @@ var Modal = ({
|
|
|
8517
9081
|
ariaLabel,
|
|
8518
9082
|
ariaDescribedBy
|
|
8519
9083
|
}) => {
|
|
8520
|
-
const containerRef = (0,
|
|
8521
|
-
const previousScrollY = (0,
|
|
8522
|
-
const previousActiveElement = (0,
|
|
8523
|
-
const handleKeyDown = (0,
|
|
9084
|
+
const containerRef = (0, import_react57.useRef)(null);
|
|
9085
|
+
const previousScrollY = (0, import_react57.useRef)(0);
|
|
9086
|
+
const previousActiveElement = (0, import_react57.useRef)(null);
|
|
9087
|
+
const handleKeyDown = (0, import_react57.useCallback)(
|
|
8524
9088
|
(event) => {
|
|
8525
9089
|
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
8526
9090
|
onClose(event);
|
|
@@ -8528,7 +9092,7 @@ var Modal = ({
|
|
|
8528
9092
|
},
|
|
8529
9093
|
[closeOnEscape, onClose]
|
|
8530
9094
|
);
|
|
8531
|
-
(0,
|
|
9095
|
+
(0, import_react57.useEffect)(() => {
|
|
8532
9096
|
if (isOpen) {
|
|
8533
9097
|
previousScrollY.current = window.scrollY;
|
|
8534
9098
|
previousActiveElement.current = document.activeElement;
|
|
@@ -8558,7 +9122,7 @@ var Modal = ({
|
|
|
8558
9122
|
document.body.style.top = "";
|
|
8559
9123
|
};
|
|
8560
9124
|
}, [isOpen, handleKeyDown]);
|
|
8561
|
-
const handleClose = (0,
|
|
9125
|
+
const handleClose = (0, import_react57.useCallback)(
|
|
8562
9126
|
(event) => {
|
|
8563
9127
|
if (onClose) {
|
|
8564
9128
|
onClose(event);
|
|
@@ -8566,7 +9130,7 @@ var Modal = ({
|
|
|
8566
9130
|
},
|
|
8567
9131
|
[onClose]
|
|
8568
9132
|
);
|
|
8569
|
-
const handleBackdropClick = (0,
|
|
9133
|
+
const handleBackdropClick = (0, import_react57.useCallback)(
|
|
8570
9134
|
(event) => {
|
|
8571
9135
|
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
8572
9136
|
return;
|
|
@@ -8581,7 +9145,7 @@ var Modal = ({
|
|
|
8581
9145
|
if (typeof document === "undefined") {
|
|
8582
9146
|
return null;
|
|
8583
9147
|
}
|
|
8584
|
-
const closeButton = showCloseButton && /* @__PURE__ */ (0,
|
|
9148
|
+
const closeButton = showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
8585
9149
|
Button_default,
|
|
8586
9150
|
{
|
|
8587
9151
|
onClick: handleClose,
|
|
@@ -8594,7 +9158,7 @@ var Modal = ({
|
|
|
8594
9158
|
"aria-label": "Close modal",
|
|
8595
9159
|
variant: "text",
|
|
8596
9160
|
size: "xs",
|
|
8597
|
-
children: /* @__PURE__ */ (0,
|
|
9161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
|
|
8598
9162
|
Box_default,
|
|
8599
9163
|
{
|
|
8600
9164
|
as: "span",
|
|
@@ -8602,15 +9166,15 @@ var Modal = ({
|
|
|
8602
9166
|
alignItems: "center",
|
|
8603
9167
|
gap: "var(--spacing-2)",
|
|
8604
9168
|
children: [
|
|
8605
|
-
/* @__PURE__ */ (0,
|
|
8606
|
-
/* @__PURE__ */ (0,
|
|
9169
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon_default, { variant: closeButtonIcon, size: "medium" }),
|
|
9170
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("span", { children: "Close" })
|
|
8607
9171
|
]
|
|
8608
9172
|
}
|
|
8609
9173
|
)
|
|
8610
9174
|
}
|
|
8611
9175
|
);
|
|
8612
9176
|
return import_react_dom4.default.createPortal(
|
|
8613
|
-
/* @__PURE__ */ (0,
|
|
9177
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
8614
9178
|
Box_default,
|
|
8615
9179
|
{
|
|
8616
9180
|
display: "flex",
|
|
@@ -8625,7 +9189,7 @@ var Modal = ({
|
|
|
8625
9189
|
className,
|
|
8626
9190
|
role: "presentation",
|
|
8627
9191
|
"data-testid": `modal-${id}`,
|
|
8628
|
-
children: /* @__PURE__ */ (0,
|
|
9192
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
8629
9193
|
Box_default,
|
|
8630
9194
|
{
|
|
8631
9195
|
display: "flex",
|
|
@@ -8639,7 +9203,7 @@ var Modal = ({
|
|
|
8639
9203
|
onKeyDown: (e) => e.key === "Escape" && handleClose(e),
|
|
8640
9204
|
role: "presentation",
|
|
8641
9205
|
"data-testid": `modal-backdrop-${id}`,
|
|
8642
|
-
children: /* @__PURE__ */ (0,
|
|
9206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
|
|
8643
9207
|
Box_default,
|
|
8644
9208
|
{
|
|
8645
9209
|
ref: containerRef,
|
|
@@ -8659,7 +9223,7 @@ var Modal = ({
|
|
|
8659
9223
|
tabIndex: -1,
|
|
8660
9224
|
children: [
|
|
8661
9225
|
closeButton,
|
|
8662
|
-
/* @__PURE__ */ (0,
|
|
9226
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Box_default, { flex: "1", overflow: "auto", css: customContentStyles, children })
|
|
8663
9227
|
]
|
|
8664
9228
|
}
|
|
8665
9229
|
)
|
|
@@ -8674,11 +9238,11 @@ Modal.displayName = "Modal";
|
|
|
8674
9238
|
var Modal_default = Modal;
|
|
8675
9239
|
|
|
8676
9240
|
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
8677
|
-
var
|
|
8678
|
-
var galleryBackgroundStyles =
|
|
9241
|
+
var import_react58 = require("@emotion/react");
|
|
9242
|
+
var galleryBackgroundStyles = import_react58.css`
|
|
8679
9243
|
background-color: var(--color-base-black, #000000);
|
|
8680
9244
|
`;
|
|
8681
|
-
var imageStyles2 =
|
|
9245
|
+
var imageStyles2 = import_react58.css`
|
|
8682
9246
|
max-width: 100%;
|
|
8683
9247
|
max-height: 100%;
|
|
8684
9248
|
width: auto;
|
|
@@ -8690,14 +9254,14 @@ var imageStyles2 = import_react57.css`
|
|
|
8690
9254
|
max-height: calc(100vh - var(--spacing-32));
|
|
8691
9255
|
}
|
|
8692
9256
|
`;
|
|
8693
|
-
var counterStyles =
|
|
9257
|
+
var counterStyles = import_react58.css`
|
|
8694
9258
|
transform: translateX(-50%);
|
|
8695
9259
|
color: var(--color-base-white, #ffffff);
|
|
8696
9260
|
background-color: rgba(0, 0, 0, 0.5);
|
|
8697
9261
|
padding: var(--spacing-2) var(--spacing-4);
|
|
8698
9262
|
border-radius: var(--radius-full, 9999px);
|
|
8699
9263
|
`;
|
|
8700
|
-
var captionStyles =
|
|
9264
|
+
var captionStyles = import_react58.css`
|
|
8701
9265
|
transform: translateX(-50%);
|
|
8702
9266
|
color: var(--color-base-white, #ffffff);
|
|
8703
9267
|
text-align: center;
|
|
@@ -8706,7 +9270,7 @@ var captionStyles = import_react57.css`
|
|
|
8706
9270
|
border-radius: var(--radius-md, 8px);
|
|
8707
9271
|
max-width: 80%;
|
|
8708
9272
|
`;
|
|
8709
|
-
var navigationButtonStyles =
|
|
9273
|
+
var navigationButtonStyles = import_react58.css`
|
|
8710
9274
|
position: absolute;
|
|
8711
9275
|
top: 50%;
|
|
8712
9276
|
transform: translateY(-50%);
|
|
@@ -8737,18 +9301,18 @@ var navigationButtonStyles = import_react57.css`
|
|
|
8737
9301
|
outline-offset: 2px;
|
|
8738
9302
|
}
|
|
8739
9303
|
`;
|
|
8740
|
-
var prevButtonStyles =
|
|
9304
|
+
var prevButtonStyles = import_react58.css`
|
|
8741
9305
|
${navigationButtonStyles}
|
|
8742
9306
|
left: var(--spacing-4);
|
|
8743
9307
|
`;
|
|
8744
|
-
var nextButtonStyles =
|
|
9308
|
+
var nextButtonStyles = import_react58.css`
|
|
8745
9309
|
${navigationButtonStyles}
|
|
8746
9310
|
right: var(--spacing-4);
|
|
8747
9311
|
`;
|
|
8748
|
-
var dotsContainerPositionStyles =
|
|
9312
|
+
var dotsContainerPositionStyles = import_react58.css`
|
|
8749
9313
|
transform: translateX(-50%);
|
|
8750
9314
|
`;
|
|
8751
|
-
var dotStyles =
|
|
9315
|
+
var dotStyles = import_react58.css`
|
|
8752
9316
|
width: var(--spacing-2);
|
|
8753
9317
|
height: var(--spacing-2);
|
|
8754
9318
|
border-radius: var(--radius-round, 50%);
|
|
@@ -8763,11 +9327,11 @@ var dotStyles = import_react57.css`
|
|
|
8763
9327
|
transform: scale(1.2);
|
|
8764
9328
|
}
|
|
8765
9329
|
`;
|
|
8766
|
-
var dotActiveStyles =
|
|
9330
|
+
var dotActiveStyles = import_react58.css`
|
|
8767
9331
|
background-color: var(--color-base-white, #ffffff);
|
|
8768
9332
|
transform: scale(1.2);
|
|
8769
9333
|
`;
|
|
8770
|
-
var closeButtonOverrideStyles =
|
|
9334
|
+
var closeButtonOverrideStyles = import_react58.css`
|
|
8771
9335
|
top: var(--spacing-4);
|
|
8772
9336
|
right: var(--spacing-4);
|
|
8773
9337
|
z-index: 20;
|
|
@@ -8779,23 +9343,23 @@ var closeButtonOverrideStyles = import_react57.css`
|
|
|
8779
9343
|
background-color: var(--color-base-white, #ffffff);
|
|
8780
9344
|
}
|
|
8781
9345
|
`;
|
|
8782
|
-
var scrollLayerOverrideStyles =
|
|
9346
|
+
var scrollLayerOverrideStyles = import_react58.css`
|
|
8783
9347
|
padding: 0;
|
|
8784
9348
|
background-color: rgba(0, 0, 0, 0.95);
|
|
8785
9349
|
`;
|
|
8786
|
-
var containerOverrideStyles =
|
|
9350
|
+
var containerOverrideStyles = import_react58.css`
|
|
8787
9351
|
background-color: transparent;
|
|
8788
9352
|
box-shadow: none;
|
|
8789
9353
|
border-radius: 0;
|
|
8790
9354
|
max-height: 100dvh;
|
|
8791
9355
|
`;
|
|
8792
|
-
var contentOverrideStyles =
|
|
9356
|
+
var contentOverrideStyles = import_react58.css`
|
|
8793
9357
|
height: 100%;
|
|
8794
9358
|
padding: 0;
|
|
8795
9359
|
`;
|
|
8796
9360
|
|
|
8797
9361
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8798
|
-
var
|
|
9362
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8799
9363
|
var ImageGalleryModal = ({
|
|
8800
9364
|
id,
|
|
8801
9365
|
isOpen,
|
|
@@ -8808,30 +9372,30 @@ var ImageGalleryModal = ({
|
|
|
8808
9372
|
className,
|
|
8809
9373
|
ariaLabel = "Image gallery"
|
|
8810
9374
|
}) => {
|
|
8811
|
-
const [currentIndex, setCurrentIndex] = (0,
|
|
8812
|
-
(0,
|
|
9375
|
+
const [currentIndex, setCurrentIndex] = (0, import_react59.useState)(initialIndex);
|
|
9376
|
+
(0, import_react59.useEffect)(() => {
|
|
8813
9377
|
if (isOpen) {
|
|
8814
9378
|
setCurrentIndex(initialIndex);
|
|
8815
9379
|
}
|
|
8816
9380
|
}, [isOpen, initialIndex]);
|
|
8817
|
-
const handlePrev = (0,
|
|
9381
|
+
const handlePrev = (0, import_react59.useCallback)(
|
|
8818
9382
|
(e) => {
|
|
8819
9383
|
e == null ? void 0 : e.stopPropagation();
|
|
8820
9384
|
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
8821
9385
|
},
|
|
8822
9386
|
[images.length]
|
|
8823
9387
|
);
|
|
8824
|
-
const handleNext = (0,
|
|
9388
|
+
const handleNext = (0, import_react59.useCallback)(
|
|
8825
9389
|
(e) => {
|
|
8826
9390
|
e == null ? void 0 : e.stopPropagation();
|
|
8827
9391
|
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
8828
9392
|
},
|
|
8829
9393
|
[images.length]
|
|
8830
9394
|
);
|
|
8831
|
-
const handleGoTo = (0,
|
|
9395
|
+
const handleGoTo = (0, import_react59.useCallback)((index) => {
|
|
8832
9396
|
setCurrentIndex(index);
|
|
8833
9397
|
}, []);
|
|
8834
|
-
(0,
|
|
9398
|
+
(0, import_react59.useEffect)(() => {
|
|
8835
9399
|
if (!isOpen)
|
|
8836
9400
|
return;
|
|
8837
9401
|
const handleKeyDown = (e) => {
|
|
@@ -8848,7 +9412,7 @@ var ImageGalleryModal = ({
|
|
|
8848
9412
|
}, [isOpen, handlePrev, handleNext]);
|
|
8849
9413
|
const currentImage = images[currentIndex];
|
|
8850
9414
|
const hasMultipleImages = images.length > 1;
|
|
8851
|
-
return /* @__PURE__ */ (0,
|
|
9415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8852
9416
|
Modal_default,
|
|
8853
9417
|
{
|
|
8854
9418
|
id: `image-gallery-${id}`,
|
|
@@ -8864,7 +9428,7 @@ var ImageGalleryModal = ({
|
|
|
8864
9428
|
contentStyles: contentOverrideStyles,
|
|
8865
9429
|
className,
|
|
8866
9430
|
ariaLabel,
|
|
8867
|
-
children: /* @__PURE__ */ (0,
|
|
9431
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8868
9432
|
Box_default,
|
|
8869
9433
|
{
|
|
8870
9434
|
display: "flex",
|
|
@@ -8874,7 +9438,7 @@ var ImageGalleryModal = ({
|
|
|
8874
9438
|
position: "relative",
|
|
8875
9439
|
css: galleryBackgroundStyles,
|
|
8876
9440
|
children: [
|
|
8877
|
-
showCounter && hasMultipleImages && /* @__PURE__ */ (0,
|
|
9441
|
+
showCounter && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8878
9442
|
Box_default,
|
|
8879
9443
|
{
|
|
8880
9444
|
position: "absolute",
|
|
@@ -8882,14 +9446,14 @@ var ImageGalleryModal = ({
|
|
|
8882
9446
|
left: "50%",
|
|
8883
9447
|
zIndex: 10,
|
|
8884
9448
|
css: counterStyles,
|
|
8885
|
-
children: /* @__PURE__ */ (0,
|
|
9449
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Text_default, { size: "sm", color: "inherit", children: [
|
|
8886
9450
|
currentIndex + 1,
|
|
8887
9451
|
" / ",
|
|
8888
9452
|
images.length
|
|
8889
9453
|
] })
|
|
8890
9454
|
}
|
|
8891
9455
|
),
|
|
8892
|
-
/* @__PURE__ */ (0,
|
|
9456
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8893
9457
|
Box_default,
|
|
8894
9458
|
{
|
|
8895
9459
|
display: "flex",
|
|
@@ -8899,17 +9463,17 @@ var ImageGalleryModal = ({
|
|
|
8899
9463
|
overflow: "hidden",
|
|
8900
9464
|
position: "relative",
|
|
8901
9465
|
children: [
|
|
8902
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
9466
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8903
9467
|
"button",
|
|
8904
9468
|
{
|
|
8905
9469
|
type: "button",
|
|
8906
9470
|
onClick: handlePrev,
|
|
8907
9471
|
css: prevButtonStyles,
|
|
8908
9472
|
"aria-label": "Previous image",
|
|
8909
|
-
children: /* @__PURE__ */ (0,
|
|
9473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant: "AngleLeft", size: "medium" })
|
|
8910
9474
|
}
|
|
8911
9475
|
),
|
|
8912
|
-
/* @__PURE__ */ (0,
|
|
9476
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8913
9477
|
Box_default,
|
|
8914
9478
|
{
|
|
8915
9479
|
display: "flex",
|
|
@@ -8918,7 +9482,7 @@ var ImageGalleryModal = ({
|
|
|
8918
9482
|
width: "100%",
|
|
8919
9483
|
height: "100%",
|
|
8920
9484
|
p: "var(--spacing-4)",
|
|
8921
|
-
children: currentImage && /* @__PURE__ */ (0,
|
|
9485
|
+
children: currentImage && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8922
9486
|
"img",
|
|
8923
9487
|
{
|
|
8924
9488
|
src: currentImage.src,
|
|
@@ -8928,20 +9492,20 @@ var ImageGalleryModal = ({
|
|
|
8928
9492
|
)
|
|
8929
9493
|
}
|
|
8930
9494
|
),
|
|
8931
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
9495
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8932
9496
|
"button",
|
|
8933
9497
|
{
|
|
8934
9498
|
type: "button",
|
|
8935
9499
|
onClick: handleNext,
|
|
8936
9500
|
css: nextButtonStyles,
|
|
8937
9501
|
"aria-label": "Next image",
|
|
8938
|
-
children: /* @__PURE__ */ (0,
|
|
9502
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant: "AngleRight", size: "medium" })
|
|
8939
9503
|
}
|
|
8940
9504
|
)
|
|
8941
9505
|
]
|
|
8942
9506
|
}
|
|
8943
9507
|
),
|
|
8944
|
-
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0,
|
|
9508
|
+
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8945
9509
|
Box_default,
|
|
8946
9510
|
{
|
|
8947
9511
|
position: "absolute",
|
|
@@ -8949,10 +9513,10 @@ var ImageGalleryModal = ({
|
|
|
8949
9513
|
left: "50%",
|
|
8950
9514
|
zIndex: 10,
|
|
8951
9515
|
css: captionStyles,
|
|
8952
|
-
children: /* @__PURE__ */ (0,
|
|
9516
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "sm", color: "inherit", children: currentImage.caption })
|
|
8953
9517
|
}
|
|
8954
9518
|
),
|
|
8955
|
-
showDots && hasMultipleImages && /* @__PURE__ */ (0,
|
|
9519
|
+
showDots && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8956
9520
|
Box_default,
|
|
8957
9521
|
{
|
|
8958
9522
|
display: "flex",
|
|
@@ -8962,7 +9526,7 @@ var ImageGalleryModal = ({
|
|
|
8962
9526
|
gap: "var(--spacing-2)",
|
|
8963
9527
|
zIndex: 10,
|
|
8964
9528
|
css: dotsContainerPositionStyles,
|
|
8965
|
-
children: images.map((_, index) => /* @__PURE__ */ (0,
|
|
9529
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8966
9530
|
"button",
|
|
8967
9531
|
{
|
|
8968
9532
|
type: "button",
|
|
@@ -8988,9 +9552,9 @@ ImageGalleryModal.displayName = "ImageGalleryModal";
|
|
|
8988
9552
|
var ImageGalleryModal_default = ImageGalleryModal;
|
|
8989
9553
|
|
|
8990
9554
|
// src/InfoBox/InfoBox.tsx
|
|
8991
|
-
var
|
|
9555
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8992
9556
|
var InfoBox = ({ heading, features, className }) => {
|
|
8993
|
-
return /* @__PURE__ */ (0,
|
|
9557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8994
9558
|
Box_default,
|
|
8995
9559
|
{
|
|
8996
9560
|
display: "flex",
|
|
@@ -8999,8 +9563,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8999
9563
|
className,
|
|
9000
9564
|
color: "var(--text-primary)",
|
|
9001
9565
|
children: [
|
|
9002
|
-
/* @__PURE__ */ (0,
|
|
9003
|
-
/* @__PURE__ */ (0,
|
|
9566
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
9567
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
9004
9568
|
Box_default,
|
|
9005
9569
|
{
|
|
9006
9570
|
display: "flex",
|
|
@@ -9010,7 +9574,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
9010
9574
|
borderRadius: "var(--radius-lg)",
|
|
9011
9575
|
bg: "var(--surface-neutral)",
|
|
9012
9576
|
className,
|
|
9013
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
9577
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
9014
9578
|
FeatureList_default,
|
|
9015
9579
|
{
|
|
9016
9580
|
heading: section.heading,
|
|
@@ -9027,16 +9591,16 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
9027
9591
|
var InfoBox_default = InfoBox;
|
|
9028
9592
|
|
|
9029
9593
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
9030
|
-
var
|
|
9594
|
+
var import_react63 = require("react");
|
|
9031
9595
|
|
|
9032
9596
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
9033
|
-
var
|
|
9034
|
-
var progressStyles =
|
|
9597
|
+
var import_react60 = require("@emotion/react");
|
|
9598
|
+
var progressStyles = import_react60.css`
|
|
9035
9599
|
transition: width 0.3s ease-in-out;
|
|
9036
9600
|
`;
|
|
9037
9601
|
|
|
9038
9602
|
// src/ProgressBar/ProgressBar.tsx
|
|
9039
|
-
var
|
|
9603
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
9040
9604
|
var ProgressBar = ({
|
|
9041
9605
|
progress,
|
|
9042
9606
|
className,
|
|
@@ -9044,7 +9608,7 @@ var ProgressBar = ({
|
|
|
9044
9608
|
height = "10px"
|
|
9045
9609
|
}) => {
|
|
9046
9610
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
9047
|
-
return /* @__PURE__ */ (0,
|
|
9611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
9048
9612
|
Box_default,
|
|
9049
9613
|
{
|
|
9050
9614
|
width: "100%",
|
|
@@ -9054,7 +9618,7 @@ var ProgressBar = ({
|
|
|
9054
9618
|
overflow: "hidden",
|
|
9055
9619
|
position: "relative",
|
|
9056
9620
|
className,
|
|
9057
|
-
children: /* @__PURE__ */ (0,
|
|
9621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
9058
9622
|
Box_default,
|
|
9059
9623
|
{
|
|
9060
9624
|
height: "100%",
|
|
@@ -9075,17 +9639,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
9075
9639
|
var ProgressBar_default = ProgressBar;
|
|
9076
9640
|
|
|
9077
9641
|
// src/Timer/Timer.tsx
|
|
9078
|
-
var
|
|
9642
|
+
var import_react62 = require("react");
|
|
9079
9643
|
|
|
9080
9644
|
// src/Timer/Timer.styles.ts
|
|
9081
|
-
var
|
|
9082
|
-
var rootStyles2 =
|
|
9645
|
+
var import_react61 = require("@emotion/react");
|
|
9646
|
+
var rootStyles2 = import_react61.css`
|
|
9083
9647
|
display: inline-flex;
|
|
9084
9648
|
font-variant-numeric: tabular-nums;
|
|
9085
9649
|
`;
|
|
9086
9650
|
|
|
9087
9651
|
// src/Timer/Timer.tsx
|
|
9088
|
-
var
|
|
9652
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
9089
9653
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
9090
9654
|
const now = Math.floor(Date.now() / 1e3);
|
|
9091
9655
|
const diff = expirationTimestamp - now;
|
|
@@ -9113,10 +9677,10 @@ var Timer = ({
|
|
|
9113
9677
|
fontWeight = "bold",
|
|
9114
9678
|
showSeconds = false
|
|
9115
9679
|
}) => {
|
|
9116
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
9680
|
+
const [timeLeft, setTimeLeft] = (0, import_react62.useState)(
|
|
9117
9681
|
() => calculateTimeLeft(expirationTimestamp)
|
|
9118
9682
|
);
|
|
9119
|
-
const updateTime = (0,
|
|
9683
|
+
const updateTime = (0, import_react62.useCallback)(() => {
|
|
9120
9684
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
9121
9685
|
setTimeLeft(newTimeLeft);
|
|
9122
9686
|
if (newTimeLeft) {
|
|
@@ -9126,7 +9690,7 @@ var Timer = ({
|
|
|
9126
9690
|
}
|
|
9127
9691
|
return newTimeLeft;
|
|
9128
9692
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
9129
|
-
(0,
|
|
9693
|
+
(0, import_react62.useEffect)(() => {
|
|
9130
9694
|
const initialTime = updateTime();
|
|
9131
9695
|
if (!initialTime)
|
|
9132
9696
|
return;
|
|
@@ -9141,8 +9705,8 @@ var Timer = ({
|
|
|
9141
9705
|
if (!timeLeft) {
|
|
9142
9706
|
return null;
|
|
9143
9707
|
}
|
|
9144
|
-
return /* @__PURE__ */ (0,
|
|
9145
|
-
/* @__PURE__ */ (0,
|
|
9708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
9709
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
9146
9710
|
timeLeft.days,
|
|
9147
9711
|
"d : ",
|
|
9148
9712
|
timeLeft.hours,
|
|
@@ -9150,7 +9714,7 @@ var Timer = ({
|
|
|
9150
9714
|
timeLeft.minutes,
|
|
9151
9715
|
"m"
|
|
9152
9716
|
] }),
|
|
9153
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
9717
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
9154
9718
|
"\xA0: ",
|
|
9155
9719
|
timeLeft.seconds,
|
|
9156
9720
|
"s"
|
|
@@ -9161,7 +9725,7 @@ Timer.displayName = "Timer";
|
|
|
9161
9725
|
var Timer_default = Timer;
|
|
9162
9726
|
|
|
9163
9727
|
// src/StarRating/StarRating.tsx
|
|
9164
|
-
var
|
|
9728
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
9165
9729
|
var starSize = {
|
|
9166
9730
|
sm: {
|
|
9167
9731
|
size: "medium",
|
|
@@ -9209,10 +9773,10 @@ var StarRating = ({
|
|
|
9209
9773
|
fill = "var(--color-neutral-100)";
|
|
9210
9774
|
}
|
|
9211
9775
|
stars.push(
|
|
9212
|
-
/* @__PURE__ */ (0,
|
|
9776
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
9213
9777
|
);
|
|
9214
9778
|
}
|
|
9215
|
-
return /* @__PURE__ */ (0,
|
|
9779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
9216
9780
|
Box_default,
|
|
9217
9781
|
{
|
|
9218
9782
|
className,
|
|
@@ -9226,7 +9790,7 @@ var StarRating = ({
|
|
|
9226
9790
|
var StarRating_default = StarRating;
|
|
9227
9791
|
|
|
9228
9792
|
// src/UserCard/UserCard.tsx
|
|
9229
|
-
var
|
|
9793
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
9230
9794
|
var UserCard = ({
|
|
9231
9795
|
avatarSrc,
|
|
9232
9796
|
title,
|
|
@@ -9236,7 +9800,7 @@ var UserCard = ({
|
|
|
9236
9800
|
isVerified = false,
|
|
9237
9801
|
className
|
|
9238
9802
|
}) => {
|
|
9239
|
-
return /* @__PURE__ */ (0,
|
|
9803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
9240
9804
|
Box_default,
|
|
9241
9805
|
{
|
|
9242
9806
|
display: "flex",
|
|
@@ -9245,8 +9809,8 @@ var UserCard = ({
|
|
|
9245
9809
|
gap: "var(--spacing-4)",
|
|
9246
9810
|
className,
|
|
9247
9811
|
children: [
|
|
9248
|
-
/* @__PURE__ */ (0,
|
|
9249
|
-
/* @__PURE__ */ (0,
|
|
9812
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
9813
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9250
9814
|
Avatar_default,
|
|
9251
9815
|
{
|
|
9252
9816
|
type: avatarSrc ? "image" : "text",
|
|
@@ -9256,13 +9820,13 @@ var UserCard = ({
|
|
|
9256
9820
|
alt: `${title}'s avatar`
|
|
9257
9821
|
}
|
|
9258
9822
|
),
|
|
9259
|
-
/* @__PURE__ */ (0,
|
|
9260
|
-
/* @__PURE__ */ (0,
|
|
9261
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
9262
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
9823
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
9824
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
9825
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
9826
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StarRating_default, { rating })
|
|
9263
9827
|
] })
|
|
9264
9828
|
] }),
|
|
9265
|
-
isVerified && /* @__PURE__ */ (0,
|
|
9829
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
9266
9830
|
Box_default,
|
|
9267
9831
|
{
|
|
9268
9832
|
display: "flex",
|
|
@@ -9271,8 +9835,8 @@ var UserCard = ({
|
|
|
9271
9835
|
gap: "var(--spacing-1)",
|
|
9272
9836
|
flexShrink: 0,
|
|
9273
9837
|
children: [
|
|
9274
|
-
/* @__PURE__ */ (0,
|
|
9275
|
-
/* @__PURE__ */ (0,
|
|
9838
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
9839
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
9276
9840
|
]
|
|
9277
9841
|
}
|
|
9278
9842
|
)
|
|
@@ -9329,7 +9893,7 @@ var formatHostingDuration = (duration) => {
|
|
|
9329
9893
|
};
|
|
9330
9894
|
|
|
9331
9895
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
9332
|
-
var
|
|
9896
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
9333
9897
|
var ProfileSubtitle = ({
|
|
9334
9898
|
hostingSince,
|
|
9335
9899
|
featureReviewItem
|
|
@@ -9337,15 +9901,15 @@ var ProfileSubtitle = ({
|
|
|
9337
9901
|
const duration = hostingSince ? calculateHostingDuration(hostingSince) : null;
|
|
9338
9902
|
const formattedDuration = formatHostingDuration(duration);
|
|
9339
9903
|
const displayText = formattedDuration ? `${formattedDuration} Hosting` : null;
|
|
9340
|
-
return /* @__PURE__ */ (0,
|
|
9341
|
-
displayText && /* @__PURE__ */ (0,
|
|
9342
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
9904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
9905
|
+
displayText && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Text_default, { size: "sm", color: "text-secondary", children: displayText }),
|
|
9906
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
9343
9907
|
] });
|
|
9344
9908
|
};
|
|
9345
9909
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
9346
9910
|
|
|
9347
9911
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
9348
|
-
var
|
|
9912
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
9349
9913
|
var LandownerProfile = ({
|
|
9350
9914
|
heading,
|
|
9351
9915
|
avatarSrc,
|
|
@@ -9373,7 +9937,7 @@ var LandownerProfile = ({
|
|
|
9373
9937
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
9374
9938
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
9375
9939
|
};
|
|
9376
|
-
const [progress, setProgress] = (0,
|
|
9940
|
+
const [progress, setProgress] = (0, import_react63.useState)(0);
|
|
9377
9941
|
const handleTimeUpdate = (timeLeft) => {
|
|
9378
9942
|
setProgress(calculateProgress(timeLeft));
|
|
9379
9943
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -9386,7 +9950,7 @@ var LandownerProfile = ({
|
|
|
9386
9950
|
iconVariant: "Bolt",
|
|
9387
9951
|
label: `Response Time: ${responseTime}`
|
|
9388
9952
|
} : void 0;
|
|
9389
|
-
return /* @__PURE__ */ (0,
|
|
9953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9390
9954
|
Box_default,
|
|
9391
9955
|
{
|
|
9392
9956
|
display: "flex",
|
|
@@ -9395,8 +9959,8 @@ var LandownerProfile = ({
|
|
|
9395
9959
|
color: "var(--text-primary)",
|
|
9396
9960
|
className,
|
|
9397
9961
|
children: [
|
|
9398
|
-
heading && /* @__PURE__ */ (0,
|
|
9399
|
-
/* @__PURE__ */ (0,
|
|
9962
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
9963
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9400
9964
|
Box_default,
|
|
9401
9965
|
{
|
|
9402
9966
|
display: "flex",
|
|
@@ -9406,12 +9970,12 @@ var LandownerProfile = ({
|
|
|
9406
9970
|
p: "var(--spacing-4)",
|
|
9407
9971
|
borderRadius: "var(--radius-lg)",
|
|
9408
9972
|
children: [
|
|
9409
|
-
/* @__PURE__ */ (0,
|
|
9973
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9410
9974
|
UserCard_default,
|
|
9411
9975
|
{
|
|
9412
9976
|
avatarSrc,
|
|
9413
9977
|
title: name,
|
|
9414
|
-
subtitle: /* @__PURE__ */ (0,
|
|
9978
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9415
9979
|
ProfileSubtitle_default,
|
|
9416
9980
|
{
|
|
9417
9981
|
hostingSince,
|
|
@@ -9422,9 +9986,9 @@ var LandownerProfile = ({
|
|
|
9422
9986
|
isVerified
|
|
9423
9987
|
}
|
|
9424
9988
|
),
|
|
9425
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
9426
|
-
/* @__PURE__ */ (0,
|
|
9427
|
-
/* @__PURE__ */ (0,
|
|
9989
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
9990
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
9991
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9428
9992
|
Text_default,
|
|
9429
9993
|
{
|
|
9430
9994
|
dangerouslySetInnerHTML: {
|
|
@@ -9433,14 +9997,14 @@ var LandownerProfile = ({
|
|
|
9433
9997
|
}
|
|
9434
9998
|
)
|
|
9435
9999
|
] }),
|
|
9436
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
9437
|
-
/* @__PURE__ */ (0,
|
|
9438
|
-
/* @__PURE__ */ (0,
|
|
9439
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
9440
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
10000
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
10001
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
10002
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
10003
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
10004
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
9441
10005
|
] })
|
|
9442
10006
|
] }),
|
|
9443
|
-
/* @__PURE__ */ (0,
|
|
10007
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9444
10008
|
Button_default,
|
|
9445
10009
|
{
|
|
9446
10010
|
variant: "secondary",
|
|
@@ -9449,9 +10013,9 @@ var LandownerProfile = ({
|
|
|
9449
10013
|
children: messageButtonText
|
|
9450
10014
|
}
|
|
9451
10015
|
) }),
|
|
9452
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
9453
|
-
/* @__PURE__ */ (0,
|
|
9454
|
-
/* @__PURE__ */ (0,
|
|
10016
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
10017
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(ProgressBar_default, { progress }),
|
|
10018
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9455
10019
|
Box_default,
|
|
9456
10020
|
{
|
|
9457
10021
|
display: "flex",
|
|
@@ -9459,9 +10023,9 @@ var LandownerProfile = ({
|
|
|
9459
10023
|
gap: "var(--spacing-1)",
|
|
9460
10024
|
textAlign: "center",
|
|
9461
10025
|
children: [
|
|
9462
|
-
/* @__PURE__ */ (0,
|
|
9463
|
-
/* @__PURE__ */ (0,
|
|
9464
|
-
/* @__PURE__ */ (0,
|
|
10026
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
10027
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
10028
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9465
10029
|
Timer_default,
|
|
9466
10030
|
{
|
|
9467
10031
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -9483,11 +10047,11 @@ var LandownerProfile = ({
|
|
|
9483
10047
|
var LandownerProfile_default = LandownerProfile;
|
|
9484
10048
|
|
|
9485
10049
|
// src/ListingChat/ListingChat.tsx
|
|
9486
|
-
var
|
|
10050
|
+
var import_react65 = require("react");
|
|
9487
10051
|
|
|
9488
10052
|
// src/ListingChat/ListingChat.styles.ts
|
|
9489
|
-
var
|
|
9490
|
-
var containerStyles4 =
|
|
10053
|
+
var import_react64 = require("@emotion/react");
|
|
10054
|
+
var containerStyles4 = import_react64.css`
|
|
9491
10055
|
display: flex;
|
|
9492
10056
|
flex-direction: column;
|
|
9493
10057
|
gap: var(--spacing-4);
|
|
@@ -9495,12 +10059,12 @@ var containerStyles4 = import_react63.css`
|
|
|
9495
10059
|
border-radius: var(--radius-lg);
|
|
9496
10060
|
background: var(--surface-success);
|
|
9497
10061
|
`;
|
|
9498
|
-
var headerStyles =
|
|
10062
|
+
var headerStyles = import_react64.css`
|
|
9499
10063
|
display: flex;
|
|
9500
10064
|
flex-direction: column;
|
|
9501
10065
|
gap: var(--spacing-2);
|
|
9502
10066
|
`;
|
|
9503
|
-
var chipsContainerStyles =
|
|
10067
|
+
var chipsContainerStyles = import_react64.css`
|
|
9504
10068
|
display: flex;
|
|
9505
10069
|
flex-wrap: wrap;
|
|
9506
10070
|
gap: var(--spacing-4);
|
|
@@ -9513,15 +10077,15 @@ var chipsContainerStyles = import_react63.css`
|
|
|
9513
10077
|
cursor: pointer;
|
|
9514
10078
|
}
|
|
9515
10079
|
`;
|
|
9516
|
-
var textAreaStyles =
|
|
10080
|
+
var textAreaStyles = import_react64.css`
|
|
9517
10081
|
min-height: 62px;
|
|
9518
10082
|
`;
|
|
9519
|
-
var inputWrapperStyles2 =
|
|
10083
|
+
var inputWrapperStyles2 = import_react64.css`
|
|
9520
10084
|
position: relative;
|
|
9521
10085
|
`;
|
|
9522
10086
|
|
|
9523
10087
|
// src/ListingChat/ListingChat.tsx
|
|
9524
|
-
var
|
|
10088
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9525
10089
|
var ListingChat = ({
|
|
9526
10090
|
onSubmit,
|
|
9527
10091
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -9531,15 +10095,15 @@ var ListingChat = ({
|
|
|
9531
10095
|
disabled = false,
|
|
9532
10096
|
...rest
|
|
9533
10097
|
}) => {
|
|
9534
|
-
const [value, setValue] = (0,
|
|
9535
|
-
const handleSubmit = (0,
|
|
10098
|
+
const [value, setValue] = (0, import_react65.useState)("");
|
|
10099
|
+
const handleSubmit = (0, import_react65.useCallback)(() => {
|
|
9536
10100
|
const trimmed = value.trim();
|
|
9537
10101
|
if (!trimmed)
|
|
9538
10102
|
return;
|
|
9539
10103
|
onSubmit(trimmed);
|
|
9540
10104
|
setValue("");
|
|
9541
10105
|
}, [onSubmit, value]);
|
|
9542
|
-
const handleTagClick = (0,
|
|
10106
|
+
const handleTagClick = (0, import_react65.useCallback)(
|
|
9543
10107
|
(tag) => () => {
|
|
9544
10108
|
const trimmed = tag.trim();
|
|
9545
10109
|
if (!trimmed)
|
|
@@ -9548,18 +10112,18 @@ var ListingChat = ({
|
|
|
9548
10112
|
},
|
|
9549
10113
|
[onSubmit]
|
|
9550
10114
|
);
|
|
9551
|
-
return /* @__PURE__ */ (0,
|
|
9552
|
-
/* @__PURE__ */ (0,
|
|
9553
|
-
/* @__PURE__ */ (0,
|
|
9554
|
-
/* @__PURE__ */ (0,
|
|
9555
|
-
/* @__PURE__ */ (0,
|
|
9556
|
-
/* @__PURE__ */ (0,
|
|
9557
|
-
/* @__PURE__ */ (0,
|
|
10115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(Box_default, { css: containerStyles4, className, ...rest, children: [
|
|
10116
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(Box_default, { css: headerStyles, children: [
|
|
10117
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(Box_default, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
10118
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }),
|
|
10119
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
10120
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
10121
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
9558
10122
|
] })
|
|
9559
10123
|
] }),
|
|
9560
|
-
/* @__PURE__ */ (0,
|
|
10124
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Text_default, { size: "md", textWrap: "wrap", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
9561
10125
|
] }),
|
|
9562
|
-
/* @__PURE__ */ (0,
|
|
10126
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9563
10127
|
TextArea,
|
|
9564
10128
|
{
|
|
9565
10129
|
rows: 1,
|
|
@@ -9574,14 +10138,14 @@ var ListingChat = ({
|
|
|
9574
10138
|
css: textAreaStyles
|
|
9575
10139
|
}
|
|
9576
10140
|
) }),
|
|
9577
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
9578
|
-
/* @__PURE__ */ (0,
|
|
9579
|
-
/* @__PURE__ */ (0,
|
|
10141
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
|
|
10142
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
10143
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9580
10144
|
"button",
|
|
9581
10145
|
{
|
|
9582
10146
|
onClick: handleTagClick(tag),
|
|
9583
10147
|
disabled,
|
|
9584
|
-
children: /* @__PURE__ */ (0,
|
|
10148
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(TagChip_default, { children: tag })
|
|
9585
10149
|
},
|
|
9586
10150
|
tag
|
|
9587
10151
|
)) })
|
|
@@ -9591,11 +10155,11 @@ var ListingChat = ({
|
|
|
9591
10155
|
var ListingChat_default = ListingChat;
|
|
9592
10156
|
|
|
9593
10157
|
// src/Logo/Logo.tsx
|
|
9594
|
-
var
|
|
10158
|
+
var import_react66 = require("@emotion/react");
|
|
9595
10159
|
|
|
9596
10160
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
9597
|
-
var
|
|
9598
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
10161
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
10162
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
9599
10163
|
"svg",
|
|
9600
10164
|
{
|
|
9601
10165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9603,14 +10167,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.
|
|
|
9603
10167
|
fill: "none",
|
|
9604
10168
|
...props,
|
|
9605
10169
|
children: [
|
|
9606
|
-
/* @__PURE__ */ (0,
|
|
10170
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9607
10171
|
"path",
|
|
9608
10172
|
{
|
|
9609
10173
|
fill: "#000",
|
|
9610
10174
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9611
10175
|
}
|
|
9612
10176
|
) }),
|
|
9613
|
-
/* @__PURE__ */ (0,
|
|
10177
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9614
10178
|
"path",
|
|
9615
10179
|
{
|
|
9616
10180
|
fill: "#FAD44E",
|
|
@@ -9619,14 +10183,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.
|
|
|
9619
10183
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9620
10184
|
}
|
|
9621
10185
|
),
|
|
9622
|
-
/* @__PURE__ */ (0,
|
|
10186
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9623
10187
|
"path",
|
|
9624
10188
|
{
|
|
9625
10189
|
fill: "#fff",
|
|
9626
10190
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
9627
10191
|
}
|
|
9628
10192
|
),
|
|
9629
|
-
/* @__PURE__ */ (0,
|
|
10193
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
9630
10194
|
"filter",
|
|
9631
10195
|
{
|
|
9632
10196
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -9637,8 +10201,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.
|
|
|
9637
10201
|
colorInterpolationFilters: "sRGB",
|
|
9638
10202
|
filterUnits: "userSpaceOnUse",
|
|
9639
10203
|
children: [
|
|
9640
|
-
/* @__PURE__ */ (0,
|
|
9641
|
-
/* @__PURE__ */ (0,
|
|
10204
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
10205
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9642
10206
|
"feColorMatrix",
|
|
9643
10207
|
{
|
|
9644
10208
|
in: "SourceAlpha",
|
|
@@ -9646,18 +10210,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.
|
|
|
9646
10210
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9647
10211
|
}
|
|
9648
10212
|
),
|
|
9649
|
-
/* @__PURE__ */ (0,
|
|
9650
|
-
/* @__PURE__ */ (0,
|
|
9651
|
-
/* @__PURE__ */ (0,
|
|
9652
|
-
/* @__PURE__ */ (0,
|
|
9653
|
-
/* @__PURE__ */ (0,
|
|
10213
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("feOffset", { dy: 1 }),
|
|
10214
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
10215
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
10216
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
10217
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9654
10218
|
"feBlend",
|
|
9655
10219
|
{
|
|
9656
10220
|
in2: "BackgroundImageFix",
|
|
9657
10221
|
result: "effect1_dropShadow_257_2540"
|
|
9658
10222
|
}
|
|
9659
10223
|
),
|
|
9660
|
-
/* @__PURE__ */ (0,
|
|
10224
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9661
10225
|
"feBlend",
|
|
9662
10226
|
{
|
|
9663
10227
|
in: "SourceGraphic",
|
|
@@ -9674,8 +10238,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.
|
|
|
9674
10238
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
9675
10239
|
|
|
9676
10240
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
9677
|
-
var
|
|
9678
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
10241
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
10242
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9679
10243
|
"svg",
|
|
9680
10244
|
{
|
|
9681
10245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9683,14 +10247,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime256
|
|
|
9683
10247
|
fill: "none",
|
|
9684
10248
|
...props,
|
|
9685
10249
|
children: [
|
|
9686
|
-
/* @__PURE__ */ (0,
|
|
10250
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9687
10251
|
"path",
|
|
9688
10252
|
{
|
|
9689
10253
|
fill: "#000",
|
|
9690
10254
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9691
10255
|
}
|
|
9692
10256
|
) }),
|
|
9693
|
-
/* @__PURE__ */ (0,
|
|
10257
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9694
10258
|
"path",
|
|
9695
10259
|
{
|
|
9696
10260
|
fill: "#FAD44E",
|
|
@@ -9699,14 +10263,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime256
|
|
|
9699
10263
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9700
10264
|
}
|
|
9701
10265
|
),
|
|
9702
|
-
/* @__PURE__ */ (0,
|
|
10266
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9703
10267
|
"path",
|
|
9704
10268
|
{
|
|
9705
10269
|
fill: "#1A202C",
|
|
9706
10270
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
9707
10271
|
}
|
|
9708
10272
|
),
|
|
9709
|
-
/* @__PURE__ */ (0,
|
|
10273
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9710
10274
|
"filter",
|
|
9711
10275
|
{
|
|
9712
10276
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -9717,8 +10281,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime256
|
|
|
9717
10281
|
colorInterpolationFilters: "sRGB",
|
|
9718
10282
|
filterUnits: "userSpaceOnUse",
|
|
9719
10283
|
children: [
|
|
9720
|
-
/* @__PURE__ */ (0,
|
|
9721
|
-
/* @__PURE__ */ (0,
|
|
10284
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
10285
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9722
10286
|
"feColorMatrix",
|
|
9723
10287
|
{
|
|
9724
10288
|
in: "SourceAlpha",
|
|
@@ -9726,18 +10290,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime256
|
|
|
9726
10290
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9727
10291
|
}
|
|
9728
10292
|
),
|
|
9729
|
-
/* @__PURE__ */ (0,
|
|
9730
|
-
/* @__PURE__ */ (0,
|
|
9731
|
-
/* @__PURE__ */ (0,
|
|
9732
|
-
/* @__PURE__ */ (0,
|
|
9733
|
-
/* @__PURE__ */ (0,
|
|
10293
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("feOffset", { dy: 1 }),
|
|
10294
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
10295
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
10296
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
10297
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9734
10298
|
"feBlend",
|
|
9735
10299
|
{
|
|
9736
10300
|
in2: "BackgroundImageFix",
|
|
9737
10301
|
result: "effect1_dropShadow_257_2538"
|
|
9738
10302
|
}
|
|
9739
10303
|
),
|
|
9740
|
-
/* @__PURE__ */ (0,
|
|
10304
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9741
10305
|
"feBlend",
|
|
9742
10306
|
{
|
|
9743
10307
|
in: "SourceGraphic",
|
|
@@ -9754,8 +10318,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime256
|
|
|
9754
10318
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
9755
10319
|
|
|
9756
10320
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
9757
|
-
var
|
|
9758
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
10321
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
10322
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
9759
10323
|
"svg",
|
|
9760
10324
|
{
|
|
9761
10325
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9763,14 +10327,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9763
10327
|
fill: "none",
|
|
9764
10328
|
...props,
|
|
9765
10329
|
children: [
|
|
9766
|
-
/* @__PURE__ */ (0,
|
|
10330
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9767
10331
|
"path",
|
|
9768
10332
|
{
|
|
9769
10333
|
fill: "#E2430C",
|
|
9770
10334
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
9771
10335
|
}
|
|
9772
10336
|
),
|
|
9773
|
-
/* @__PURE__ */ (0,
|
|
10337
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9774
10338
|
"path",
|
|
9775
10339
|
{
|
|
9776
10340
|
fill: "#fff",
|
|
@@ -9783,8 +10347,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9783
10347
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
9784
10348
|
|
|
9785
10349
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
9786
|
-
var
|
|
9787
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
10350
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
10351
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9788
10352
|
"svg",
|
|
9789
10353
|
{
|
|
9790
10354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9792,14 +10356,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9792
10356
|
fill: "none",
|
|
9793
10357
|
...props,
|
|
9794
10358
|
children: [
|
|
9795
|
-
/* @__PURE__ */ (0,
|
|
10359
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9796
10360
|
"path",
|
|
9797
10361
|
{
|
|
9798
10362
|
fill: "#E2430C",
|
|
9799
10363
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
9800
10364
|
}
|
|
9801
10365
|
),
|
|
9802
|
-
/* @__PURE__ */ (0,
|
|
10366
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9803
10367
|
"path",
|
|
9804
10368
|
{
|
|
9805
10369
|
fill: "#000",
|
|
@@ -9812,8 +10376,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9812
10376
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
9813
10377
|
|
|
9814
10378
|
// src/Logo/Logo.tsx
|
|
9815
|
-
var
|
|
9816
|
-
var logoStyles = (size) =>
|
|
10379
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
10380
|
+
var logoStyles = (size) => import_react66.css`
|
|
9817
10381
|
width: ${space[size]};
|
|
9818
10382
|
height: auto;
|
|
9819
10383
|
display: block;
|
|
@@ -9841,18 +10405,18 @@ var Logo = ({
|
|
|
9841
10405
|
return LandtrustStandardLight_default;
|
|
9842
10406
|
};
|
|
9843
10407
|
const LogoComponent = getLogoComponent();
|
|
9844
|
-
return /* @__PURE__ */ (0,
|
|
10408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
9845
10409
|
};
|
|
9846
10410
|
var Logo_default = Logo;
|
|
9847
10411
|
|
|
9848
10412
|
// src/Navigation/Navigation.styles.ts
|
|
9849
|
-
var
|
|
9850
|
-
var navigationStyles =
|
|
10413
|
+
var import_react67 = require("@emotion/react");
|
|
10414
|
+
var navigationStyles = import_react67.css`
|
|
9851
10415
|
width: 100%;
|
|
9852
10416
|
background-color: white;
|
|
9853
10417
|
border-bottom: 1px solid #e5e5e5;
|
|
9854
10418
|
`;
|
|
9855
|
-
var hamburgerButtonStyles =
|
|
10419
|
+
var hamburgerButtonStyles = import_react67.css`
|
|
9856
10420
|
cursor: pointer;
|
|
9857
10421
|
&:focus {
|
|
9858
10422
|
outline: 2px solid #4f46e5;
|
|
@@ -9863,7 +10427,7 @@ var hamburgerButtonStyles = import_react66.css`
|
|
|
9863
10427
|
display: none;
|
|
9864
10428
|
}
|
|
9865
10429
|
`;
|
|
9866
|
-
var centeredLogoStyles =
|
|
10430
|
+
var centeredLogoStyles = import_react67.css`
|
|
9867
10431
|
transform: translate(-50%, -50%);
|
|
9868
10432
|
max-width: 150px;
|
|
9869
10433
|
|
|
@@ -9871,27 +10435,27 @@ var centeredLogoStyles = import_react66.css`
|
|
|
9871
10435
|
display: none;
|
|
9872
10436
|
}
|
|
9873
10437
|
`;
|
|
9874
|
-
var desktopLogoStyles =
|
|
10438
|
+
var desktopLogoStyles = import_react67.css`
|
|
9875
10439
|
display: none;
|
|
9876
10440
|
|
|
9877
10441
|
@media (min-width: 768px) {
|
|
9878
10442
|
display: block;
|
|
9879
10443
|
}
|
|
9880
10444
|
`;
|
|
9881
|
-
var containerStyles5 =
|
|
10445
|
+
var containerStyles5 = import_react67.css`
|
|
9882
10446
|
@media (min-width: 768px) {
|
|
9883
10447
|
justify-content: space-between;
|
|
9884
10448
|
position: static;
|
|
9885
10449
|
}
|
|
9886
10450
|
`;
|
|
9887
|
-
var logoStyles2 =
|
|
10451
|
+
var logoStyles2 = import_react67.css`
|
|
9888
10452
|
width: 100%;
|
|
9889
10453
|
|
|
9890
10454
|
@media (min-width: 768px) {
|
|
9891
10455
|
width: initial;
|
|
9892
10456
|
}
|
|
9893
10457
|
`;
|
|
9894
|
-
var desktopNavStyles =
|
|
10458
|
+
var desktopNavStyles = import_react67.css`
|
|
9895
10459
|
display: none;
|
|
9896
10460
|
|
|
9897
10461
|
@media (min-width: 768px) {
|
|
@@ -9900,7 +10464,7 @@ var desktopNavStyles = import_react66.css`
|
|
|
9900
10464
|
gap: 32px;
|
|
9901
10465
|
}
|
|
9902
10466
|
`;
|
|
9903
|
-
var navLinksStyles =
|
|
10467
|
+
var navLinksStyles = import_react67.css`
|
|
9904
10468
|
display: flex;
|
|
9905
10469
|
align-items: center;
|
|
9906
10470
|
gap: 24px;
|
|
@@ -9908,7 +10472,7 @@ var navLinksStyles = import_react66.css`
|
|
|
9908
10472
|
margin: 0;
|
|
9909
10473
|
padding: 0;
|
|
9910
10474
|
`;
|
|
9911
|
-
var navLinkStyles =
|
|
10475
|
+
var navLinkStyles = import_react67.css`
|
|
9912
10476
|
text-decoration: none;
|
|
9913
10477
|
color: #374151;
|
|
9914
10478
|
font-weight: 500;
|
|
@@ -9924,7 +10488,7 @@ var navLinkStyles = import_react66.css`
|
|
|
9924
10488
|
outline-offset: 2px;
|
|
9925
10489
|
}
|
|
9926
10490
|
`;
|
|
9927
|
-
var avatarPlaceholderStyles =
|
|
10491
|
+
var avatarPlaceholderStyles = import_react67.css`
|
|
9928
10492
|
width: 32px;
|
|
9929
10493
|
height: 32px;
|
|
9930
10494
|
border-radius: 50%;
|
|
@@ -9949,7 +10513,7 @@ var avatarPlaceholderStyles = import_react66.css`
|
|
|
9949
10513
|
`;
|
|
9950
10514
|
|
|
9951
10515
|
// src/Navigation/Navigation.tsx
|
|
9952
|
-
var
|
|
10516
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
9953
10517
|
var Navigation = ({
|
|
9954
10518
|
onMenuToggle,
|
|
9955
10519
|
className,
|
|
@@ -9963,7 +10527,7 @@ var Navigation = ({
|
|
|
9963
10527
|
onAvatarClick,
|
|
9964
10528
|
...rest
|
|
9965
10529
|
}) => {
|
|
9966
|
-
return /* @__PURE__ */ (0,
|
|
10530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
|
|
9967
10531
|
Box_default,
|
|
9968
10532
|
{
|
|
9969
10533
|
display: "flex",
|
|
@@ -9972,7 +10536,7 @@ var Navigation = ({
|
|
|
9972
10536
|
position: "relative",
|
|
9973
10537
|
css: containerStyles5,
|
|
9974
10538
|
children: [
|
|
9975
|
-
/* @__PURE__ */ (0,
|
|
10539
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
9976
10540
|
Box_default,
|
|
9977
10541
|
{
|
|
9978
10542
|
as: "button",
|
|
@@ -9984,11 +10548,11 @@ var Navigation = ({
|
|
|
9984
10548
|
border: "none",
|
|
9985
10549
|
padding: space[2],
|
|
9986
10550
|
css: hamburgerButtonStyles,
|
|
9987
|
-
children: /* @__PURE__ */ (0,
|
|
10551
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
9988
10552
|
}
|
|
9989
10553
|
),
|
|
9990
|
-
/* @__PURE__ */ (0,
|
|
9991
|
-
/* @__PURE__ */ (0,
|
|
10554
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
10555
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
9992
10556
|
Logo_default,
|
|
9993
10557
|
{
|
|
9994
10558
|
variant: logoVariant,
|
|
@@ -9997,8 +10561,8 @@ var Navigation = ({
|
|
|
9997
10561
|
css: logoStyles2
|
|
9998
10562
|
}
|
|
9999
10563
|
) }),
|
|
10000
|
-
/* @__PURE__ */ (0,
|
|
10001
|
-
/* @__PURE__ */ (0,
|
|
10564
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
10565
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
10002
10566
|
"a",
|
|
10003
10567
|
{
|
|
10004
10568
|
href: link.href,
|
|
@@ -10007,7 +10571,7 @@ var Navigation = ({
|
|
|
10007
10571
|
children: link.label
|
|
10008
10572
|
}
|
|
10009
10573
|
) }, link.href)) }) }),
|
|
10010
|
-
/* @__PURE__ */ (0,
|
|
10574
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
10011
10575
|
Box_default,
|
|
10012
10576
|
{
|
|
10013
10577
|
as: "button",
|
|
@@ -10029,21 +10593,21 @@ var Navigation_default = Navigation;
|
|
|
10029
10593
|
var import_react_loading_skeleton2 = __toESM(require("react-loading-skeleton"));
|
|
10030
10594
|
|
|
10031
10595
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
10032
|
-
var
|
|
10596
|
+
var import_react70 = require("react");
|
|
10033
10597
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
10034
10598
|
|
|
10035
10599
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
10036
|
-
var
|
|
10037
|
-
var CarouselContext =
|
|
10600
|
+
var import_react68 = __toESM(require("react"));
|
|
10601
|
+
var CarouselContext = import_react68.default.createContext(
|
|
10038
10602
|
null
|
|
10039
10603
|
);
|
|
10040
10604
|
|
|
10041
10605
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
10042
|
-
var
|
|
10043
|
-
var carouselRoot =
|
|
10606
|
+
var import_react69 = require("@emotion/react");
|
|
10607
|
+
var carouselRoot = import_react69.css`
|
|
10044
10608
|
position: relative;
|
|
10045
10609
|
`;
|
|
10046
|
-
var carousel = (gap2) =>
|
|
10610
|
+
var carousel = (gap2) => import_react69.css`
|
|
10047
10611
|
display: flex;
|
|
10048
10612
|
overflow-y: hidden;
|
|
10049
10613
|
overflow-x: scroll;
|
|
@@ -10056,7 +10620,7 @@ var carousel = (gap2) => import_react68.css`
|
|
|
10056
10620
|
display: none;
|
|
10057
10621
|
}
|
|
10058
10622
|
`;
|
|
10059
|
-
var step = (itemWidth) =>
|
|
10623
|
+
var step = (itemWidth) => import_react69.css`
|
|
10060
10624
|
scroll-snap-align: center;
|
|
10061
10625
|
flex-basis: ${itemWidth || "100%"};
|
|
10062
10626
|
flex-shrink: 0;
|
|
@@ -10066,7 +10630,7 @@ var step = (itemWidth) => import_react68.css`
|
|
|
10066
10630
|
flex-basis: ${itemWidth || "100%"};
|
|
10067
10631
|
}
|
|
10068
10632
|
`;
|
|
10069
|
-
var controls = (position2) =>
|
|
10633
|
+
var controls = (position2) => import_react69.css`
|
|
10070
10634
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
10071
10635
|
display: none;
|
|
10072
10636
|
|
|
@@ -10075,7 +10639,7 @@ var controls = (position2) => import_react68.css`
|
|
|
10075
10639
|
}
|
|
10076
10640
|
`}
|
|
10077
10641
|
`;
|
|
10078
|
-
var iconWrapper =
|
|
10642
|
+
var iconWrapper = import_react69.css`
|
|
10079
10643
|
display: flex;
|
|
10080
10644
|
width: var(--spacing-7);
|
|
10081
10645
|
height: var(--spacing-7);
|
|
@@ -10085,7 +10649,7 @@ var iconWrapper = import_react68.css`
|
|
|
10085
10649
|
justify-content: center;
|
|
10086
10650
|
box-shadow: var(--shadow-md);
|
|
10087
10651
|
`;
|
|
10088
|
-
var button = (position2) =>
|
|
10652
|
+
var button = (position2) => import_react69.css`
|
|
10089
10653
|
background: transparent;
|
|
10090
10654
|
border-color: transparent;
|
|
10091
10655
|
outline: none;
|
|
@@ -10117,7 +10681,7 @@ var button = (position2) => import_react68.css`
|
|
|
10117
10681
|
bottom: calc(-1 * var(--spacing-1));
|
|
10118
10682
|
`}
|
|
10119
10683
|
`;
|
|
10120
|
-
var buttonLeft = (position2) =>
|
|
10684
|
+
var buttonLeft = (position2) => import_react69.css`
|
|
10121
10685
|
${button(position2)}
|
|
10122
10686
|
|
|
10123
10687
|
${position2 === "left-right" && `
|
|
@@ -10137,7 +10701,7 @@ var buttonLeft = (position2) => import_react68.css`
|
|
|
10137
10701
|
left: calc(50% - var(--spacing-16));
|
|
10138
10702
|
`}
|
|
10139
10703
|
`;
|
|
10140
|
-
var customButtonLeft = (position2) =>
|
|
10704
|
+
var customButtonLeft = (position2) => import_react69.css`
|
|
10141
10705
|
${button(position2)}
|
|
10142
10706
|
|
|
10143
10707
|
${position2 === "left-right" && `
|
|
@@ -10157,7 +10721,7 @@ var customButtonLeft = (position2) => import_react68.css`
|
|
|
10157
10721
|
left: calc(50% - var(--spacing-16));
|
|
10158
10722
|
`}
|
|
10159
10723
|
`;
|
|
10160
|
-
var buttonRight = (position2) =>
|
|
10724
|
+
var buttonRight = (position2) => import_react69.css`
|
|
10161
10725
|
${button(position2)}
|
|
10162
10726
|
|
|
10163
10727
|
${position2 === "left-right" && `
|
|
@@ -10177,12 +10741,12 @@ var buttonRight = (position2) => import_react68.css`
|
|
|
10177
10741
|
right: calc(50% - var(--spacing-16));
|
|
10178
10742
|
`}
|
|
10179
10743
|
`;
|
|
10180
|
-
var icon =
|
|
10744
|
+
var icon = import_react69.css`
|
|
10181
10745
|
width: var(--spacing-3);
|
|
10182
10746
|
height: var(--spacing-3);
|
|
10183
10747
|
color: var(--color-base-black);
|
|
10184
10748
|
`;
|
|
10185
|
-
var dots =
|
|
10749
|
+
var dots = import_react69.css`
|
|
10186
10750
|
position: absolute;
|
|
10187
10751
|
bottom: var(--spacing-2);
|
|
10188
10752
|
left: 0;
|
|
@@ -10192,11 +10756,11 @@ var dots = import_react68.css`
|
|
|
10192
10756
|
align-items: center;
|
|
10193
10757
|
justify-content: center;
|
|
10194
10758
|
`;
|
|
10195
|
-
var dotsInner =
|
|
10759
|
+
var dotsInner = import_react69.css`
|
|
10196
10760
|
display: flex;
|
|
10197
10761
|
overflow: hidden;
|
|
10198
10762
|
`;
|
|
10199
|
-
var dot = (dotsColor) =>
|
|
10763
|
+
var dot = (dotsColor) => import_react69.css`
|
|
10200
10764
|
position: relative;
|
|
10201
10765
|
flex-shrink: 0;
|
|
10202
10766
|
flex-grow: 0;
|
|
@@ -10235,22 +10799,22 @@ var dot = (dotsColor) => import_react68.css`
|
|
|
10235
10799
|
`}
|
|
10236
10800
|
}
|
|
10237
10801
|
`;
|
|
10238
|
-
var dotDistance2 =
|
|
10802
|
+
var dotDistance2 = import_react69.css`
|
|
10239
10803
|
&::after {
|
|
10240
10804
|
transform: translate(-50%, -50%) scale(0.9);
|
|
10241
10805
|
}
|
|
10242
10806
|
`;
|
|
10243
|
-
var dotDistance3 =
|
|
10807
|
+
var dotDistance3 = import_react69.css`
|
|
10244
10808
|
&::after {
|
|
10245
10809
|
transform: translate(-50%, -50%) scale(0.8);
|
|
10246
10810
|
}
|
|
10247
10811
|
`;
|
|
10248
|
-
var dotDistanceGreaterThan3 =
|
|
10812
|
+
var dotDistanceGreaterThan3 = import_react69.css`
|
|
10249
10813
|
&::after {
|
|
10250
10814
|
transform: translate(-50%, -50%) scale(0.7);
|
|
10251
10815
|
}
|
|
10252
10816
|
`;
|
|
10253
|
-
var dotVisible =
|
|
10817
|
+
var dotVisible = import_react69.css`
|
|
10254
10818
|
&::after {
|
|
10255
10819
|
opacity: 1;
|
|
10256
10820
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -10258,7 +10822,7 @@ var dotVisible = import_react68.css`
|
|
|
10258
10822
|
`;
|
|
10259
10823
|
|
|
10260
10824
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
10261
|
-
var
|
|
10825
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
10262
10826
|
var ScrollingCarouselStep = ({
|
|
10263
10827
|
children,
|
|
10264
10828
|
index,
|
|
@@ -10267,7 +10831,7 @@ var ScrollingCarouselStep = ({
|
|
|
10267
10831
|
onClick,
|
|
10268
10832
|
itemWidth
|
|
10269
10833
|
}) => {
|
|
10270
|
-
const context = (0,
|
|
10834
|
+
const context = (0, import_react70.useContext)(CarouselContext);
|
|
10271
10835
|
if (!context) {
|
|
10272
10836
|
throw new Error(
|
|
10273
10837
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -10278,7 +10842,7 @@ var ScrollingCarouselStep = ({
|
|
|
10278
10842
|
threshold: 0.75,
|
|
10279
10843
|
root: carousel2.current
|
|
10280
10844
|
});
|
|
10281
|
-
(0,
|
|
10845
|
+
(0, import_react70.useEffect)(() => {
|
|
10282
10846
|
if (typeof index !== "undefined") {
|
|
10283
10847
|
dispatch({
|
|
10284
10848
|
type: "set_child_visibility",
|
|
@@ -10286,7 +10850,7 @@ var ScrollingCarouselStep = ({
|
|
|
10286
10850
|
});
|
|
10287
10851
|
}
|
|
10288
10852
|
}, [inView, index, dispatch]);
|
|
10289
|
-
return /* @__PURE__ */ (0,
|
|
10853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
10290
10854
|
"div",
|
|
10291
10855
|
{
|
|
10292
10856
|
ref,
|
|
@@ -10304,10 +10868,10 @@ var ScrollingCarouselStep = ({
|
|
|
10304
10868
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
10305
10869
|
|
|
10306
10870
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
10307
|
-
var
|
|
10871
|
+
var import_react74 = __toESM(require("react"));
|
|
10308
10872
|
|
|
10309
10873
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
10310
|
-
var
|
|
10874
|
+
var import_react71 = require("react");
|
|
10311
10875
|
|
|
10312
10876
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
10313
10877
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -10338,7 +10902,7 @@ var useCarouselDots = ({
|
|
|
10338
10902
|
anyItemsVisible,
|
|
10339
10903
|
numberOfDots
|
|
10340
10904
|
}) => {
|
|
10341
|
-
const dotOffset = (0,
|
|
10905
|
+
const dotOffset = (0, import_react71.useRef)(0);
|
|
10342
10906
|
const dotWidth = 12;
|
|
10343
10907
|
const totalDots = childVisibility.length;
|
|
10344
10908
|
const dotToCenterIndex = Math.round(
|
|
@@ -10370,7 +10934,7 @@ var useCarouselDots = ({
|
|
|
10370
10934
|
};
|
|
10371
10935
|
|
|
10372
10936
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
10373
|
-
var
|
|
10937
|
+
var import_react72 = require("react");
|
|
10374
10938
|
|
|
10375
10939
|
// src/shared/helpers.ts
|
|
10376
10940
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -10404,7 +10968,7 @@ var useCarouselNavigation = ({
|
|
|
10404
10968
|
infiniteScroll,
|
|
10405
10969
|
childVisibilityLength
|
|
10406
10970
|
}) => {
|
|
10407
|
-
const getStepEl = (0,
|
|
10971
|
+
const getStepEl = (0, import_react72.useCallback)(
|
|
10408
10972
|
(index) => {
|
|
10409
10973
|
if (carousel2.current) {
|
|
10410
10974
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -10414,7 +10978,7 @@ var useCarouselNavigation = ({
|
|
|
10414
10978
|
},
|
|
10415
10979
|
[carousel2, id]
|
|
10416
10980
|
);
|
|
10417
|
-
const next = (0,
|
|
10981
|
+
const next = (0, import_react72.useCallback)(
|
|
10418
10982
|
(e) => {
|
|
10419
10983
|
e.preventDefault();
|
|
10420
10984
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -10442,7 +11006,7 @@ var useCarouselNavigation = ({
|
|
|
10442
11006
|
carousel2
|
|
10443
11007
|
]
|
|
10444
11008
|
);
|
|
10445
|
-
const back = (0,
|
|
11009
|
+
const back = (0, import_react72.useCallback)(
|
|
10446
11010
|
(e) => {
|
|
10447
11011
|
e.preventDefault();
|
|
10448
11012
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -10470,7 +11034,7 @@ var useCarouselNavigation = ({
|
|
|
10470
11034
|
carousel2
|
|
10471
11035
|
]
|
|
10472
11036
|
);
|
|
10473
|
-
const goTo = (0,
|
|
11037
|
+
const goTo = (0, import_react72.useCallback)(
|
|
10474
11038
|
(e, i) => {
|
|
10475
11039
|
e.preventDefault();
|
|
10476
11040
|
const el = getStepEl(i);
|
|
@@ -10488,12 +11052,12 @@ var useCarouselNavigation = ({
|
|
|
10488
11052
|
};
|
|
10489
11053
|
|
|
10490
11054
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
10491
|
-
var
|
|
11055
|
+
var import_react73 = require("react");
|
|
10492
11056
|
var useCarouselVisibility = (carousel2) => {
|
|
10493
|
-
const [state, dispatch] = (0,
|
|
11057
|
+
const [state, dispatch] = (0, import_react73.useReducer)(childVisibilityReducer, {
|
|
10494
11058
|
childVisibility: []
|
|
10495
11059
|
});
|
|
10496
|
-
const carouselContextApi = (0,
|
|
11060
|
+
const carouselContextApi = (0, import_react73.useMemo)(
|
|
10497
11061
|
() => ({ carousel: carousel2, dispatch }),
|
|
10498
11062
|
[carousel2]
|
|
10499
11063
|
);
|
|
@@ -10514,7 +11078,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
10514
11078
|
};
|
|
10515
11079
|
|
|
10516
11080
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
10517
|
-
var
|
|
11081
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
10518
11082
|
var ScrollingCarousel = ({
|
|
10519
11083
|
className,
|
|
10520
11084
|
children,
|
|
@@ -10533,8 +11097,8 @@ var ScrollingCarousel = ({
|
|
|
10533
11097
|
itemWidth,
|
|
10534
11098
|
gap: gap2
|
|
10535
11099
|
}) => {
|
|
10536
|
-
const carousel2 = (0,
|
|
10537
|
-
const [isHovering, setIsHovering] = (0,
|
|
11100
|
+
const carousel2 = (0, import_react74.useRef)(null);
|
|
11101
|
+
const [isHovering, setIsHovering] = (0, import_react74.useState)(false);
|
|
10538
11102
|
const {
|
|
10539
11103
|
state,
|
|
10540
11104
|
carouselContextApi,
|
|
@@ -10554,7 +11118,7 @@ var ScrollingCarousel = ({
|
|
|
10554
11118
|
infiniteScroll,
|
|
10555
11119
|
childVisibilityLength: state.childVisibility.length
|
|
10556
11120
|
});
|
|
10557
|
-
(0,
|
|
11121
|
+
(0, import_react74.useEffect)(() => {
|
|
10558
11122
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
10559
11123
|
const childrenArray = Array.from(carousel2.current.children);
|
|
10560
11124
|
const selectedItem = childrenArray[current];
|
|
@@ -10569,9 +11133,9 @@ var ScrollingCarousel = ({
|
|
|
10569
11133
|
}
|
|
10570
11134
|
}
|
|
10571
11135
|
}, [current]);
|
|
10572
|
-
const childrenWithIndex =
|
|
11136
|
+
const childrenWithIndex = import_react74.default.Children.map(
|
|
10573
11137
|
children,
|
|
10574
|
-
(child, index) =>
|
|
11138
|
+
(child, index) => import_react74.default.cloneElement(child, { index, itemWidth })
|
|
10575
11139
|
);
|
|
10576
11140
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
10577
11141
|
childVisibility: state.childVisibility,
|
|
@@ -10582,7 +11146,7 @@ var ScrollingCarousel = ({
|
|
|
10582
11146
|
});
|
|
10583
11147
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
10584
11148
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
10585
|
-
return /* @__PURE__ */ (0,
|
|
11149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10586
11150
|
"div",
|
|
10587
11151
|
{
|
|
10588
11152
|
css: carouselRoot,
|
|
@@ -10590,7 +11154,7 @@ var ScrollingCarousel = ({
|
|
|
10590
11154
|
onMouseEnter: () => setIsHovering(true),
|
|
10591
11155
|
onMouseLeave: () => setIsHovering(false),
|
|
10592
11156
|
children: [
|
|
10593
|
-
/* @__PURE__ */ (0,
|
|
11157
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10594
11158
|
"div",
|
|
10595
11159
|
{
|
|
10596
11160
|
css: carousel(gap2),
|
|
@@ -10599,11 +11163,11 @@ var ScrollingCarousel = ({
|
|
|
10599
11163
|
role: "region",
|
|
10600
11164
|
"aria-roledescription": "carousel",
|
|
10601
11165
|
"aria-label": "Scrolling carousel",
|
|
10602
|
-
children: /* @__PURE__ */ (0,
|
|
11166
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
10603
11167
|
}
|
|
10604
11168
|
),
|
|
10605
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
10606
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
11169
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
11170
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10607
11171
|
"button",
|
|
10608
11172
|
{
|
|
10609
11173
|
"aria-label": "Previous",
|
|
@@ -10615,10 +11179,10 @@ var ScrollingCarousel = ({
|
|
|
10615
11179
|
},
|
|
10616
11180
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
10617
11181
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
10618
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
11182
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
10619
11183
|
}
|
|
10620
11184
|
),
|
|
10621
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
11185
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10622
11186
|
"button",
|
|
10623
11187
|
{
|
|
10624
11188
|
"aria-label": "Next",
|
|
@@ -10630,11 +11194,11 @@ var ScrollingCarousel = ({
|
|
|
10630
11194
|
},
|
|
10631
11195
|
css: buttonRight(buttonsPosition),
|
|
10632
11196
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
10633
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
11197
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
10634
11198
|
}
|
|
10635
11199
|
)
|
|
10636
11200
|
] }),
|
|
10637
|
-
showDots && /* @__PURE__ */ (0,
|
|
11201
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10638
11202
|
"div",
|
|
10639
11203
|
{
|
|
10640
11204
|
css: dotsInner,
|
|
@@ -10642,7 +11206,7 @@ var ScrollingCarousel = ({
|
|
|
10642
11206
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
10643
11207
|
var _a;
|
|
10644
11208
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
10645
|
-
return /* @__PURE__ */ (0,
|
|
11209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10646
11210
|
"button",
|
|
10647
11211
|
{
|
|
10648
11212
|
type: "button",
|
|
@@ -10673,8 +11237,8 @@ var ScrollingCarousel = ({
|
|
|
10673
11237
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
10674
11238
|
|
|
10675
11239
|
// src/PackageCard/PackageCard.styles.ts
|
|
10676
|
-
var
|
|
10677
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
11240
|
+
var import_react75 = require("@emotion/react");
|
|
11241
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react75.css`
|
|
10678
11242
|
${hasClickHandler && `
|
|
10679
11243
|
cursor: pointer;
|
|
10680
11244
|
`}
|
|
@@ -10692,7 +11256,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10692
11256
|
flex-direction: column;
|
|
10693
11257
|
gap: var(--spacing-2);
|
|
10694
11258
|
|
|
10695
|
-
${orientation === "horizontal" &&
|
|
11259
|
+
${orientation === "horizontal" && import_react75.css`
|
|
10696
11260
|
/* Apply horizontal layout only on tablet and up */
|
|
10697
11261
|
${media.md} {
|
|
10698
11262
|
flex-direction: row;
|
|
@@ -10720,58 +11284,58 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10720
11284
|
}
|
|
10721
11285
|
`}
|
|
10722
11286
|
`;
|
|
10723
|
-
var imageContainerStyles = (orientation) =>
|
|
11287
|
+
var imageContainerStyles = (orientation) => import_react75.css`
|
|
10724
11288
|
width: 100%;
|
|
10725
11289
|
height: 260px;
|
|
10726
11290
|
|
|
10727
|
-
${orientation === "horizontal" &&
|
|
11291
|
+
${orientation === "horizontal" && import_react75.css`
|
|
10728
11292
|
${media.md} {
|
|
10729
11293
|
width: 40%;
|
|
10730
11294
|
height: 200px;
|
|
10731
11295
|
`}
|
|
10732
11296
|
`;
|
|
10733
|
-
var imageBoxStyles = (orientation) =>
|
|
11297
|
+
var imageBoxStyles = (orientation) => import_react75.css`
|
|
10734
11298
|
height: 260px;
|
|
10735
|
-
${orientation === "horizontal" &&
|
|
11299
|
+
${orientation === "horizontal" && import_react75.css`
|
|
10736
11300
|
${media.md} {
|
|
10737
11301
|
height: 200px;
|
|
10738
11302
|
}
|
|
10739
11303
|
`}
|
|
10740
11304
|
`;
|
|
10741
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
11305
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react75.css`
|
|
10742
11306
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
10743
11307
|
width: 100%;
|
|
10744
11308
|
display: flex;
|
|
10745
11309
|
flex-direction: column;
|
|
10746
11310
|
justify-content: flex-start;
|
|
10747
11311
|
|
|
10748
|
-
${orientation === "horizontal" &&
|
|
11312
|
+
${orientation === "horizontal" && import_react75.css`
|
|
10749
11313
|
${media.md} {
|
|
10750
11314
|
width: 60%;
|
|
10751
11315
|
justify-content: center;
|
|
10752
11316
|
}
|
|
10753
11317
|
`}
|
|
10754
11318
|
`;
|
|
10755
|
-
var imageStyles3 =
|
|
11319
|
+
var imageStyles3 = import_react75.css`
|
|
10756
11320
|
background-size: cover;
|
|
10757
11321
|
background-position: center;
|
|
10758
11322
|
background-repeat: no-repeat;
|
|
10759
11323
|
position: relative;
|
|
10760
11324
|
background-color: lightgray;
|
|
10761
11325
|
`;
|
|
10762
|
-
var badgeTopLeftStyles =
|
|
11326
|
+
var badgeTopLeftStyles = import_react75.css`
|
|
10763
11327
|
position: absolute;
|
|
10764
11328
|
top: var(--spacing-3);
|
|
10765
11329
|
left: var(--spacing-3);
|
|
10766
11330
|
z-index: 2;
|
|
10767
11331
|
`;
|
|
10768
|
-
var badgeBottomRightStyles =
|
|
11332
|
+
var badgeBottomRightStyles = import_react75.css`
|
|
10769
11333
|
position: absolute;
|
|
10770
11334
|
bottom: var(--spacing-3);
|
|
10771
11335
|
right: var(--spacing-3);
|
|
10772
11336
|
z-index: 2;
|
|
10773
11337
|
`;
|
|
10774
|
-
var heartIconStyles =
|
|
11338
|
+
var heartIconStyles = import_react75.css`
|
|
10775
11339
|
position: absolute;
|
|
10776
11340
|
top: var(--spacing-3);
|
|
10777
11341
|
right: var(--spacing-3);
|
|
@@ -10793,20 +11357,20 @@ var heartIconStyles = import_react74.css`
|
|
|
10793
11357
|
transform: scale(1.1);
|
|
10794
11358
|
}
|
|
10795
11359
|
`;
|
|
10796
|
-
var actionMenuStyles =
|
|
11360
|
+
var actionMenuStyles = import_react75.css`
|
|
10797
11361
|
position: absolute;
|
|
10798
11362
|
top: var(--spacing-3);
|
|
10799
11363
|
right: var(--spacing-3);
|
|
10800
11364
|
z-index: 3;
|
|
10801
11365
|
`;
|
|
10802
|
-
var contentWithBackgroundStyles =
|
|
11366
|
+
var contentWithBackgroundStyles = import_react75.css`
|
|
10803
11367
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
10804
11368
|
background-color: var(--surface-page);
|
|
10805
11369
|
`;
|
|
10806
|
-
var contentWithoutBackgroundStyles =
|
|
11370
|
+
var contentWithoutBackgroundStyles = import_react75.css`
|
|
10807
11371
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
10808
11372
|
`;
|
|
10809
|
-
var overlayStyles =
|
|
11373
|
+
var overlayStyles = import_react75.css`
|
|
10810
11374
|
position: absolute;
|
|
10811
11375
|
top: 0;
|
|
10812
11376
|
left: 0;
|
|
@@ -10818,7 +11382,7 @@ var overlayStyles = import_react74.css`
|
|
|
10818
11382
|
display: block;
|
|
10819
11383
|
pointer-events: none;
|
|
10820
11384
|
`;
|
|
10821
|
-
var titleStyles =
|
|
11385
|
+
var titleStyles = import_react75.css`
|
|
10822
11386
|
text-wrap: wrap;
|
|
10823
11387
|
word-break: break-word;
|
|
10824
11388
|
white-space: pre-wrap;
|
|
@@ -10826,7 +11390,7 @@ var titleStyles = import_react74.css`
|
|
|
10826
11390
|
`;
|
|
10827
11391
|
|
|
10828
11392
|
// src/PackageCard/PackageCard.tsx
|
|
10829
|
-
var
|
|
11393
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
10830
11394
|
var PackageCard = ({
|
|
10831
11395
|
images,
|
|
10832
11396
|
title,
|
|
@@ -10847,22 +11411,22 @@ var PackageCard = ({
|
|
|
10847
11411
|
...rest
|
|
10848
11412
|
}) => {
|
|
10849
11413
|
if (isLoading) {
|
|
10850
|
-
return /* @__PURE__ */ (0,
|
|
11414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10851
11415
|
Box_default,
|
|
10852
11416
|
{
|
|
10853
11417
|
css: cardContainerStyles3(orientation, hasContentBackground, false),
|
|
10854
11418
|
className,
|
|
10855
11419
|
children: [
|
|
10856
|
-
/* @__PURE__ */ (0,
|
|
11420
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10857
11421
|
Box_default,
|
|
10858
11422
|
{
|
|
10859
11423
|
overflow: "hidden",
|
|
10860
11424
|
borderRadius: "var(--spacing-4)",
|
|
10861
11425
|
css: imageContainerStyles(orientation),
|
|
10862
|
-
children: /* @__PURE__ */ (0,
|
|
11426
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_loading_skeleton2.default, { width: "100%", height: "100%", borderRadius: 16 })
|
|
10863
11427
|
}
|
|
10864
11428
|
),
|
|
10865
|
-
/* @__PURE__ */ (0,
|
|
11429
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10866
11430
|
Box_default,
|
|
10867
11431
|
{
|
|
10868
11432
|
display: "flex",
|
|
@@ -10870,9 +11434,9 @@ var PackageCard = ({
|
|
|
10870
11434
|
gap: "var(--spacing-1)",
|
|
10871
11435
|
mb: "var(--spacing-1)",
|
|
10872
11436
|
children: [
|
|
10873
|
-
/* @__PURE__ */ (0,
|
|
10874
|
-
/* @__PURE__ */ (0,
|
|
10875
|
-
/* @__PURE__ */ (0,
|
|
11437
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_loading_skeleton2.default, { width: "80%", height: 16, borderRadius: 4 }),
|
|
11438
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_loading_skeleton2.default, { width: "60%", height: 14, borderRadius: 4 }),
|
|
11439
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_loading_skeleton2.default, { width: "40%", height: 14, borderRadius: 4 })
|
|
10876
11440
|
]
|
|
10877
11441
|
}
|
|
10878
11442
|
) })
|
|
@@ -10884,7 +11448,7 @@ var PackageCard = ({
|
|
|
10884
11448
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
10885
11449
|
(badge2) => badge2.showOverlay
|
|
10886
11450
|
);
|
|
10887
|
-
return /* @__PURE__ */ (0,
|
|
11451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10888
11452
|
Box_default,
|
|
10889
11453
|
{
|
|
10890
11454
|
position: "relative",
|
|
@@ -10893,7 +11457,7 @@ var PackageCard = ({
|
|
|
10893
11457
|
onClick,
|
|
10894
11458
|
...rest,
|
|
10895
11459
|
children: [
|
|
10896
|
-
/* @__PURE__ */ (0,
|
|
11460
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10897
11461
|
Box_default,
|
|
10898
11462
|
{
|
|
10899
11463
|
position: "relative",
|
|
@@ -10901,7 +11465,7 @@ var PackageCard = ({
|
|
|
10901
11465
|
borderRadius: "var(--spacing-4)",
|
|
10902
11466
|
css: imageContainerStyles(orientation),
|
|
10903
11467
|
children: [
|
|
10904
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
11468
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10905
11469
|
AvailabilityBadge_default,
|
|
10906
11470
|
{
|
|
10907
11471
|
variant: badge2.variant,
|
|
@@ -10910,18 +11474,18 @@ var PackageCard = ({
|
|
|
10910
11474
|
},
|
|
10911
11475
|
`availability-${index}`
|
|
10912
11476
|
)),
|
|
10913
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
10914
|
-
/* @__PURE__ */ (0,
|
|
11477
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { css: overlayStyles }),
|
|
11478
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10915
11479
|
ScrollingCarousel,
|
|
10916
11480
|
{
|
|
10917
11481
|
showDots: images.length > 1,
|
|
10918
11482
|
showNavigationOnHover: true,
|
|
10919
11483
|
id: carouselId,
|
|
10920
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
11484
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10921
11485
|
ScrollingCarouselStep,
|
|
10922
11486
|
{
|
|
10923
11487
|
parentId: carouselId,
|
|
10924
|
-
children: /* @__PURE__ */ (0,
|
|
11488
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10925
11489
|
Box_default,
|
|
10926
11490
|
{
|
|
10927
11491
|
width: "100%",
|
|
@@ -10939,7 +11503,7 @@ var PackageCard = ({
|
|
|
10939
11503
|
))
|
|
10940
11504
|
}
|
|
10941
11505
|
),
|
|
10942
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
11506
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10943
11507
|
Box_default,
|
|
10944
11508
|
{
|
|
10945
11509
|
css: heartIconStyles,
|
|
@@ -10948,14 +11512,14 @@ var PackageCard = ({
|
|
|
10948
11512
|
e.stopPropagation();
|
|
10949
11513
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
10950
11514
|
},
|
|
10951
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
11515
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10952
11516
|
Icon_default,
|
|
10953
11517
|
{
|
|
10954
11518
|
variant: "HeartSolid",
|
|
10955
11519
|
size: "small",
|
|
10956
11520
|
fill: "var(--color-error-500)"
|
|
10957
11521
|
}
|
|
10958
|
-
) : /* @__PURE__ */ (0,
|
|
11522
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10959
11523
|
Icon_default,
|
|
10960
11524
|
{
|
|
10961
11525
|
variant: "Heart",
|
|
@@ -10965,13 +11529,13 @@ var PackageCard = ({
|
|
|
10965
11529
|
)
|
|
10966
11530
|
}
|
|
10967
11531
|
),
|
|
10968
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
11532
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(ActionMenu_default, { actions }) })
|
|
10969
11533
|
]
|
|
10970
11534
|
}
|
|
10971
11535
|
),
|
|
10972
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
10973
|
-
/* @__PURE__ */ (0,
|
|
10974
|
-
/* @__PURE__ */ (0,
|
|
11536
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(ActionMenu_default, { actions }) }),
|
|
11537
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
11538
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10975
11539
|
Box_default,
|
|
10976
11540
|
{
|
|
10977
11541
|
display: "flex",
|
|
@@ -10979,7 +11543,7 @@ var PackageCard = ({
|
|
|
10979
11543
|
gap: "var(--spacing-1)",
|
|
10980
11544
|
mb: "var(--spacing-1)",
|
|
10981
11545
|
children: [
|
|
10982
|
-
/* @__PURE__ */ (0,
|
|
11546
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10983
11547
|
Text_default,
|
|
10984
11548
|
{
|
|
10985
11549
|
size: size === "xs" ? "sm" : "md",
|
|
@@ -10988,8 +11552,8 @@ var PackageCard = ({
|
|
|
10988
11552
|
children: title
|
|
10989
11553
|
}
|
|
10990
11554
|
) }),
|
|
10991
|
-
/* @__PURE__ */ (0,
|
|
10992
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
11555
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { size: size === "xs" ? "xs" : "sm", fontWeight: "bold", children: subtitle }) }),
|
|
11556
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Text_default, { size: size === "xs" ? "xs" : "sm", fontWeight: "normal", children: [
|
|
10993
11557
|
"Starting Price ",
|
|
10994
11558
|
startingPrice,
|
|
10995
11559
|
" / Guest"
|
|
@@ -10997,14 +11561,14 @@ var PackageCard = ({
|
|
|
10997
11561
|
]
|
|
10998
11562
|
}
|
|
10999
11563
|
),
|
|
11000
|
-
badges && badges.length > 0 && size !== "xs" && /* @__PURE__ */ (0,
|
|
11564
|
+
badges && badges.length > 0 && size !== "xs" && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
11001
11565
|
Box_default,
|
|
11002
11566
|
{
|
|
11003
11567
|
display: "flex",
|
|
11004
11568
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
11005
11569
|
alignItems: "center",
|
|
11006
11570
|
flexWrap: "wrap",
|
|
11007
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
11571
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
11008
11572
|
IconLabel_default,
|
|
11009
11573
|
{
|
|
11010
11574
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -11023,14 +11587,14 @@ var PackageCard = ({
|
|
|
11023
11587
|
var PackageCard_default = PackageCard;
|
|
11024
11588
|
|
|
11025
11589
|
// src/PackageHeader/PackageHeader.tsx
|
|
11026
|
-
var
|
|
11590
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
11027
11591
|
var PackageHeader = ({
|
|
11028
11592
|
header,
|
|
11029
11593
|
subheader,
|
|
11030
11594
|
features,
|
|
11031
11595
|
className
|
|
11032
11596
|
}) => {
|
|
11033
|
-
return /* @__PURE__ */ (0,
|
|
11597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
11034
11598
|
Box_default,
|
|
11035
11599
|
{
|
|
11036
11600
|
display: "flex",
|
|
@@ -11039,9 +11603,9 @@ var PackageHeader = ({
|
|
|
11039
11603
|
color: "var(--text-primary)",
|
|
11040
11604
|
className,
|
|
11041
11605
|
children: [
|
|
11042
|
-
/* @__PURE__ */ (0,
|
|
11043
|
-
subheader && /* @__PURE__ */ (0,
|
|
11044
|
-
features && /* @__PURE__ */ (0,
|
|
11606
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
11607
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { children: subheader }),
|
|
11608
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(FeatureList_default, { items: features })
|
|
11045
11609
|
]
|
|
11046
11610
|
}
|
|
11047
11611
|
);
|
|
@@ -11049,8 +11613,8 @@ var PackageHeader = ({
|
|
|
11049
11613
|
var PackageHeader_default = PackageHeader;
|
|
11050
11614
|
|
|
11051
11615
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
11052
|
-
var
|
|
11053
|
-
var imageStyles4 =
|
|
11616
|
+
var import_react76 = require("@emotion/react");
|
|
11617
|
+
var imageStyles4 = import_react76.css`
|
|
11054
11618
|
flex: 1;
|
|
11055
11619
|
min-width: 0;
|
|
11056
11620
|
max-width: 100%;
|
|
@@ -11061,13 +11625,13 @@ var imageStyles4 = import_react75.css`
|
|
|
11061
11625
|
`;
|
|
11062
11626
|
|
|
11063
11627
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
11064
|
-
var
|
|
11628
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
11065
11629
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
11066
11630
|
const displayImages = images.slice(0, maxImages);
|
|
11067
11631
|
if (displayImages.length === 0) {
|
|
11068
11632
|
return null;
|
|
11069
11633
|
}
|
|
11070
|
-
return /* @__PURE__ */ (0,
|
|
11634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
11071
11635
|
"img",
|
|
11072
11636
|
{
|
|
11073
11637
|
src: image,
|
|
@@ -11080,7 +11644,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
11080
11644
|
var ReviewImages_default = ReviewImages;
|
|
11081
11645
|
|
|
11082
11646
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
11083
|
-
var
|
|
11647
|
+
var import_jsx_runtime267 = require("@emotion/react/jsx-runtime");
|
|
11084
11648
|
var ReviewReply = ({
|
|
11085
11649
|
avatarSrc,
|
|
11086
11650
|
name,
|
|
@@ -11089,7 +11653,7 @@ var ReviewReply = ({
|
|
|
11089
11653
|
label,
|
|
11090
11654
|
rating
|
|
11091
11655
|
}) => {
|
|
11092
|
-
return /* @__PURE__ */ (0,
|
|
11656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
11093
11657
|
Box_default,
|
|
11094
11658
|
{
|
|
11095
11659
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -11099,7 +11663,7 @@ var ReviewReply = ({
|
|
|
11099
11663
|
flexDirection: "column",
|
|
11100
11664
|
gap: "var(--spacing-3)",
|
|
11101
11665
|
children: [
|
|
11102
|
-
/* @__PURE__ */ (0,
|
|
11666
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
11103
11667
|
Box_default,
|
|
11104
11668
|
{
|
|
11105
11669
|
display: "flex",
|
|
@@ -11107,7 +11671,7 @@ var ReviewReply = ({
|
|
|
11107
11671
|
justifyContent: "space-between",
|
|
11108
11672
|
gap: "var(--spacing-2)",
|
|
11109
11673
|
children: [
|
|
11110
|
-
/* @__PURE__ */ (0,
|
|
11674
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
11111
11675
|
UserCard_default,
|
|
11112
11676
|
{
|
|
11113
11677
|
avatarSrc,
|
|
@@ -11116,11 +11680,11 @@ var ReviewReply = ({
|
|
|
11116
11680
|
rating
|
|
11117
11681
|
}
|
|
11118
11682
|
),
|
|
11119
|
-
/* @__PURE__ */ (0,
|
|
11683
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
11120
11684
|
]
|
|
11121
11685
|
}
|
|
11122
11686
|
),
|
|
11123
|
-
/* @__PURE__ */ (0,
|
|
11687
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Text_default, { children: content })
|
|
11124
11688
|
]
|
|
11125
11689
|
}
|
|
11126
11690
|
);
|
|
@@ -11128,7 +11692,7 @@ var ReviewReply = ({
|
|
|
11128
11692
|
var ReviewReply_default = ReviewReply;
|
|
11129
11693
|
|
|
11130
11694
|
// src/ReviewCard/ReviewCard.tsx
|
|
11131
|
-
var
|
|
11695
|
+
var import_jsx_runtime268 = require("@emotion/react/jsx-runtime");
|
|
11132
11696
|
var ReviewCard = ({
|
|
11133
11697
|
avatarSrc,
|
|
11134
11698
|
name,
|
|
@@ -11140,7 +11704,7 @@ var ReviewCard = ({
|
|
|
11140
11704
|
replies = [],
|
|
11141
11705
|
className
|
|
11142
11706
|
}) => {
|
|
11143
|
-
return /* @__PURE__ */ (0,
|
|
11707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
|
|
11144
11708
|
Box_default,
|
|
11145
11709
|
{
|
|
11146
11710
|
backgroundColor: "white",
|
|
@@ -11151,7 +11715,7 @@ var ReviewCard = ({
|
|
|
11151
11715
|
gap: "var(--spacing-4)",
|
|
11152
11716
|
className,
|
|
11153
11717
|
children: [
|
|
11154
|
-
/* @__PURE__ */ (0,
|
|
11718
|
+
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
11155
11719
|
UserCard_default,
|
|
11156
11720
|
{
|
|
11157
11721
|
avatarSrc,
|
|
@@ -11160,10 +11724,10 @@ var ReviewCard = ({
|
|
|
11160
11724
|
rating
|
|
11161
11725
|
}
|
|
11162
11726
|
),
|
|
11163
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
11164
|
-
/* @__PURE__ */ (0,
|
|
11165
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
11166
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
11727
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
11728
|
+
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Text_default, { size: "md", children: content }),
|
|
11729
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(ReviewImages_default, { images }),
|
|
11730
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
11167
11731
|
ReviewReply_default,
|
|
11168
11732
|
{
|
|
11169
11733
|
avatarSrc: reply.avatarSrc,
|
|
@@ -11182,12 +11746,12 @@ var ReviewCard = ({
|
|
|
11182
11746
|
var ReviewCard_default = ReviewCard;
|
|
11183
11747
|
|
|
11184
11748
|
// src/Reviews/Reviews.tsx
|
|
11185
|
-
var
|
|
11749
|
+
var import_react77 = require("@emotion/react");
|
|
11186
11750
|
|
|
11187
11751
|
// src/Reviews/components/ReviewItem.tsx
|
|
11188
|
-
var
|
|
11752
|
+
var import_jsx_runtime269 = require("@emotion/react/jsx-runtime");
|
|
11189
11753
|
var ReviewItem = ({ label, rating }) => {
|
|
11190
|
-
return /* @__PURE__ */ (0,
|
|
11754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
11191
11755
|
Box_default,
|
|
11192
11756
|
{
|
|
11193
11757
|
display: "flex",
|
|
@@ -11195,10 +11759,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
11195
11759
|
alignItems: "center",
|
|
11196
11760
|
width: "100%",
|
|
11197
11761
|
children: [
|
|
11198
|
-
/* @__PURE__ */ (0,
|
|
11199
|
-
/* @__PURE__ */ (0,
|
|
11200
|
-
/* @__PURE__ */ (0,
|
|
11201
|
-
/* @__PURE__ */ (0,
|
|
11762
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
11763
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
11764
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
11765
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
11202
11766
|
] })
|
|
11203
11767
|
]
|
|
11204
11768
|
}
|
|
@@ -11207,14 +11771,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
11207
11771
|
var ReviewItem_default = ReviewItem;
|
|
11208
11772
|
|
|
11209
11773
|
// src/Reviews/Reviews.tsx
|
|
11210
|
-
var
|
|
11774
|
+
var import_jsx_runtime270 = require("@emotion/react/jsx-runtime");
|
|
11211
11775
|
var Reviews = ({
|
|
11212
11776
|
averageRating,
|
|
11213
11777
|
totalReviews,
|
|
11214
11778
|
items,
|
|
11215
11779
|
className
|
|
11216
11780
|
}) => {
|
|
11217
|
-
return /* @__PURE__ */ (0,
|
|
11781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
|
|
11218
11782
|
Box_default,
|
|
11219
11783
|
{
|
|
11220
11784
|
width: "100%",
|
|
@@ -11227,7 +11791,7 @@ var Reviews = ({
|
|
|
11227
11791
|
p: "var(--spacing-4)",
|
|
11228
11792
|
className,
|
|
11229
11793
|
children: [
|
|
11230
|
-
/* @__PURE__ */ (0,
|
|
11794
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
|
|
11231
11795
|
Box_default,
|
|
11232
11796
|
{
|
|
11233
11797
|
display: "flex",
|
|
@@ -11235,12 +11799,12 @@ var Reviews = ({
|
|
|
11235
11799
|
alignItems: "center",
|
|
11236
11800
|
gap: "var(--spacing-2)",
|
|
11237
11801
|
children: [
|
|
11238
|
-
/* @__PURE__ */ (0,
|
|
11239
|
-
/* @__PURE__ */ (0,
|
|
11802
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
11803
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
11240
11804
|
StarRating_default,
|
|
11241
11805
|
{
|
|
11242
11806
|
rating: averageRating,
|
|
11243
|
-
css:
|
|
11807
|
+
css: import_react77.css`
|
|
11244
11808
|
> svg {
|
|
11245
11809
|
height: 40px;
|
|
11246
11810
|
width: 40px;
|
|
@@ -11248,7 +11812,7 @@ var Reviews = ({
|
|
|
11248
11812
|
`
|
|
11249
11813
|
}
|
|
11250
11814
|
),
|
|
11251
|
-
/* @__PURE__ */ (0,
|
|
11815
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
11252
11816
|
"Overall Rating \u2022 ",
|
|
11253
11817
|
totalReviews,
|
|
11254
11818
|
" Review",
|
|
@@ -11257,14 +11821,14 @@ var Reviews = ({
|
|
|
11257
11821
|
]
|
|
11258
11822
|
}
|
|
11259
11823
|
),
|
|
11260
|
-
/* @__PURE__ */ (0,
|
|
11824
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
11261
11825
|
Box_default,
|
|
11262
11826
|
{
|
|
11263
11827
|
display: "flex",
|
|
11264
11828
|
flexDirection: "column",
|
|
11265
11829
|
gap: "var(--spacing-2)",
|
|
11266
11830
|
width: "100%",
|
|
11267
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
11831
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
11268
11832
|
}
|
|
11269
11833
|
)
|
|
11270
11834
|
]
|
|
@@ -11274,7 +11838,7 @@ var Reviews = ({
|
|
|
11274
11838
|
var Reviews_default = Reviews;
|
|
11275
11839
|
|
|
11276
11840
|
// src/Reviews/ReviewsShowcase.tsx
|
|
11277
|
-
var
|
|
11841
|
+
var import_jsx_runtime271 = require("@emotion/react/jsx-runtime");
|
|
11278
11842
|
var ReviewsShowcase = () => {
|
|
11279
11843
|
const sampleData = {
|
|
11280
11844
|
averageRating: 4,
|
|
@@ -11296,7 +11860,7 @@ var ReviewsShowcase = () => {
|
|
|
11296
11860
|
{ label: "Game Abundance", rating: 5 }
|
|
11297
11861
|
]
|
|
11298
11862
|
};
|
|
11299
|
-
return /* @__PURE__ */ (0,
|
|
11863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
|
|
11300
11864
|
Box_default,
|
|
11301
11865
|
{
|
|
11302
11866
|
display: "flex",
|
|
@@ -11304,24 +11868,24 @@ var ReviewsShowcase = () => {
|
|
|
11304
11868
|
gap: "var(--spacing-8)",
|
|
11305
11869
|
p: "var(--spacing-6)",
|
|
11306
11870
|
children: [
|
|
11307
|
-
/* @__PURE__ */ (0,
|
|
11308
|
-
/* @__PURE__ */ (0,
|
|
11309
|
-
/* @__PURE__ */ (0,
|
|
11310
|
-
/* @__PURE__ */ (0,
|
|
11871
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
11872
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
11873
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
11874
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Reviews_default, { ...sampleData }) })
|
|
11311
11875
|
] }),
|
|
11312
|
-
/* @__PURE__ */ (0,
|
|
11313
|
-
/* @__PURE__ */ (0,
|
|
11314
|
-
/* @__PURE__ */ (0,
|
|
11876
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
11877
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
11878
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Reviews_default, { ...highRatingData }) })
|
|
11315
11879
|
] }),
|
|
11316
|
-
/* @__PURE__ */ (0,
|
|
11317
|
-
/* @__PURE__ */ (0,
|
|
11318
|
-
/* @__PURE__ */ (0,
|
|
11880
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
11881
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
11882
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
11319
11883
|
Box_default,
|
|
11320
11884
|
{
|
|
11321
11885
|
maxWidth: "320px",
|
|
11322
11886
|
border: "1px solid var(--color-neutral-200)",
|
|
11323
11887
|
p: "var(--spacing-4)",
|
|
11324
|
-
children: /* @__PURE__ */ (0,
|
|
11888
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Reviews_default, { ...sampleData })
|
|
11325
11889
|
}
|
|
11326
11890
|
)
|
|
11327
11891
|
] })
|
|
@@ -11367,6 +11931,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
11367
11931
|
LayoutTokens,
|
|
11368
11932
|
ListingChat,
|
|
11369
11933
|
Logo,
|
|
11934
|
+
LottieAnimations,
|
|
11370
11935
|
MarkdownContent,
|
|
11371
11936
|
MessageBubble,
|
|
11372
11937
|
Modal,
|
|
@@ -11396,6 +11961,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
11396
11961
|
WidgetPanel,
|
|
11397
11962
|
WidgetTrigger,
|
|
11398
11963
|
globalStyles,
|
|
11964
|
+
lottieAnimations,
|
|
11399
11965
|
styles,
|
|
11400
11966
|
useBottomDrawer,
|
|
11401
11967
|
useBottomDrawerHook
|