sag_components 2.0.0-beta322 → 2.0.0-beta324

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.js CHANGED
@@ -10657,24 +10657,23 @@ const QuarterPopupPicker = ({
10657
10657
  };
10658
10658
 
10659
10659
  /* eslint-disable import/no-extraneous-dependencies */
10660
- const QuarterPicker = _ref => {
10661
- let {
10662
- availableQuarters,
10663
- // ["Q1-2024"]
10664
- label,
10665
- onChange,
10666
- borderRadius,
10667
- required,
10668
- width,
10669
- height,
10670
- placeholder,
10671
- disabled,
10672
- borderColor,
10673
- borderColorFocus,
10674
- textColor,
10675
- selectedValue,
10676
- startYear
10677
- } = _ref;
10660
+ const QuarterPicker = ({
10661
+ availableQuarters,
10662
+ // ["Q1-2024"]
10663
+ label,
10664
+ onChange,
10665
+ borderRadius,
10666
+ required,
10667
+ width,
10668
+ height,
10669
+ placeholder,
10670
+ disabled,
10671
+ borderColor,
10672
+ borderColorFocus,
10673
+ textColor,
10674
+ selectedValue,
10675
+ startYear
10676
+ }) => {
10678
10677
  const [isFocused, setIsFocused] = React$1.useState(false);
10679
10678
  const [isOpen, setIsOpen] = React$1.useState(false);
10680
10679
  const [value, setValue] = React$1.useState('');
@@ -11116,23 +11115,22 @@ const MonthPopupPicker = ({
11116
11115
  };
11117
11116
 
11118
11117
  /* eslint-disable import/no-extraneous-dependencies */
11119
- const MonthPicker = _ref => {
11120
- let {
11121
- availableMonths,
11122
- label,
11123
- onChange,
11124
- borderRadius,
11125
- required,
11126
- width,
11127
- height,
11128
- placeholder,
11129
- disabled,
11130
- borderColor,
11131
- borderColorFocus,
11132
- textColor,
11133
- selectedValue,
11134
- startYear
11135
- } = _ref;
11118
+ const MonthPicker = ({
11119
+ availableMonths,
11120
+ label,
11121
+ onChange,
11122
+ borderRadius,
11123
+ required,
11124
+ width,
11125
+ height,
11126
+ placeholder,
11127
+ disabled,
11128
+ borderColor,
11129
+ borderColorFocus,
11130
+ textColor,
11131
+ selectedValue,
11132
+ startYear
11133
+ }) => {
11136
11134
  const [isFocused, setIsFocused] = React$1.useState(false);
11137
11135
  const [isOpen, setIsOpen] = React$1.useState(false);
11138
11136
  const [value, setValue] = React$1.useState('');
@@ -24249,24 +24247,23 @@ const DeleteIcon = styled__default["default"].div`
24249
24247
  position: absolute;
24250
24248
  `;
24251
24249
 
24252
- const QuickFilterDropdownSingle = _ref => {
24253
- let {
24254
- label,
24255
- hoverColor,
24256
- options,
24257
- selectedValue,
24258
- placeHolder,
24259
- optionHoverColor = '#edf6ff',
24260
- selectedOptionColor = "#C7E4FF",
24261
- onChange,
24262
- disabled,
24263
- width,
24264
- error,
24265
- errorMessage,
24266
- xIconShow,
24267
- labelColor,
24268
- showLabelOnTop
24269
- } = _ref;
24250
+ const QuickFilterDropdownSingle = ({
24251
+ label,
24252
+ hoverColor,
24253
+ options,
24254
+ selectedValue,
24255
+ placeHolder,
24256
+ optionHoverColor = '#edf6ff',
24257
+ selectedOptionColor = "#C7E4FF",
24258
+ onChange,
24259
+ disabled,
24260
+ width,
24261
+ error,
24262
+ errorMessage,
24263
+ xIconShow,
24264
+ labelColor,
24265
+ showLabelOnTop
24266
+ }) => {
24270
24267
  const [isFocused, setIsFocused] = React$1.useState(false);
24271
24268
  const [showOptions, setShowOptions] = React$1.useState(false);
24272
24269
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24724,27 +24721,26 @@ const IconContainer$2 = styled__default["default"].div`
24724
24721
  cursor: pointer;
24725
24722
  `;
24726
24723
 
24727
- const QuickFilterDropdownMultiSelection = _ref => {
24728
- let {
24729
- label,
24730
- labelEmptyValue,
24731
- options,
24732
- selectedValue,
24733
- placeHolder,
24734
- onChange,
24735
- required,
24736
- disabled,
24737
- width,
24738
- height,
24739
- error,
24740
- errorMessage,
24741
- labelColor,
24742
- optionHoverColor = '#edf6ff',
24743
- xIconShow,
24744
- checkBoxColor,
24745
- showLabelOnTop,
24746
- dropdownHeight
24747
- } = _ref;
24724
+ const QuickFilterDropdownMultiSelection = ({
24725
+ label,
24726
+ labelEmptyValue,
24727
+ options,
24728
+ selectedValue,
24729
+ placeHolder,
24730
+ onChange,
24731
+ required,
24732
+ disabled,
24733
+ width,
24734
+ height,
24735
+ error,
24736
+ errorMessage,
24737
+ labelColor,
24738
+ optionHoverColor = '#edf6ff',
24739
+ xIconShow,
24740
+ checkBoxColor,
24741
+ showLabelOnTop,
24742
+ dropdownHeight
24743
+ }) => {
24748
24744
  const [isFocused, setIsFocused] = React$1.useState(false);
24749
24745
  const [showOptions, setShowOptions] = React$1.useState(false);
24750
24746
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36290,9 +36286,9 @@ const ToggleSlider = styled__default["default"].span`
36290
36286
  }
36291
36287
  `;
36292
36288
 
36293
- /**
36294
- * ToggleSwitch component for on/off states.
36295
- * Supports small/large sizes and disabled state.
36289
+ /**
36290
+ * ToggleSwitch component for on/off states.
36291
+ * Supports small/large sizes and disabled state.
36296
36292
  */
36297
36293
  function ToggleSwitch(_ref) {
36298
36294
  let {
@@ -44098,1852 +44094,6 @@ TableBody.propTypes = {
44098
44094
  };
44099
44095
  TableBody.displayName = "TableBody";
44100
44096
 
44101
- var nm$1 = "calendar_lottie";
44102
- var ddd$1 = 0;
44103
- var h$1 = 16;
44104
- var w$1 = 16;
44105
- var meta = {
44106
- a: "Sadjad",
44107
- k: "calendar icon",
44108
- d: "calendar icon for you designed, enjoy",
44109
- g: "LottieFiles AE 0.1.20"
44110
- };
44111
- var layers$1 = [
44112
- {
44113
- ty: 3,
44114
- nm: "Null 1",
44115
- sr: 1,
44116
- st: 0,
44117
- op: 241,
44118
- ip: 0,
44119
- hd: false,
44120
- ddd: 0,
44121
- bm: 0,
44122
- hasMask: false,
44123
- ao: 0,
44124
- ks: {
44125
- a: {
44126
- a: 0,
44127
- k: [
44128
- 0,
44129
- 50,
44130
- 0
44131
- ],
44132
- ix: 1
44133
- },
44134
- s: {
44135
- a: 1,
44136
- k: [
44137
- {
44138
- o: {
44139
- x: 0.89,
44140
- y: 0
44141
- },
44142
- i: {
44143
- x: 0.11,
44144
- y: 1
44145
- },
44146
- s: [
44147
- 6.4,
44148
- 6.4,
44149
- 100
44150
- ],
44151
- t: 8
44152
- },
44153
- {
44154
- o: {
44155
- x: 0.89,
44156
- y: 0
44157
- },
44158
- i: {
44159
- x: 0.11,
44160
- y: 1
44161
- },
44162
- s: [
44163
- 5.12,
44164
- 5.12,
44165
- 100
44166
- ],
44167
- t: 14
44168
- },
44169
- {
44170
- o: {
44171
- x: 0.89,
44172
- y: 0
44173
- },
44174
- i: {
44175
- x: 0.11,
44176
- y: 1
44177
- },
44178
- s: [
44179
- 5.12,
44180
- 5.12,
44181
- 100
44182
- ],
44183
- t: 31
44184
- },
44185
- {
44186
- s: [
44187
- 6.4,
44188
- 6.4,
44189
- 100
44190
- ],
44191
- t: 36
44192
- }
44193
- ],
44194
- ix: 6
44195
- },
44196
- sk: {
44197
- a: 0,
44198
- k: 0
44199
- },
44200
- p: {
44201
- a: 0,
44202
- k: [
44203
- 8,
44204
- 11.2,
44205
- 0
44206
- ],
44207
- ix: 2
44208
- },
44209
- r: {
44210
- a: 0,
44211
- k: 0,
44212
- ix: 10
44213
- },
44214
- sa: {
44215
- a: 0,
44216
- k: 0
44217
- },
44218
- o: {
44219
- a: 0,
44220
- k: 0,
44221
- ix: 11
44222
- }
44223
- },
44224
- ef: [
44225
- ],
44226
- ind: 1
44227
- },
44228
- {
44229
- ty: 4,
44230
- nm: "pin Outlines",
44231
- sr: 1,
44232
- st: 0,
44233
- op: 241,
44234
- ip: 0,
44235
- hd: false,
44236
- ddd: 0,
44237
- bm: 0,
44238
- hasMask: false,
44239
- ao: 0,
44240
- ks: {
44241
- a: {
44242
- a: 0,
44243
- k: [
44244
- 39.833,
44245
- 23.166,
44246
- 0
44247
- ],
44248
- ix: 1
44249
- },
44250
- s: {
44251
- a: 0,
44252
- k: [
44253
- 100,
44254
- 100,
44255
- 100
44256
- ],
44257
- ix: 6
44258
- },
44259
- sk: {
44260
- a: 0,
44261
- k: 0
44262
- },
44263
- p: {
44264
- a: 0,
44265
- k: [
44266
- 0,
44267
- -66.667,
44268
- 0
44269
- ],
44270
- ix: 2
44271
- },
44272
- r: {
44273
- a: 0,
44274
- k: 0,
44275
- ix: 10
44276
- },
44277
- sa: {
44278
- a: 0,
44279
- k: 0
44280
- },
44281
- o: {
44282
- a: 0,
44283
- k: 100,
44284
- ix: 11
44285
- }
44286
- },
44287
- ef: [
44288
- ],
44289
- shapes: [
44290
- {
44291
- ty: "gr",
44292
- bm: 0,
44293
- hd: false,
44294
- mn: "ADBE Vector Group",
44295
- nm: "Group 1",
44296
- ix: 1,
44297
- cix: 2,
44298
- np: 2,
44299
- it: [
44300
- {
44301
- ty: "sh",
44302
- bm: 0,
44303
- hd: false,
44304
- mn: "ADBE Vector Shape - Group",
44305
- nm: "Path 1",
44306
- ix: 1,
44307
- d: 1,
44308
- ks: {
44309
- a: 0,
44310
- k: {
44311
- c: false,
44312
- i: [
44313
- [
44314
- 0,
44315
- 0
44316
- ],
44317
- [
44318
- 0,
44319
- 0
44320
- ]
44321
- ],
44322
- o: [
44323
- [
44324
- 0,
44325
- 0
44326
- ],
44327
- [
44328
- 0,
44329
- 0
44330
- ]
44331
- ],
44332
- v: [
44333
- [
44334
- 73.166,
44335
- 6.5
44336
- ],
44337
- [
44338
- 73.166,
44339
- 39.833
44340
- ]
44341
- ]
44342
- },
44343
- ix: 2
44344
- }
44345
- },
44346
- {
44347
- ty: "st",
44348
- bm: 0,
44349
- hd: false,
44350
- mn: "ADBE Vector Graphic - Stroke",
44351
- nm: "Stroke 1",
44352
- lc: 2,
44353
- lj: 2,
44354
- ml: 1,
44355
- o: {
44356
- a: 0,
44357
- k: 100,
44358
- ix: 4
44359
- },
44360
- w: {
44361
- a: 0,
44362
- k: 13,
44363
- ix: 5
44364
- },
44365
- c: {
44366
- a: 0,
44367
- k: [
44368
- 0.0235,
44369
- 0.4039,
44370
- 0.4078
44371
- ],
44372
- ix: 3
44373
- }
44374
- },
44375
- {
44376
- ty: "tr",
44377
- a: {
44378
- a: 0,
44379
- k: [
44380
- 0,
44381
- 0
44382
- ],
44383
- ix: 1
44384
- },
44385
- s: {
44386
- a: 0,
44387
- k: [
44388
- 100,
44389
- 100
44390
- ],
44391
- ix: 3
44392
- },
44393
- sk: {
44394
- a: 0,
44395
- k: 0,
44396
- ix: 4
44397
- },
44398
- p: {
44399
- a: 0,
44400
- k: [
44401
- 0,
44402
- 0
44403
- ],
44404
- ix: 2
44405
- },
44406
- r: {
44407
- a: 0,
44408
- k: 0,
44409
- ix: 6
44410
- },
44411
- sa: {
44412
- a: 0,
44413
- k: 0,
44414
- ix: 5
44415
- },
44416
- o: {
44417
- a: 0,
44418
- k: 100,
44419
- ix: 7
44420
- }
44421
- }
44422
- ]
44423
- },
44424
- {
44425
- ty: "gr",
44426
- bm: 0,
44427
- hd: false,
44428
- mn: "ADBE Vector Group",
44429
- nm: "Group 2",
44430
- ix: 2,
44431
- cix: 2,
44432
- np: 2,
44433
- it: [
44434
- {
44435
- ty: "sh",
44436
- bm: 0,
44437
- hd: false,
44438
- mn: "ADBE Vector Shape - Group",
44439
- nm: "Path 1",
44440
- ix: 1,
44441
- d: 1,
44442
- ks: {
44443
- a: 0,
44444
- k: {
44445
- c: false,
44446
- i: [
44447
- [
44448
- 0,
44449
- 0
44450
- ],
44451
- [
44452
- 0,
44453
- 0
44454
- ]
44455
- ],
44456
- o: [
44457
- [
44458
- 0,
44459
- 0
44460
- ],
44461
- [
44462
- 0,
44463
- 0
44464
- ]
44465
- ],
44466
- v: [
44467
- [
44468
- 6.5,
44469
- 6.5
44470
- ],
44471
- [
44472
- 6.5,
44473
- 39.833
44474
- ]
44475
- ]
44476
- },
44477
- ix: 2
44478
- }
44479
- },
44480
- {
44481
- ty: "st",
44482
- bm: 0,
44483
- hd: false,
44484
- mn: "ADBE Vector Graphic - Stroke",
44485
- nm: "Stroke 1",
44486
- lc: 2,
44487
- lj: 2,
44488
- ml: 1,
44489
- o: {
44490
- a: 0,
44491
- k: 100,
44492
- ix: 4
44493
- },
44494
- w: {
44495
- a: 0,
44496
- k: 13,
44497
- ix: 5
44498
- },
44499
- c: {
44500
- a: 0,
44501
- k: [
44502
- 0.0235,
44503
- 0.4039,
44504
- 0.4078
44505
- ],
44506
- ix: 3
44507
- }
44508
- },
44509
- {
44510
- ty: "tr",
44511
- a: {
44512
- a: 0,
44513
- k: [
44514
- 0,
44515
- 0
44516
- ],
44517
- ix: 1
44518
- },
44519
- s: {
44520
- a: 0,
44521
- k: [
44522
- 100,
44523
- 100
44524
- ],
44525
- ix: 3
44526
- },
44527
- sk: {
44528
- a: 0,
44529
- k: 0,
44530
- ix: 4
44531
- },
44532
- p: {
44533
- a: 0,
44534
- k: [
44535
- 0,
44536
- 0
44537
- ],
44538
- ix: 2
44539
- },
44540
- r: {
44541
- a: 0,
44542
- k: 0,
44543
- ix: 6
44544
- },
44545
- sa: {
44546
- a: 0,
44547
- k: 0,
44548
- ix: 5
44549
- },
44550
- o: {
44551
- a: 0,
44552
- k: 100,
44553
- ix: 7
44554
- }
44555
- }
44556
- ]
44557
- }
44558
- ],
44559
- ind: 2,
44560
- parent: 1
44561
- },
44562
- {
44563
- ty: 4,
44564
- nm: "line Outlines",
44565
- sr: 1,
44566
- st: 0,
44567
- op: 241,
44568
- ip: 0,
44569
- hd: false,
44570
- ddd: 0,
44571
- bm: 0,
44572
- hasMask: false,
44573
- ao: 0,
44574
- ks: {
44575
- a: {
44576
- a: 0,
44577
- k: [
44578
- 81.5,
44579
- 6.5,
44580
- 0
44581
- ],
44582
- ix: 1
44583
- },
44584
- s: {
44585
- a: 0,
44586
- k: [
44587
- 100,
44588
- 100,
44589
- 100
44590
- ],
44591
- ix: 6
44592
- },
44593
- sk: {
44594
- a: 0,
44595
- k: 0
44596
- },
44597
- p: {
44598
- a: 1,
44599
- k: [
44600
- {
44601
- o: {
44602
- x: 0.66,
44603
- y: 0
44604
- },
44605
- i: {
44606
- x: 0.34,
44607
- y: 1
44608
- },
44609
- s: [
44610
- 0,
44611
- -16.667,
44612
- 0
44613
- ],
44614
- t: 8,
44615
- ti: [
44616
- 0,
44617
- 8.333,
44618
- 0
44619
- ],
44620
- to: [
44621
- 0,
44622
- -14.667,
44623
- 0
44624
- ]
44625
- },
44626
- {
44627
- o: {
44628
- x: 0.66,
44629
- y: 0
44630
- },
44631
- i: {
44632
- x: 0.34,
44633
- y: 1
44634
- },
44635
- s: [
44636
- 0,
44637
- -104.667,
44638
- 0
44639
- ],
44640
- t: 23,
44641
- ti: [
44642
- 0,
44643
- -6.333,
44644
- 0
44645
- ],
44646
- to: [
44647
- 0,
44648
- -8.333,
44649
- 0
44650
- ]
44651
- },
44652
- {
44653
- s: [
44654
- 0,
44655
- -66.667,
44656
- 0
44657
- ],
44658
- t: 36
44659
- }
44660
- ],
44661
- ix: 2
44662
- },
44663
- r: {
44664
- a: 0,
44665
- k: 0,
44666
- ix: 10
44667
- },
44668
- sa: {
44669
- a: 0,
44670
- k: 0
44671
- },
44672
- o: {
44673
- a: 0,
44674
- k: 100,
44675
- ix: 11
44676
- }
44677
- },
44678
- ef: [
44679
- ],
44680
- shapes: [
44681
- {
44682
- ty: "gr",
44683
- bm: 0,
44684
- hd: false,
44685
- mn: "ADBE Vector Group",
44686
- nm: "Group 1",
44687
- ix: 1,
44688
- cix: 2,
44689
- np: 2,
44690
- it: [
44691
- {
44692
- ty: "sh",
44693
- bm: 0,
44694
- hd: false,
44695
- mn: "ADBE Vector Shape - Group",
44696
- nm: "Path 1",
44697
- ix: 1,
44698
- d: 1,
44699
- ks: {
44700
- a: 1,
44701
- k: [
44702
- {
44703
- o: {
44704
- x: 0.66,
44705
- y: 0
44706
- },
44707
- i: {
44708
- x: 0.34,
44709
- y: 1
44710
- },
44711
- s: [
44712
- {
44713
- c: false,
44714
- i: [
44715
- [
44716
- 0,
44717
- 0
44718
- ],
44719
- [
44720
- 0,
44721
- 0
44722
- ]
44723
- ],
44724
- o: [
44725
- [
44726
- 0,
44727
- 0
44728
- ],
44729
- [
44730
- 0,
44731
- 0
44732
- ]
44733
- ],
44734
- v: [
44735
- [
44736
- 6.5,
44737
- 6.5
44738
- ],
44739
- [
44740
- 156.5,
44741
- 6.5
44742
- ]
44743
- ]
44744
- }
44745
- ],
44746
- t: 8
44747
- },
44748
- {
44749
- o: {
44750
- x: 0.66,
44751
- y: 0
44752
- },
44753
- i: {
44754
- x: 0.34,
44755
- y: 1
44756
- },
44757
- s: [
44758
- {
44759
- c: false,
44760
- i: [
44761
- [
44762
- 0,
44763
- 0
44764
- ],
44765
- [
44766
- 0,
44767
- 0
44768
- ]
44769
- ],
44770
- o: [
44771
- [
44772
- 0,
44773
- 0
44774
- ],
44775
- [
44776
- 0,
44777
- 0
44778
- ]
44779
- ],
44780
- v: [
44781
- [
44782
- 6.5,
44783
- 6.5
44784
- ],
44785
- [
44786
- 156.5,
44787
- 6.5
44788
- ]
44789
- ]
44790
- }
44791
- ],
44792
- t: 30
44793
- },
44794
- {
44795
- s: [
44796
- {
44797
- c: false,
44798
- i: [
44799
- [
44800
- 0,
44801
- 0
44802
- ],
44803
- [
44804
- 0,
44805
- 0
44806
- ]
44807
- ],
44808
- o: [
44809
- [
44810
- 0,
44811
- 0
44812
- ],
44813
- [
44814
- 0,
44815
- 0
44816
- ]
44817
- ],
44818
- v: [
44819
- [
44820
- 20.5,
44821
- 6.583
44822
- ],
44823
- [
44824
- 141,
44825
- 6.583
44826
- ]
44827
- ]
44828
- }
44829
- ],
44830
- t: 36
44831
- }
44832
- ],
44833
- ix: 2
44834
- }
44835
- },
44836
- {
44837
- ty: "st",
44838
- bm: 0,
44839
- hd: false,
44840
- mn: "ADBE Vector Graphic - Stroke",
44841
- nm: "Stroke 1",
44842
- lc: 2,
44843
- lj: 2,
44844
- ml: 1,
44845
- o: {
44846
- a: 0,
44847
- k: 100,
44848
- ix: 4
44849
- },
44850
- w: {
44851
- a: 0,
44852
- k: 13,
44853
- ix: 5
44854
- },
44855
- c: {
44856
- a: 0,
44857
- k: [
44858
- 0.0235,
44859
- 0.4039,
44860
- 0.4078
44861
- ],
44862
- ix: 3
44863
- }
44864
- },
44865
- {
44866
- ty: "tr",
44867
- a: {
44868
- a: 0,
44869
- k: [
44870
- 0,
44871
- 0
44872
- ],
44873
- ix: 1
44874
- },
44875
- s: {
44876
- a: 0,
44877
- k: [
44878
- 100,
44879
- 100
44880
- ],
44881
- ix: 3
44882
- },
44883
- sk: {
44884
- a: 0,
44885
- k: 0,
44886
- ix: 4
44887
- },
44888
- p: {
44889
- a: 0,
44890
- k: [
44891
- 0,
44892
- 0
44893
- ],
44894
- ix: 2
44895
- },
44896
- r: {
44897
- a: 0,
44898
- k: 0,
44899
- ix: 6
44900
- },
44901
- sa: {
44902
- a: 0,
44903
- k: 0,
44904
- ix: 5
44905
- },
44906
- o: {
44907
- a: 0,
44908
- k: 100,
44909
- ix: 7
44910
- }
44911
- }
44912
- ]
44913
- }
44914
- ],
44915
- ind: 3,
44916
- parent: 1
44917
- },
44918
- {
44919
- ty: 4,
44920
- nm: "line Outlines 2",
44921
- sr: 1,
44922
- st: 0,
44923
- op: 241,
44924
- ip: 0,
44925
- hd: false,
44926
- ddd: 0,
44927
- bm: 0,
44928
- hasMask: false,
44929
- ao: 0,
44930
- ks: {
44931
- a: {
44932
- a: 0,
44933
- k: [
44934
- 81.5,
44935
- 6.5,
44936
- 0
44937
- ],
44938
- ix: 1
44939
- },
44940
- s: {
44941
- a: 0,
44942
- k: [
44943
- 100,
44944
- 100,
44945
- 100
44946
- ],
44947
- ix: 6
44948
- },
44949
- sk: {
44950
- a: 0,
44951
- k: 0
44952
- },
44953
- p: {
44954
- a: 0,
44955
- k: [
44956
- 0,
44957
- -16.667,
44958
- 0
44959
- ],
44960
- ix: 2
44961
- },
44962
- r: {
44963
- a: 0,
44964
- k: 0,
44965
- ix: 10
44966
- },
44967
- sa: {
44968
- a: 0,
44969
- k: 0
44970
- },
44971
- o: {
44972
- a: 1,
44973
- k: [
44974
- {
44975
- o: {
44976
- x: 0.167,
44977
- y: 0.167
44978
- },
44979
- i: {
44980
- x: 0.833,
44981
- y: 0.833
44982
- },
44983
- s: [
44984
- 0
44985
- ],
44986
- t: 14
44987
- },
44988
- {
44989
- s: [
44990
- 100
44991
- ],
44992
- t: 15
44993
- }
44994
- ],
44995
- ix: 11
44996
- }
44997
- },
44998
- ef: [
44999
- ],
45000
- shapes: [
45001
- {
45002
- ty: "gr",
45003
- bm: 0,
45004
- hd: false,
45005
- mn: "ADBE Vector Group",
45006
- nm: "Group 1",
45007
- ix: 1,
45008
- cix: 2,
45009
- np: 2,
45010
- it: [
45011
- {
45012
- ty: "sh",
45013
- bm: 0,
45014
- hd: false,
45015
- mn: "ADBE Vector Shape - Group",
45016
- nm: "Path 1",
45017
- ix: 1,
45018
- d: 1,
45019
- ks: {
45020
- a: 0,
45021
- k: {
45022
- c: false,
45023
- i: [
45024
- [
45025
- 0,
45026
- 0
45027
- ],
45028
- [
45029
- 0,
45030
- 0
45031
- ]
45032
- ],
45033
- o: [
45034
- [
45035
- 0,
45036
- 0
45037
- ],
45038
- [
45039
- 0,
45040
- 0
45041
- ]
45042
- ],
45043
- v: [
45044
- [
45045
- 6.5,
45046
- 6.5
45047
- ],
45048
- [
45049
- 156.5,
45050
- 6.5
45051
- ]
45052
- ]
45053
- },
45054
- ix: 2
45055
- }
45056
- },
45057
- {
45058
- ty: "st",
45059
- bm: 0,
45060
- hd: false,
45061
- mn: "ADBE Vector Graphic - Stroke",
45062
- nm: "Stroke 1",
45063
- lc: 2,
45064
- lj: 2,
45065
- ml: 1,
45066
- o: {
45067
- a: 0,
45068
- k: 100,
45069
- ix: 4
45070
- },
45071
- w: {
45072
- a: 0,
45073
- k: 13,
45074
- ix: 5
45075
- },
45076
- c: {
45077
- a: 0,
45078
- k: [
45079
- 0.0235,
45080
- 0.4039,
45081
- 0.4078
45082
- ],
45083
- ix: 3
45084
- }
45085
- },
45086
- {
45087
- ty: "tr",
45088
- a: {
45089
- a: 0,
45090
- k: [
45091
- 0,
45092
- 0
45093
- ],
45094
- ix: 1
45095
- },
45096
- s: {
45097
- a: 0,
45098
- k: [
45099
- 100,
45100
- 100
45101
- ],
45102
- ix: 3
45103
- },
45104
- sk: {
45105
- a: 0,
45106
- k: 0,
45107
- ix: 4
45108
- },
45109
- p: {
45110
- a: 0,
45111
- k: [
45112
- 0,
45113
- 0
45114
- ],
45115
- ix: 2
45116
- },
45117
- r: {
45118
- a: 0,
45119
- k: 0,
45120
- ix: 6
45121
- },
45122
- sa: {
45123
- a: 0,
45124
- k: 0,
45125
- ix: 5
45126
- },
45127
- o: {
45128
- a: 0,
45129
- k: 100,
45130
- ix: 7
45131
- }
45132
- }
45133
- ]
45134
- }
45135
- ],
45136
- ind: 4,
45137
- parent: 1
45138
- },
45139
- {
45140
- ty: 4,
45141
- nm: "page02 Outlines",
45142
- sr: 1,
45143
- st: 0,
45144
- op: 70,
45145
- ip: 0,
45146
- hd: false,
45147
- ddd: 0,
45148
- bm: 0,
45149
- hasMask: false,
45150
- ao: 0,
45151
- ks: {
45152
- a: {
45153
- a: 0,
45154
- k: [
45155
- 88,
45156
- 13,
45157
- 0
45158
- ],
45159
- ix: 1
45160
- },
45161
- s: {
45162
- a: 0,
45163
- k: [
45164
- 100,
45165
- 100,
45166
- 100
45167
- ],
45168
- ix: 6
45169
- },
45170
- sk: {
45171
- a: 0,
45172
- k: 0
45173
- },
45174
- p: {
45175
- a: 0,
45176
- k: [
45177
- -0.001,
45178
- -66.667,
45179
- 0
45180
- ],
45181
- ix: 2
45182
- },
45183
- r: {
45184
- a: 0,
45185
- k: 180,
45186
- ix: 10
45187
- },
45188
- sa: {
45189
- a: 0,
45190
- k: 0
45191
- },
45192
- o: {
45193
- a: 0,
45194
- k: 100,
45195
- ix: 11
45196
- }
45197
- },
45198
- ef: [
45199
- ],
45200
- shapes: [
45201
- {
45202
- ty: "gr",
45203
- bm: 0,
45204
- hd: false,
45205
- mn: "ADBE Vector Group",
45206
- nm: "Group 1",
45207
- ix: 1,
45208
- cix: 2,
45209
- np: 2,
45210
- it: [
45211
- {
45212
- ty: "sh",
45213
- bm: 0,
45214
- hd: false,
45215
- mn: "ADBE Vector Shape - Group",
45216
- nm: "Path 1",
45217
- ix: 1,
45218
- d: 1,
45219
- ks: {
45220
- a: 1,
45221
- k: [
45222
- {
45223
- o: {
45224
- x: 0.66,
45225
- y: 0
45226
- },
45227
- i: {
45228
- x: 0.34,
45229
- y: 1
45230
- },
45231
- s: [
45232
- {
45233
- c: true,
45234
- i: [
45235
- [
45236
- -9.205,
45237
- 0
45238
- ],
45239
- [
45240
- 0,
45241
- 0
45242
- ],
45243
- [
45244
- 0.499,
45245
- 12.166
45246
- ],
45247
- [
45248
- 0,
45249
- 0
45250
- ],
45251
- [
45252
- 9.205,
45253
- 0
45254
- ],
45255
- [
45256
- 0,
45257
- 0
45258
- ],
45259
- [
45260
- -0.673,
45261
- -8
45262
- ],
45263
- [
45264
- 0,
45265
- 0
45266
- ]
45267
- ],
45268
- o: [
45269
- [
45270
- 0,
45271
- 0
45272
- ],
45273
- [
45274
- 9.205,
45275
- 0
45276
- ],
45277
- [
45278
- 0,
45279
- 0
45280
- ],
45281
- [
45282
- -0.673,
45283
- -6
45284
- ],
45285
- [
45286
- 0,
45287
- 0
45288
- ],
45289
- [
45290
- -9.205,
45291
- 0
45292
- ],
45293
- [
45294
- 0,
45295
- 0
45296
- ],
45297
- [
45298
- -0.001,
45299
- 13.166
45300
- ]
45301
- ],
45302
- v: [
45303
- [
45304
- -58.333,
45305
- -75
45306
- ],
45307
- [
45308
- 58.334,
45309
- -75
45310
- ],
45311
- [
45312
- 75.001,
45313
- -89.833
45314
- ],
45315
- [
45316
- 75.173,
45317
- -210.167
45318
- ],
45319
- [
45320
- 58.514,
45321
- -225
45322
- ],
45323
- [
45324
- -58.32,
45325
- -225
45326
- ],
45327
- [
45328
- -74.827,
45329
- -210.167
45330
- ],
45331
- [
45332
- -74.999,
45333
- -92.833
45334
- ]
45335
- ]
45336
- }
45337
- ],
45338
- t: 8
45339
- },
45340
- {
45341
- o: {
45342
- x: 0.66,
45343
- y: 0
45344
- },
45345
- i: {
45346
- x: 0.34,
45347
- y: 1
45348
- },
45349
- s: [
45350
- {
45351
- c: true,
45352
- i: [
45353
- [
45354
- -9.205,
45355
- 0
45356
- ],
45357
- [
45358
- 0,
45359
- 0
45360
- ],
45361
- [
45362
- 0,
45363
- -9.205
45364
- ],
45365
- [
45366
- 0,
45367
- 0
45368
- ],
45369
- [
45370
- 9.205,
45371
- 0
45372
- ],
45373
- [
45374
- 0,
45375
- 0
45376
- ],
45377
- [
45378
- 0,
45379
- 9.205
45380
- ],
45381
- [
45382
- 0,
45383
- 0
45384
- ]
45385
- ],
45386
- o: [
45387
- [
45388
- 0,
45389
- 0
45390
- ],
45391
- [
45392
- 9.205,
45393
- 0
45394
- ],
45395
- [
45396
- 0,
45397
- 0
45398
- ],
45399
- [
45400
- 0,
45401
- 9.205
45402
- ],
45403
- [
45404
- 0,
45405
- 0
45406
- ],
45407
- [
45408
- -9.205,
45409
- 0
45410
- ],
45411
- [
45412
- 0,
45413
- 0
45414
- ],
45415
- [
45416
- 0,
45417
- -9.205
45418
- ]
45419
- ],
45420
- v: [
45421
- [
45422
- -58.333,
45423
- -75
45424
- ],
45425
- [
45426
- 58.334,
45427
- -75
45428
- ],
45429
- [
45430
- 75,
45431
- -58.333
45432
- ],
45433
- [
45434
- 74.754,
45435
- -11.417
45436
- ],
45437
- [
45438
- 58.088,
45439
- 5.25
45440
- ],
45441
- [
45442
- -58.579,
45443
- 5.25
45444
- ],
45445
- [
45446
- -75.246,
45447
- -11.417
45448
- ],
45449
- [
45450
- -75,
45451
- -58.333
45452
- ]
45453
- ]
45454
- }
45455
- ],
45456
- t: 23
45457
- },
45458
- {
45459
- s: [
45460
- {
45461
- c: true,
45462
- i: [
45463
- [
45464
- -9.205,
45465
- 0
45466
- ],
45467
- [
45468
- 0,
45469
- 0
45470
- ],
45471
- [
45472
- -1.001,
45473
- 7.166
45474
- ],
45475
- [
45476
- 0,
45477
- 0
45478
- ],
45479
- [
45480
- 11.663,
45481
- -0.292
45482
- ],
45483
- [
45484
- 0,
45485
- 0
45486
- ],
45487
- [
45488
- 0.119,
45489
- 14.876
45490
- ],
45491
- [
45492
- 0,
45493
- 0
45494
- ]
45495
- ],
45496
- o: [
45497
- [
45498
- 0,
45499
- 0
45500
- ],
45501
- [
45502
- 8.29,
45503
- -0.667
45504
- ],
45505
- [
45506
- 0,
45507
- 0
45508
- ],
45509
- [
45510
- -0.003,
45511
- 12.251
45512
- ],
45513
- [
45514
- 0,
45515
- 0
45516
- ],
45517
- [
45518
- -13.295,
45519
- -1.792
45520
- ],
45521
- [
45522
- 0,
45523
- 0
45524
- ],
45525
- [
45526
- 0.996,
45527
- 5.541
45528
- ]
45529
- ],
45530
- v: [
45531
- [
45532
- -58.333,
45533
- -75
45534
- ],
45535
- [
45536
- 58.334,
45537
- -75
45538
- ],
45539
- [
45540
- 73.876,
45541
- -88.333
45542
- ],
45543
- [
45544
- 74.503,
45545
- -91.667
45546
- ],
45547
- [
45548
- 57.837,
45549
- -75
45550
- ],
45551
- [
45552
- -58.83,
45553
- -75
45554
- ],
45555
- [
45556
- -75.494,
45557
- -96.167
45558
- ],
45559
- [
45560
- -74.621,
45561
- -86.333
45562
- ]
45563
- ]
45564
- }
45565
- ],
45566
- t: 36
45567
- }
45568
- ],
45569
- ix: 2
45570
- }
45571
- },
45572
- {
45573
- ty: "st",
45574
- bm: 0,
45575
- hd: false,
45576
- mn: "ADBE Vector Graphic - Stroke",
45577
- nm: "Stroke 1",
45578
- lc: 2,
45579
- lj: 2,
45580
- ml: 1,
45581
- o: {
45582
- a: 0,
45583
- k: 100,
45584
- ix: 4
45585
- },
45586
- w: {
45587
- a: 0,
45588
- k: 13,
45589
- ix: 5
45590
- },
45591
- c: {
45592
- a: 0,
45593
- k: [
45594
- 0.0235,
45595
- 0.4039,
45596
- 0.4078
45597
- ],
45598
- ix: 3
45599
- }
45600
- },
45601
- {
45602
- ty: "tr",
45603
- a: {
45604
- a: 0,
45605
- k: [
45606
- 0,
45607
- 0
45608
- ],
45609
- ix: 1
45610
- },
45611
- s: {
45612
- a: 0,
45613
- k: [
45614
- 100,
45615
- 100
45616
- ],
45617
- ix: 3
45618
- },
45619
- sk: {
45620
- a: 0,
45621
- k: 0,
45622
- ix: 4
45623
- },
45624
- p: {
45625
- a: 0,
45626
- k: [
45627
- 88,
45628
- 88
45629
- ],
45630
- ix: 2
45631
- },
45632
- r: {
45633
- a: 0,
45634
- k: 0,
45635
- ix: 6
45636
- },
45637
- sa: {
45638
- a: 0,
45639
- k: 0,
45640
- ix: 5
45641
- },
45642
- o: {
45643
- a: 0,
45644
- k: 100,
45645
- ix: 7
45646
- }
45647
- }
45648
- ]
45649
- }
45650
- ],
45651
- ind: 5,
45652
- parent: 1
45653
- },
45654
- {
45655
- ty: 4,
45656
- nm: "page01 Outlines",
45657
- sr: 1,
45658
- st: 0,
45659
- op: 241,
45660
- ip: 0,
45661
- hd: false,
45662
- ddd: 0,
45663
- bm: 0,
45664
- hasMask: false,
45665
- ao: 0,
45666
- ks: {
45667
- a: {
45668
- a: 0,
45669
- k: [
45670
- 88,
45671
- 88,
45672
- 0
45673
- ],
45674
- ix: 1
45675
- },
45676
- s: {
45677
- a: 0,
45678
- k: [
45679
- 100,
45680
- 100,
45681
- 100
45682
- ],
45683
- ix: 6
45684
- },
45685
- sk: {
45686
- a: 0,
45687
- k: 0
45688
- },
45689
- p: {
45690
- a: 0,
45691
- k: [
45692
- -0.001,
45693
- 8.333,
45694
- 0
45695
- ],
45696
- ix: 2
45697
- },
45698
- r: {
45699
- a: 0,
45700
- k: 0,
45701
- ix: 10
45702
- },
45703
- sa: {
45704
- a: 0,
45705
- k: 0
45706
- },
45707
- o: {
45708
- a: 0,
45709
- k: 100,
45710
- ix: 11
45711
- }
45712
- },
45713
- ef: [
45714
- ],
45715
- shapes: [
45716
- {
45717
- ty: "gr",
45718
- bm: 0,
45719
- hd: false,
45720
- mn: "ADBE Vector Group",
45721
- nm: "Group 1",
45722
- ix: 1,
45723
- cix: 2,
45724
- np: 2,
45725
- it: [
45726
- {
45727
- ty: "sh",
45728
- bm: 0,
45729
- hd: false,
45730
- mn: "ADBE Vector Shape - Group",
45731
- nm: "Path 1",
45732
- ix: 1,
45733
- d: 1,
45734
- ks: {
45735
- a: 0,
45736
- k: {
45737
- c: true,
45738
- i: [
45739
- [
45740
- -9.205,
45741
- 0
45742
- ],
45743
- [
45744
- 0,
45745
- 0
45746
- ],
45747
- [
45748
- 0,
45749
- -9.205
45750
- ],
45751
- [
45752
- 0,
45753
- 0
45754
- ],
45755
- [
45756
- 9.205,
45757
- 0
45758
- ],
45759
- [
45760
- 0,
45761
- 0
45762
- ],
45763
- [
45764
- 0,
45765
- 9.205
45766
- ],
45767
- [
45768
- 0,
45769
- 0
45770
- ]
45771
- ],
45772
- o: [
45773
- [
45774
- 0,
45775
- 0
45776
- ],
45777
- [
45778
- 9.205,
45779
- 0
45780
- ],
45781
- [
45782
- 0,
45783
- 0
45784
- ],
45785
- [
45786
- 0,
45787
- 9.205
45788
- ],
45789
- [
45790
- 0,
45791
- 0
45792
- ],
45793
- [
45794
- -9.205,
45795
- 0
45796
- ],
45797
- [
45798
- 0,
45799
- 0
45800
- ],
45801
- [
45802
- 0,
45803
- -9.205
45804
- ]
45805
- ],
45806
- v: [
45807
- [
45808
- -58.333,
45809
- -75
45810
- ],
45811
- [
45812
- 58.334,
45813
- -75
45814
- ],
45815
- [
45816
- 75,
45817
- -58.333
45818
- ],
45819
- [
45820
- 75,
45821
- 58.333
45822
- ],
45823
- [
45824
- 58.334,
45825
- 75
45826
- ],
45827
- [
45828
- -58.333,
45829
- 75
45830
- ],
45831
- [
45832
- -75,
45833
- 58.333
45834
- ],
45835
- [
45836
- -75,
45837
- -58.333
45838
- ]
45839
- ]
45840
- },
45841
- ix: 2
45842
- }
45843
- },
45844
- {
45845
- ty: "st",
45846
- bm: 0,
45847
- hd: false,
45848
- mn: "ADBE Vector Graphic - Stroke",
45849
- nm: "Stroke 1",
45850
- lc: 2,
45851
- lj: 2,
45852
- ml: 1,
45853
- o: {
45854
- a: 0,
45855
- k: 100,
45856
- ix: 4
45857
- },
45858
- w: {
45859
- a: 0,
45860
- k: 13,
45861
- ix: 5
45862
- },
45863
- c: {
45864
- a: 0,
45865
- k: [
45866
- 0.0235,
45867
- 0.4039,
45868
- 0.4078
45869
- ],
45870
- ix: 3
45871
- }
45872
- },
45873
- {
45874
- ty: "tr",
45875
- a: {
45876
- a: 0,
45877
- k: [
45878
- 0,
45879
- 0
45880
- ],
45881
- ix: 1
45882
- },
45883
- s: {
45884
- a: 0,
45885
- k: [
45886
- 100,
45887
- 100
45888
- ],
45889
- ix: 3
45890
- },
45891
- sk: {
45892
- a: 0,
45893
- k: 0,
45894
- ix: 4
45895
- },
45896
- p: {
45897
- a: 0,
45898
- k: [
45899
- 88,
45900
- 88
45901
- ],
45902
- ix: 2
45903
- },
45904
- r: {
45905
- a: 0,
45906
- k: 0,
45907
- ix: 6
45908
- },
45909
- sa: {
45910
- a: 0,
45911
- k: 0,
45912
- ix: 5
45913
- },
45914
- o: {
45915
- a: 0,
45916
- k: 100,
45917
- ix: 7
45918
- }
45919
- }
45920
- ]
45921
- }
45922
- ],
45923
- ind: 6,
45924
- parent: 1
45925
- }
45926
- ];
45927
- var v$1 = "5.5.7";
45928
- var fr$1 = 45;
45929
- var op$1 = 41;
45930
- var ip$1 = 0;
45931
- var assets$1 = [
45932
- ];
45933
- var LoadingAnimation = {
45934
- nm: nm$1,
45935
- ddd: ddd$1,
45936
- h: h$1,
45937
- w: w$1,
45938
- meta: meta,
45939
- layers: layers$1,
45940
- v: v$1,
45941
- fr: fr$1,
45942
- op: op$1,
45943
- ip: ip$1,
45944
- assets: assets$1
45945
- };
45946
-
45947
44097
  var lottie$1 = {exports: {}};
45948
44098
 
45949
44099
  lottie$1.exports;(function(module,exports){typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(global,factory){module.exports=factory();}(commonjsGlobal,function(){var svgNS='http://www.w3.org/2000/svg';var locationHref='';var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function setWebWorker(flag){_useWebWorker=!!flag;};var getWebWorker=function getWebWorker(){return _useWebWorker;};var setLocationHref=function setLocationHref(value){locationHref=value;};var getLocationHref=function getLocationHref(){return locationHref;};function createTag(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
@@ -46844,424 +44994,2474 @@ var useLottie = function useLottie(props, style) {
46844
44994
  return (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.getDuration(inFrames);
46845
44995
  };
46846
44996
  /**
46847
- * Destroy animation
44997
+ * Destroy animation
44998
+ */
44999
+ var destroy = function destroy() {
45000
+ var _a;
45001
+ (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
45002
+ // Removing the reference to the animation so separate cleanups are skipped.
45003
+ // Without it the internal `lottie-react` instance throws exceptions as it already cleared itself on destroy.
45004
+ animationInstanceRef.current = undefined;
45005
+ };
45006
+ /*
45007
+ ======================================
45008
+ LOTTIE
45009
+ ======================================
45010
+ */
45011
+ /**
45012
+ * Load a new animation, and if it's the case, destroy the previous one
45013
+ * @param {Object} forcedConfigs
45014
+ */
45015
+ var loadAnimation = function loadAnimation() {
45016
+ var forcedConfigs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
45017
+ var _a;
45018
+ // Return if the container ref is null
45019
+ if (!animationContainer.current) {
45020
+ return;
45021
+ }
45022
+ // Destroy any previous instance
45023
+ (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
45024
+ // Build the animation configuration
45025
+ var config = _objectSpread2(_objectSpread2(_objectSpread2({}, props), forcedConfigs), {}, {
45026
+ container: animationContainer.current
45027
+ });
45028
+ // Save the animation instance
45029
+ animationInstanceRef.current = lottie.loadAnimation(config);
45030
+ setAnimationLoaded(!!animationInstanceRef.current);
45031
+ // Return a function that will clean up
45032
+ return function () {
45033
+ var _a;
45034
+ (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
45035
+ animationInstanceRef.current = undefined;
45036
+ };
45037
+ };
45038
+ /**
45039
+ * (Re)Initialize when animation data changed
45040
+ */
45041
+ React$1.useEffect(function () {
45042
+ var onUnmount = loadAnimation();
45043
+ // Clean up on unmount
45044
+ return function () {
45045
+ return onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount();
45046
+ };
45047
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45048
+ }, [animationData, loop]);
45049
+ // Update the autoplay state
45050
+ React$1.useEffect(function () {
45051
+ if (!animationInstanceRef.current) {
45052
+ return;
45053
+ }
45054
+ animationInstanceRef.current.autoplay = !!autoplay;
45055
+ }, [autoplay]);
45056
+ // Update the initial segment state
45057
+ React$1.useEffect(function () {
45058
+ if (!animationInstanceRef.current) {
45059
+ return;
45060
+ }
45061
+ // When null should reset to default animation length
45062
+ if (!initialSegment) {
45063
+ animationInstanceRef.current.resetSegments(true);
45064
+ return;
45065
+ }
45066
+ // If it's not a valid segment, do nothing
45067
+ if (!Array.isArray(initialSegment) || !initialSegment.length) {
45068
+ return;
45069
+ }
45070
+ // If the current position it's not in the new segment
45071
+ // set the current position to start
45072
+ if (animationInstanceRef.current.currentRawFrame < initialSegment[0] || animationInstanceRef.current.currentRawFrame > initialSegment[1]) {
45073
+ animationInstanceRef.current.currentRawFrame = initialSegment[0];
45074
+ }
45075
+ // Update the segment
45076
+ animationInstanceRef.current.setSegment(initialSegment[0], initialSegment[1]);
45077
+ }, [initialSegment]);
45078
+ /*
45079
+ ======================================
45080
+ EVENTS
45081
+ ======================================
45082
+ */
45083
+ /**
45084
+ * Reinitialize listener on change
45085
+ */
45086
+ React$1.useEffect(function () {
45087
+ var partialListeners = [{
45088
+ name: "complete",
45089
+ handler: onComplete
45090
+ }, {
45091
+ name: "loopComplete",
45092
+ handler: onLoopComplete
45093
+ }, {
45094
+ name: "enterFrame",
45095
+ handler: onEnterFrame
45096
+ }, {
45097
+ name: "segmentStart",
45098
+ handler: onSegmentStart
45099
+ }, {
45100
+ name: "config_ready",
45101
+ handler: onConfigReady
45102
+ }, {
45103
+ name: "data_ready",
45104
+ handler: onDataReady
45105
+ }, {
45106
+ name: "data_failed",
45107
+ handler: onDataFailed
45108
+ }, {
45109
+ name: "loaded_images",
45110
+ handler: onLoadedImages
45111
+ }, {
45112
+ name: "DOMLoaded",
45113
+ handler: onDOMLoaded
45114
+ }, {
45115
+ name: "destroy",
45116
+ handler: onDestroy
45117
+ }];
45118
+ var listeners = partialListeners.filter(function (listener) {
45119
+ return listener.handler != null;
45120
+ });
45121
+ if (!listeners.length) {
45122
+ return;
45123
+ }
45124
+ var deregisterList = listeners.map(
45125
+ /**
45126
+ * Handle the process of adding an event listener
45127
+ * @param {Listener} listener
45128
+ * @return {Function} Function that deregister the listener
45129
+ */
45130
+ function (listener) {
45131
+ var _a;
45132
+ (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener(listener.name, listener.handler);
45133
+ // Return a function to deregister this listener
45134
+ return function () {
45135
+ var _a;
45136
+ (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(listener.name, listener.handler);
45137
+ };
45138
+ });
45139
+ // Deregister listeners on unmount
45140
+ return function () {
45141
+ deregisterList.forEach(function (deregister) {
45142
+ return deregister();
45143
+ });
45144
+ };
45145
+ }, [onComplete, onLoopComplete, onEnterFrame, onSegmentStart, onConfigReady, onDataReady, onDataFailed, onLoadedImages, onDOMLoaded, onDestroy]);
45146
+ /**
45147
+ * Build the animation view
45148
+ */
45149
+ var View = /*#__PURE__*/React__default["default"].createElement("div", _objectSpread2({
45150
+ style: style,
45151
+ ref: animationContainer
45152
+ }, rest));
45153
+ return {
45154
+ View: View,
45155
+ play: play,
45156
+ stop: stop,
45157
+ pause: pause,
45158
+ setSpeed: setSpeed,
45159
+ goToAndStop: goToAndStop,
45160
+ goToAndPlay: goToAndPlay,
45161
+ setDirection: setDirection,
45162
+ playSegments: playSegments,
45163
+ setSubframe: setSubframe,
45164
+ getDuration: getDuration,
45165
+ destroy: destroy,
45166
+ animationContainerRef: animationContainer,
45167
+ animationLoaded: animationLoaded,
45168
+ animationItem: animationInstanceRef.current
45169
+ };
45170
+ };
45171
+
45172
+ // helpers
45173
+ function getContainerVisibility(container) {
45174
+ var _container$getBoundin = container.getBoundingClientRect(),
45175
+ top = _container$getBoundin.top,
45176
+ height = _container$getBoundin.height;
45177
+ var current = window.innerHeight - top;
45178
+ var max = window.innerHeight + height;
45179
+ return current / max;
45180
+ }
45181
+ function getContainerCursorPosition(container, cursorX, cursorY) {
45182
+ var _container$getBoundin2 = container.getBoundingClientRect(),
45183
+ top = _container$getBoundin2.top,
45184
+ left = _container$getBoundin2.left,
45185
+ width = _container$getBoundin2.width,
45186
+ height = _container$getBoundin2.height;
45187
+ var x = (cursorX - left) / width;
45188
+ var y = (cursorY - top) / height;
45189
+ return {
45190
+ x: x,
45191
+ y: y
45192
+ };
45193
+ }
45194
+ var useInitInteractivity = function useInitInteractivity(_ref) {
45195
+ var wrapperRef = _ref.wrapperRef,
45196
+ animationItem = _ref.animationItem,
45197
+ mode = _ref.mode,
45198
+ actions = _ref.actions;
45199
+ React$1.useEffect(function () {
45200
+ var wrapper = wrapperRef.current;
45201
+ if (!wrapper || !animationItem || !actions.length) {
45202
+ return;
45203
+ }
45204
+ animationItem.stop();
45205
+ var scrollModeHandler = function scrollModeHandler() {
45206
+ var assignedSegment = null;
45207
+ var scrollHandler = function scrollHandler() {
45208
+ var currentPercent = getContainerVisibility(wrapper);
45209
+ // Find the first action that satisfies the current position conditions
45210
+ var action = actions.find(function (_ref2) {
45211
+ var visibility = _ref2.visibility;
45212
+ return visibility && currentPercent >= visibility[0] && currentPercent <= visibility[1];
45213
+ });
45214
+ // Skip if no matching action was found!
45215
+ if (!action) {
45216
+ return;
45217
+ }
45218
+ if (action.type === "seek" && action.visibility && action.frames.length === 2) {
45219
+ // Seek: Go to a frame based on player scroll position action
45220
+ var frameToGo = action.frames[0] + Math.ceil((currentPercent - action.visibility[0]) / (action.visibility[1] - action.visibility[0]) * action.frames[1]);
45221
+ //! goToAndStop must be relative to the start of the current segment
45222
+ animationItem.goToAndStop(frameToGo - animationItem.firstFrame - 1, true);
45223
+ }
45224
+ if (action.type === "loop") {
45225
+ // Loop: Loop a given frames
45226
+ if (assignedSegment === null) {
45227
+ // if not playing any segments currently. play those segments and save to state
45228
+ animationItem.playSegments(action.frames, true);
45229
+ assignedSegment = action.frames;
45230
+ } else {
45231
+ // if playing any segments currently.
45232
+ //check if segments in state are equal to the frames selected by action
45233
+ if (assignedSegment !== action.frames) {
45234
+ // if they are not equal. new segments are to be loaded
45235
+ animationItem.playSegments(action.frames, true);
45236
+ assignedSegment = action.frames;
45237
+ } else if (animationItem.isPaused) {
45238
+ // if they are equal the play method must be called only if lottie is paused
45239
+ animationItem.playSegments(action.frames, true);
45240
+ assignedSegment = action.frames;
45241
+ }
45242
+ }
45243
+ }
45244
+ if (action.type === "play" && animationItem.isPaused) {
45245
+ // Play: Reset segments and continue playing full animation from current position
45246
+ animationItem.resetSegments(true);
45247
+ animationItem.play();
45248
+ }
45249
+ if (action.type === "stop") {
45250
+ // Stop: Stop playback
45251
+ animationItem.goToAndStop(action.frames[0] - animationItem.firstFrame - 1, true);
45252
+ }
45253
+ };
45254
+ document.addEventListener("scroll", scrollHandler);
45255
+ return function () {
45256
+ document.removeEventListener("scroll", scrollHandler);
45257
+ };
45258
+ };
45259
+ var cursorModeHandler = function cursorModeHandler() {
45260
+ var handleCursor = function handleCursor(_x, _y) {
45261
+ var x = _x;
45262
+ var y = _y;
45263
+ // Resolve cursor position if cursor is inside container
45264
+ if (x !== -1 && y !== -1) {
45265
+ // Get container cursor position
45266
+ var pos = getContainerCursorPosition(wrapper, x, y);
45267
+ // Use the resolved position
45268
+ x = pos.x;
45269
+ y = pos.y;
45270
+ }
45271
+ // Find the first action that satisfies the current position conditions
45272
+ var action = actions.find(function (_ref3) {
45273
+ var position = _ref3.position;
45274
+ if (position && Array.isArray(position.x) && Array.isArray(position.y)) {
45275
+ return x >= position.x[0] && x <= position.x[1] && y >= position.y[0] && y <= position.y[1];
45276
+ }
45277
+ if (position && !Number.isNaN(position.x) && !Number.isNaN(position.y)) {
45278
+ return x === position.x && y === position.y;
45279
+ }
45280
+ return false;
45281
+ });
45282
+ // Skip if no matching action was found!
45283
+ if (!action) {
45284
+ return;
45285
+ }
45286
+ // Process action types:
45287
+ if (action.type === "seek" && action.position && Array.isArray(action.position.x) && Array.isArray(action.position.y) && action.frames.length === 2) {
45288
+ // Seek: Go to a frame based on player scroll position action
45289
+ var xPercent = (x - action.position.x[0]) / (action.position.x[1] - action.position.x[0]);
45290
+ var yPercent = (y - action.position.y[0]) / (action.position.y[1] - action.position.y[0]);
45291
+ animationItem.playSegments(action.frames, true);
45292
+ animationItem.goToAndStop(Math.ceil((xPercent + yPercent) / 2 * (action.frames[1] - action.frames[0])), true);
45293
+ }
45294
+ if (action.type === "loop") {
45295
+ animationItem.playSegments(action.frames, true);
45296
+ }
45297
+ if (action.type === "play") {
45298
+ // Play: Reset segments and continue playing full animation from current position
45299
+ if (animationItem.isPaused) {
45300
+ animationItem.resetSegments(false);
45301
+ }
45302
+ animationItem.playSegments(action.frames);
45303
+ }
45304
+ if (action.type === "stop") {
45305
+ animationItem.goToAndStop(action.frames[0], true);
45306
+ }
45307
+ };
45308
+ var mouseMoveHandler = function mouseMoveHandler(ev) {
45309
+ handleCursor(ev.clientX, ev.clientY);
45310
+ };
45311
+ var mouseOutHandler = function mouseOutHandler() {
45312
+ handleCursor(-1, -1);
45313
+ };
45314
+ wrapper.addEventListener("mousemove", mouseMoveHandler);
45315
+ wrapper.addEventListener("mouseout", mouseOutHandler);
45316
+ return function () {
45317
+ wrapper.removeEventListener("mousemove", mouseMoveHandler);
45318
+ wrapper.removeEventListener("mouseout", mouseOutHandler);
45319
+ };
45320
+ };
45321
+ switch (mode) {
45322
+ case "scroll":
45323
+ return scrollModeHandler();
45324
+ case "cursor":
45325
+ return cursorModeHandler();
45326
+ }
45327
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45328
+ }, [mode, animationItem]);
45329
+ };
45330
+ var useLottieInteractivity = function useLottieInteractivity(_ref4) {
45331
+ var actions = _ref4.actions,
45332
+ mode = _ref4.mode,
45333
+ lottieObj = _ref4.lottieObj;
45334
+ var animationItem = lottieObj.animationItem,
45335
+ View = lottieObj.View,
45336
+ animationContainerRef = lottieObj.animationContainerRef;
45337
+ useInitInteractivity({
45338
+ actions: actions,
45339
+ animationItem: animationItem,
45340
+ mode: mode,
45341
+ wrapperRef: animationContainerRef
45342
+ });
45343
+ return View;
45344
+ };
45345
+ var _excluded = ["style", "interactivity"];
45346
+ var Lottie = function Lottie(props) {
45347
+ var _a, _b, _c;
45348
+ var style = props.style,
45349
+ interactivity = props.interactivity,
45350
+ lottieProps = _objectWithoutProperties(props, _excluded);
45351
+ /**
45352
+ * Initialize the 'useLottie' hook
46848
45353
  */
46849
- var destroy = function destroy() {
46850
- var _a;
46851
- (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
46852
- // Removing the reference to the animation so separate cleanups are skipped.
46853
- // Without it the internal `lottie-react` instance throws exceptions as it already cleared itself on destroy.
46854
- animationInstanceRef.current = undefined;
46855
- };
46856
- /*
46857
- ======================================
46858
- LOTTIE
46859
- ======================================
46860
- */
45354
+ var _useLottie = useLottie(lottieProps, style),
45355
+ View = _useLottie.View,
45356
+ play = _useLottie.play,
45357
+ stop = _useLottie.stop,
45358
+ pause = _useLottie.pause,
45359
+ setSpeed = _useLottie.setSpeed,
45360
+ goToAndStop = _useLottie.goToAndStop,
45361
+ goToAndPlay = _useLottie.goToAndPlay,
45362
+ setDirection = _useLottie.setDirection,
45363
+ playSegments = _useLottie.playSegments,
45364
+ setSubframe = _useLottie.setSubframe,
45365
+ getDuration = _useLottie.getDuration,
45366
+ destroy = _useLottie.destroy,
45367
+ animationContainerRef = _useLottie.animationContainerRef,
45368
+ animationLoaded = _useLottie.animationLoaded,
45369
+ animationItem = _useLottie.animationItem;
46861
45370
  /**
46862
- * Load a new animation, and if it's the case, destroy the previous one
46863
- * @param {Object} forcedConfigs
45371
+ * Make the hook variables/methods available through the provided 'lottieRef'
46864
45372
  */
46865
- var loadAnimation = function loadAnimation() {
46866
- var forcedConfigs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
46867
- var _a;
46868
- // Return if the container ref is null
46869
- if (!animationContainer.current) {
46870
- return;
45373
+ React$1.useEffect(function () {
45374
+ if (props.lottieRef) {
45375
+ props.lottieRef.current = {
45376
+ play: play,
45377
+ stop: stop,
45378
+ pause: pause,
45379
+ setSpeed: setSpeed,
45380
+ goToAndPlay: goToAndPlay,
45381
+ goToAndStop: goToAndStop,
45382
+ setDirection: setDirection,
45383
+ playSegments: playSegments,
45384
+ setSubframe: setSubframe,
45385
+ getDuration: getDuration,
45386
+ destroy: destroy,
45387
+ animationContainerRef: animationContainerRef,
45388
+ animationLoaded: animationLoaded,
45389
+ animationItem: animationItem
45390
+ };
45391
+ }
45392
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45393
+ }, [(_a = props.lottieRef) === null || _a === void 0 ? void 0 : _a.current]);
45394
+ return useLottieInteractivity({
45395
+ lottieObj: {
45396
+ View: View,
45397
+ play: play,
45398
+ stop: stop,
45399
+ pause: pause,
45400
+ setSpeed: setSpeed,
45401
+ goToAndStop: goToAndStop,
45402
+ goToAndPlay: goToAndPlay,
45403
+ setDirection: setDirection,
45404
+ playSegments: playSegments,
45405
+ setSubframe: setSubframe,
45406
+ getDuration: getDuration,
45407
+ destroy: destroy,
45408
+ animationContainerRef: animationContainerRef,
45409
+ animationLoaded: animationLoaded,
45410
+ animationItem: animationItem
45411
+ },
45412
+ actions: (_b = interactivity === null || interactivity === void 0 ? void 0 : interactivity.actions) !== null && _b !== void 0 ? _b : [],
45413
+ mode: (_c = interactivity === null || interactivity === void 0 ? void 0 : interactivity.mode) !== null && _c !== void 0 ? _c : "scroll"
45414
+ });
45415
+ };
45416
+
45417
+ var nm$1 = "calendar_lottie";
45418
+ var ddd$1 = 0;
45419
+ var h$1 = 16;
45420
+ var w$1 = 16;
45421
+ var meta = {
45422
+ a: "Sadjad",
45423
+ k: "calendar icon",
45424
+ d: "calendar icon for you designed, enjoy",
45425
+ g: "LottieFiles AE 0.1.20"
45426
+ };
45427
+ var layers$1 = [
45428
+ {
45429
+ ty: 3,
45430
+ nm: "Null 1",
45431
+ sr: 1,
45432
+ st: 0,
45433
+ op: 241,
45434
+ ip: 0,
45435
+ hd: false,
45436
+ ddd: 0,
45437
+ bm: 0,
45438
+ hasMask: false,
45439
+ ao: 0,
45440
+ ks: {
45441
+ a: {
45442
+ a: 0,
45443
+ k: [
45444
+ 0,
45445
+ 50,
45446
+ 0
45447
+ ],
45448
+ ix: 1
45449
+ },
45450
+ s: {
45451
+ a: 1,
45452
+ k: [
45453
+ {
45454
+ o: {
45455
+ x: 0.89,
45456
+ y: 0
45457
+ },
45458
+ i: {
45459
+ x: 0.11,
45460
+ y: 1
45461
+ },
45462
+ s: [
45463
+ 6.4,
45464
+ 6.4,
45465
+ 100
45466
+ ],
45467
+ t: 8
45468
+ },
45469
+ {
45470
+ o: {
45471
+ x: 0.89,
45472
+ y: 0
45473
+ },
45474
+ i: {
45475
+ x: 0.11,
45476
+ y: 1
45477
+ },
45478
+ s: [
45479
+ 5.12,
45480
+ 5.12,
45481
+ 100
45482
+ ],
45483
+ t: 14
45484
+ },
45485
+ {
45486
+ o: {
45487
+ x: 0.89,
45488
+ y: 0
45489
+ },
45490
+ i: {
45491
+ x: 0.11,
45492
+ y: 1
45493
+ },
45494
+ s: [
45495
+ 5.12,
45496
+ 5.12,
45497
+ 100
45498
+ ],
45499
+ t: 31
45500
+ },
45501
+ {
45502
+ s: [
45503
+ 6.4,
45504
+ 6.4,
45505
+ 100
45506
+ ],
45507
+ t: 36
45508
+ }
45509
+ ],
45510
+ ix: 6
45511
+ },
45512
+ sk: {
45513
+ a: 0,
45514
+ k: 0
45515
+ },
45516
+ p: {
45517
+ a: 0,
45518
+ k: [
45519
+ 8,
45520
+ 11.2,
45521
+ 0
45522
+ ],
45523
+ ix: 2
45524
+ },
45525
+ r: {
45526
+ a: 0,
45527
+ k: 0,
45528
+ ix: 10
45529
+ },
45530
+ sa: {
45531
+ a: 0,
45532
+ k: 0
45533
+ },
45534
+ o: {
45535
+ a: 0,
45536
+ k: 0,
45537
+ ix: 11
45538
+ }
45539
+ },
45540
+ ef: [
45541
+ ],
45542
+ ind: 1
45543
+ },
45544
+ {
45545
+ ty: 4,
45546
+ nm: "pin Outlines",
45547
+ sr: 1,
45548
+ st: 0,
45549
+ op: 241,
45550
+ ip: 0,
45551
+ hd: false,
45552
+ ddd: 0,
45553
+ bm: 0,
45554
+ hasMask: false,
45555
+ ao: 0,
45556
+ ks: {
45557
+ a: {
45558
+ a: 0,
45559
+ k: [
45560
+ 39.833,
45561
+ 23.166,
45562
+ 0
45563
+ ],
45564
+ ix: 1
45565
+ },
45566
+ s: {
45567
+ a: 0,
45568
+ k: [
45569
+ 100,
45570
+ 100,
45571
+ 100
45572
+ ],
45573
+ ix: 6
45574
+ },
45575
+ sk: {
45576
+ a: 0,
45577
+ k: 0
45578
+ },
45579
+ p: {
45580
+ a: 0,
45581
+ k: [
45582
+ 0,
45583
+ -66.667,
45584
+ 0
45585
+ ],
45586
+ ix: 2
45587
+ },
45588
+ r: {
45589
+ a: 0,
45590
+ k: 0,
45591
+ ix: 10
45592
+ },
45593
+ sa: {
45594
+ a: 0,
45595
+ k: 0
45596
+ },
45597
+ o: {
45598
+ a: 0,
45599
+ k: 100,
45600
+ ix: 11
45601
+ }
45602
+ },
45603
+ ef: [
45604
+ ],
45605
+ shapes: [
45606
+ {
45607
+ ty: "gr",
45608
+ bm: 0,
45609
+ hd: false,
45610
+ mn: "ADBE Vector Group",
45611
+ nm: "Group 1",
45612
+ ix: 1,
45613
+ cix: 2,
45614
+ np: 2,
45615
+ it: [
45616
+ {
45617
+ ty: "sh",
45618
+ bm: 0,
45619
+ hd: false,
45620
+ mn: "ADBE Vector Shape - Group",
45621
+ nm: "Path 1",
45622
+ ix: 1,
45623
+ d: 1,
45624
+ ks: {
45625
+ a: 0,
45626
+ k: {
45627
+ c: false,
45628
+ i: [
45629
+ [
45630
+ 0,
45631
+ 0
45632
+ ],
45633
+ [
45634
+ 0,
45635
+ 0
45636
+ ]
45637
+ ],
45638
+ o: [
45639
+ [
45640
+ 0,
45641
+ 0
45642
+ ],
45643
+ [
45644
+ 0,
45645
+ 0
45646
+ ]
45647
+ ],
45648
+ v: [
45649
+ [
45650
+ 73.166,
45651
+ 6.5
45652
+ ],
45653
+ [
45654
+ 73.166,
45655
+ 39.833
45656
+ ]
45657
+ ]
45658
+ },
45659
+ ix: 2
45660
+ }
45661
+ },
45662
+ {
45663
+ ty: "st",
45664
+ bm: 0,
45665
+ hd: false,
45666
+ mn: "ADBE Vector Graphic - Stroke",
45667
+ nm: "Stroke 1",
45668
+ lc: 2,
45669
+ lj: 2,
45670
+ ml: 1,
45671
+ o: {
45672
+ a: 0,
45673
+ k: 100,
45674
+ ix: 4
45675
+ },
45676
+ w: {
45677
+ a: 0,
45678
+ k: 13,
45679
+ ix: 5
45680
+ },
45681
+ c: {
45682
+ a: 0,
45683
+ k: [
45684
+ 0.0235,
45685
+ 0.4039,
45686
+ 0.4078
45687
+ ],
45688
+ ix: 3
45689
+ }
45690
+ },
45691
+ {
45692
+ ty: "tr",
45693
+ a: {
45694
+ a: 0,
45695
+ k: [
45696
+ 0,
45697
+ 0
45698
+ ],
45699
+ ix: 1
45700
+ },
45701
+ s: {
45702
+ a: 0,
45703
+ k: [
45704
+ 100,
45705
+ 100
45706
+ ],
45707
+ ix: 3
45708
+ },
45709
+ sk: {
45710
+ a: 0,
45711
+ k: 0,
45712
+ ix: 4
45713
+ },
45714
+ p: {
45715
+ a: 0,
45716
+ k: [
45717
+ 0,
45718
+ 0
45719
+ ],
45720
+ ix: 2
45721
+ },
45722
+ r: {
45723
+ a: 0,
45724
+ k: 0,
45725
+ ix: 6
45726
+ },
45727
+ sa: {
45728
+ a: 0,
45729
+ k: 0,
45730
+ ix: 5
45731
+ },
45732
+ o: {
45733
+ a: 0,
45734
+ k: 100,
45735
+ ix: 7
45736
+ }
45737
+ }
45738
+ ]
45739
+ },
45740
+ {
45741
+ ty: "gr",
45742
+ bm: 0,
45743
+ hd: false,
45744
+ mn: "ADBE Vector Group",
45745
+ nm: "Group 2",
45746
+ ix: 2,
45747
+ cix: 2,
45748
+ np: 2,
45749
+ it: [
45750
+ {
45751
+ ty: "sh",
45752
+ bm: 0,
45753
+ hd: false,
45754
+ mn: "ADBE Vector Shape - Group",
45755
+ nm: "Path 1",
45756
+ ix: 1,
45757
+ d: 1,
45758
+ ks: {
45759
+ a: 0,
45760
+ k: {
45761
+ c: false,
45762
+ i: [
45763
+ [
45764
+ 0,
45765
+ 0
45766
+ ],
45767
+ [
45768
+ 0,
45769
+ 0
45770
+ ]
45771
+ ],
45772
+ o: [
45773
+ [
45774
+ 0,
45775
+ 0
45776
+ ],
45777
+ [
45778
+ 0,
45779
+ 0
45780
+ ]
45781
+ ],
45782
+ v: [
45783
+ [
45784
+ 6.5,
45785
+ 6.5
45786
+ ],
45787
+ [
45788
+ 6.5,
45789
+ 39.833
45790
+ ]
45791
+ ]
45792
+ },
45793
+ ix: 2
45794
+ }
45795
+ },
45796
+ {
45797
+ ty: "st",
45798
+ bm: 0,
45799
+ hd: false,
45800
+ mn: "ADBE Vector Graphic - Stroke",
45801
+ nm: "Stroke 1",
45802
+ lc: 2,
45803
+ lj: 2,
45804
+ ml: 1,
45805
+ o: {
45806
+ a: 0,
45807
+ k: 100,
45808
+ ix: 4
45809
+ },
45810
+ w: {
45811
+ a: 0,
45812
+ k: 13,
45813
+ ix: 5
45814
+ },
45815
+ c: {
45816
+ a: 0,
45817
+ k: [
45818
+ 0.0235,
45819
+ 0.4039,
45820
+ 0.4078
45821
+ ],
45822
+ ix: 3
45823
+ }
45824
+ },
45825
+ {
45826
+ ty: "tr",
45827
+ a: {
45828
+ a: 0,
45829
+ k: [
45830
+ 0,
45831
+ 0
45832
+ ],
45833
+ ix: 1
45834
+ },
45835
+ s: {
45836
+ a: 0,
45837
+ k: [
45838
+ 100,
45839
+ 100
45840
+ ],
45841
+ ix: 3
45842
+ },
45843
+ sk: {
45844
+ a: 0,
45845
+ k: 0,
45846
+ ix: 4
45847
+ },
45848
+ p: {
45849
+ a: 0,
45850
+ k: [
45851
+ 0,
45852
+ 0
45853
+ ],
45854
+ ix: 2
45855
+ },
45856
+ r: {
45857
+ a: 0,
45858
+ k: 0,
45859
+ ix: 6
45860
+ },
45861
+ sa: {
45862
+ a: 0,
45863
+ k: 0,
45864
+ ix: 5
45865
+ },
45866
+ o: {
45867
+ a: 0,
45868
+ k: 100,
45869
+ ix: 7
45870
+ }
45871
+ }
45872
+ ]
45873
+ }
45874
+ ],
45875
+ ind: 2,
45876
+ parent: 1
45877
+ },
45878
+ {
45879
+ ty: 4,
45880
+ nm: "line Outlines",
45881
+ sr: 1,
45882
+ st: 0,
45883
+ op: 241,
45884
+ ip: 0,
45885
+ hd: false,
45886
+ ddd: 0,
45887
+ bm: 0,
45888
+ hasMask: false,
45889
+ ao: 0,
45890
+ ks: {
45891
+ a: {
45892
+ a: 0,
45893
+ k: [
45894
+ 81.5,
45895
+ 6.5,
45896
+ 0
45897
+ ],
45898
+ ix: 1
45899
+ },
45900
+ s: {
45901
+ a: 0,
45902
+ k: [
45903
+ 100,
45904
+ 100,
45905
+ 100
45906
+ ],
45907
+ ix: 6
45908
+ },
45909
+ sk: {
45910
+ a: 0,
45911
+ k: 0
45912
+ },
45913
+ p: {
45914
+ a: 1,
45915
+ k: [
45916
+ {
45917
+ o: {
45918
+ x: 0.66,
45919
+ y: 0
45920
+ },
45921
+ i: {
45922
+ x: 0.34,
45923
+ y: 1
45924
+ },
45925
+ s: [
45926
+ 0,
45927
+ -16.667,
45928
+ 0
45929
+ ],
45930
+ t: 8,
45931
+ ti: [
45932
+ 0,
45933
+ 8.333,
45934
+ 0
45935
+ ],
45936
+ to: [
45937
+ 0,
45938
+ -14.667,
45939
+ 0
45940
+ ]
45941
+ },
45942
+ {
45943
+ o: {
45944
+ x: 0.66,
45945
+ y: 0
45946
+ },
45947
+ i: {
45948
+ x: 0.34,
45949
+ y: 1
45950
+ },
45951
+ s: [
45952
+ 0,
45953
+ -104.667,
45954
+ 0
45955
+ ],
45956
+ t: 23,
45957
+ ti: [
45958
+ 0,
45959
+ -6.333,
45960
+ 0
45961
+ ],
45962
+ to: [
45963
+ 0,
45964
+ -8.333,
45965
+ 0
45966
+ ]
45967
+ },
45968
+ {
45969
+ s: [
45970
+ 0,
45971
+ -66.667,
45972
+ 0
45973
+ ],
45974
+ t: 36
45975
+ }
45976
+ ],
45977
+ ix: 2
45978
+ },
45979
+ r: {
45980
+ a: 0,
45981
+ k: 0,
45982
+ ix: 10
45983
+ },
45984
+ sa: {
45985
+ a: 0,
45986
+ k: 0
45987
+ },
45988
+ o: {
45989
+ a: 0,
45990
+ k: 100,
45991
+ ix: 11
45992
+ }
45993
+ },
45994
+ ef: [
45995
+ ],
45996
+ shapes: [
45997
+ {
45998
+ ty: "gr",
45999
+ bm: 0,
46000
+ hd: false,
46001
+ mn: "ADBE Vector Group",
46002
+ nm: "Group 1",
46003
+ ix: 1,
46004
+ cix: 2,
46005
+ np: 2,
46006
+ it: [
46007
+ {
46008
+ ty: "sh",
46009
+ bm: 0,
46010
+ hd: false,
46011
+ mn: "ADBE Vector Shape - Group",
46012
+ nm: "Path 1",
46013
+ ix: 1,
46014
+ d: 1,
46015
+ ks: {
46016
+ a: 1,
46017
+ k: [
46018
+ {
46019
+ o: {
46020
+ x: 0.66,
46021
+ y: 0
46022
+ },
46023
+ i: {
46024
+ x: 0.34,
46025
+ y: 1
46026
+ },
46027
+ s: [
46028
+ {
46029
+ c: false,
46030
+ i: [
46031
+ [
46032
+ 0,
46033
+ 0
46034
+ ],
46035
+ [
46036
+ 0,
46037
+ 0
46038
+ ]
46039
+ ],
46040
+ o: [
46041
+ [
46042
+ 0,
46043
+ 0
46044
+ ],
46045
+ [
46046
+ 0,
46047
+ 0
46048
+ ]
46049
+ ],
46050
+ v: [
46051
+ [
46052
+ 6.5,
46053
+ 6.5
46054
+ ],
46055
+ [
46056
+ 156.5,
46057
+ 6.5
46058
+ ]
46059
+ ]
46060
+ }
46061
+ ],
46062
+ t: 8
46063
+ },
46064
+ {
46065
+ o: {
46066
+ x: 0.66,
46067
+ y: 0
46068
+ },
46069
+ i: {
46070
+ x: 0.34,
46071
+ y: 1
46072
+ },
46073
+ s: [
46074
+ {
46075
+ c: false,
46076
+ i: [
46077
+ [
46078
+ 0,
46079
+ 0
46080
+ ],
46081
+ [
46082
+ 0,
46083
+ 0
46084
+ ]
46085
+ ],
46086
+ o: [
46087
+ [
46088
+ 0,
46089
+ 0
46090
+ ],
46091
+ [
46092
+ 0,
46093
+ 0
46094
+ ]
46095
+ ],
46096
+ v: [
46097
+ [
46098
+ 6.5,
46099
+ 6.5
46100
+ ],
46101
+ [
46102
+ 156.5,
46103
+ 6.5
46104
+ ]
46105
+ ]
46106
+ }
46107
+ ],
46108
+ t: 30
46109
+ },
46110
+ {
46111
+ s: [
46112
+ {
46113
+ c: false,
46114
+ i: [
46115
+ [
46116
+ 0,
46117
+ 0
46118
+ ],
46119
+ [
46120
+ 0,
46121
+ 0
46122
+ ]
46123
+ ],
46124
+ o: [
46125
+ [
46126
+ 0,
46127
+ 0
46128
+ ],
46129
+ [
46130
+ 0,
46131
+ 0
46132
+ ]
46133
+ ],
46134
+ v: [
46135
+ [
46136
+ 20.5,
46137
+ 6.583
46138
+ ],
46139
+ [
46140
+ 141,
46141
+ 6.583
46142
+ ]
46143
+ ]
46144
+ }
46145
+ ],
46146
+ t: 36
46147
+ }
46148
+ ],
46149
+ ix: 2
46150
+ }
46151
+ },
46152
+ {
46153
+ ty: "st",
46154
+ bm: 0,
46155
+ hd: false,
46156
+ mn: "ADBE Vector Graphic - Stroke",
46157
+ nm: "Stroke 1",
46158
+ lc: 2,
46159
+ lj: 2,
46160
+ ml: 1,
46161
+ o: {
46162
+ a: 0,
46163
+ k: 100,
46164
+ ix: 4
46165
+ },
46166
+ w: {
46167
+ a: 0,
46168
+ k: 13,
46169
+ ix: 5
46170
+ },
46171
+ c: {
46172
+ a: 0,
46173
+ k: [
46174
+ 0.0235,
46175
+ 0.4039,
46176
+ 0.4078
46177
+ ],
46178
+ ix: 3
46179
+ }
46180
+ },
46181
+ {
46182
+ ty: "tr",
46183
+ a: {
46184
+ a: 0,
46185
+ k: [
46186
+ 0,
46187
+ 0
46188
+ ],
46189
+ ix: 1
46190
+ },
46191
+ s: {
46192
+ a: 0,
46193
+ k: [
46194
+ 100,
46195
+ 100
46196
+ ],
46197
+ ix: 3
46198
+ },
46199
+ sk: {
46200
+ a: 0,
46201
+ k: 0,
46202
+ ix: 4
46203
+ },
46204
+ p: {
46205
+ a: 0,
46206
+ k: [
46207
+ 0,
46208
+ 0
46209
+ ],
46210
+ ix: 2
46211
+ },
46212
+ r: {
46213
+ a: 0,
46214
+ k: 0,
46215
+ ix: 6
46216
+ },
46217
+ sa: {
46218
+ a: 0,
46219
+ k: 0,
46220
+ ix: 5
46221
+ },
46222
+ o: {
46223
+ a: 0,
46224
+ k: 100,
46225
+ ix: 7
46226
+ }
46227
+ }
46228
+ ]
46229
+ }
46230
+ ],
46231
+ ind: 3,
46232
+ parent: 1
46233
+ },
46234
+ {
46235
+ ty: 4,
46236
+ nm: "line Outlines 2",
46237
+ sr: 1,
46238
+ st: 0,
46239
+ op: 241,
46240
+ ip: 0,
46241
+ hd: false,
46242
+ ddd: 0,
46243
+ bm: 0,
46244
+ hasMask: false,
46245
+ ao: 0,
46246
+ ks: {
46247
+ a: {
46248
+ a: 0,
46249
+ k: [
46250
+ 81.5,
46251
+ 6.5,
46252
+ 0
46253
+ ],
46254
+ ix: 1
46255
+ },
46256
+ s: {
46257
+ a: 0,
46258
+ k: [
46259
+ 100,
46260
+ 100,
46261
+ 100
46262
+ ],
46263
+ ix: 6
46264
+ },
46265
+ sk: {
46266
+ a: 0,
46267
+ k: 0
46268
+ },
46269
+ p: {
46270
+ a: 0,
46271
+ k: [
46272
+ 0,
46273
+ -16.667,
46274
+ 0
46275
+ ],
46276
+ ix: 2
46277
+ },
46278
+ r: {
46279
+ a: 0,
46280
+ k: 0,
46281
+ ix: 10
46282
+ },
46283
+ sa: {
46284
+ a: 0,
46285
+ k: 0
46286
+ },
46287
+ o: {
46288
+ a: 1,
46289
+ k: [
46290
+ {
46291
+ o: {
46292
+ x: 0.167,
46293
+ y: 0.167
46294
+ },
46295
+ i: {
46296
+ x: 0.833,
46297
+ y: 0.833
46298
+ },
46299
+ s: [
46300
+ 0
46301
+ ],
46302
+ t: 14
46303
+ },
46304
+ {
46305
+ s: [
46306
+ 100
46307
+ ],
46308
+ t: 15
46309
+ }
46310
+ ],
46311
+ ix: 11
46312
+ }
46313
+ },
46314
+ ef: [
46315
+ ],
46316
+ shapes: [
46317
+ {
46318
+ ty: "gr",
46319
+ bm: 0,
46320
+ hd: false,
46321
+ mn: "ADBE Vector Group",
46322
+ nm: "Group 1",
46323
+ ix: 1,
46324
+ cix: 2,
46325
+ np: 2,
46326
+ it: [
46327
+ {
46328
+ ty: "sh",
46329
+ bm: 0,
46330
+ hd: false,
46331
+ mn: "ADBE Vector Shape - Group",
46332
+ nm: "Path 1",
46333
+ ix: 1,
46334
+ d: 1,
46335
+ ks: {
46336
+ a: 0,
46337
+ k: {
46338
+ c: false,
46339
+ i: [
46340
+ [
46341
+ 0,
46342
+ 0
46343
+ ],
46344
+ [
46345
+ 0,
46346
+ 0
46347
+ ]
46348
+ ],
46349
+ o: [
46350
+ [
46351
+ 0,
46352
+ 0
46353
+ ],
46354
+ [
46355
+ 0,
46356
+ 0
46357
+ ]
46358
+ ],
46359
+ v: [
46360
+ [
46361
+ 6.5,
46362
+ 6.5
46363
+ ],
46364
+ [
46365
+ 156.5,
46366
+ 6.5
46367
+ ]
46368
+ ]
46369
+ },
46370
+ ix: 2
46371
+ }
46372
+ },
46373
+ {
46374
+ ty: "st",
46375
+ bm: 0,
46376
+ hd: false,
46377
+ mn: "ADBE Vector Graphic - Stroke",
46378
+ nm: "Stroke 1",
46379
+ lc: 2,
46380
+ lj: 2,
46381
+ ml: 1,
46382
+ o: {
46383
+ a: 0,
46384
+ k: 100,
46385
+ ix: 4
46386
+ },
46387
+ w: {
46388
+ a: 0,
46389
+ k: 13,
46390
+ ix: 5
46391
+ },
46392
+ c: {
46393
+ a: 0,
46394
+ k: [
46395
+ 0.0235,
46396
+ 0.4039,
46397
+ 0.4078
46398
+ ],
46399
+ ix: 3
46400
+ }
46401
+ },
46402
+ {
46403
+ ty: "tr",
46404
+ a: {
46405
+ a: 0,
46406
+ k: [
46407
+ 0,
46408
+ 0
46409
+ ],
46410
+ ix: 1
46411
+ },
46412
+ s: {
46413
+ a: 0,
46414
+ k: [
46415
+ 100,
46416
+ 100
46417
+ ],
46418
+ ix: 3
46419
+ },
46420
+ sk: {
46421
+ a: 0,
46422
+ k: 0,
46423
+ ix: 4
46424
+ },
46425
+ p: {
46426
+ a: 0,
46427
+ k: [
46428
+ 0,
46429
+ 0
46430
+ ],
46431
+ ix: 2
46432
+ },
46433
+ r: {
46434
+ a: 0,
46435
+ k: 0,
46436
+ ix: 6
46437
+ },
46438
+ sa: {
46439
+ a: 0,
46440
+ k: 0,
46441
+ ix: 5
46442
+ },
46443
+ o: {
46444
+ a: 0,
46445
+ k: 100,
46446
+ ix: 7
46447
+ }
46448
+ }
46449
+ ]
46450
+ }
46451
+ ],
46452
+ ind: 4,
46453
+ parent: 1
46454
+ },
46455
+ {
46456
+ ty: 4,
46457
+ nm: "page02 Outlines",
46458
+ sr: 1,
46459
+ st: 0,
46460
+ op: 70,
46461
+ ip: 0,
46462
+ hd: false,
46463
+ ddd: 0,
46464
+ bm: 0,
46465
+ hasMask: false,
46466
+ ao: 0,
46467
+ ks: {
46468
+ a: {
46469
+ a: 0,
46470
+ k: [
46471
+ 88,
46472
+ 13,
46473
+ 0
46474
+ ],
46475
+ ix: 1
46476
+ },
46477
+ s: {
46478
+ a: 0,
46479
+ k: [
46480
+ 100,
46481
+ 100,
46482
+ 100
46483
+ ],
46484
+ ix: 6
46485
+ },
46486
+ sk: {
46487
+ a: 0,
46488
+ k: 0
46489
+ },
46490
+ p: {
46491
+ a: 0,
46492
+ k: [
46493
+ -0.001,
46494
+ -66.667,
46495
+ 0
46496
+ ],
46497
+ ix: 2
46498
+ },
46499
+ r: {
46500
+ a: 0,
46501
+ k: 180,
46502
+ ix: 10
46503
+ },
46504
+ sa: {
46505
+ a: 0,
46506
+ k: 0
46507
+ },
46508
+ o: {
46509
+ a: 0,
46510
+ k: 100,
46511
+ ix: 11
46512
+ }
46513
+ },
46514
+ ef: [
46515
+ ],
46516
+ shapes: [
46517
+ {
46518
+ ty: "gr",
46519
+ bm: 0,
46520
+ hd: false,
46521
+ mn: "ADBE Vector Group",
46522
+ nm: "Group 1",
46523
+ ix: 1,
46524
+ cix: 2,
46525
+ np: 2,
46526
+ it: [
46527
+ {
46528
+ ty: "sh",
46529
+ bm: 0,
46530
+ hd: false,
46531
+ mn: "ADBE Vector Shape - Group",
46532
+ nm: "Path 1",
46533
+ ix: 1,
46534
+ d: 1,
46535
+ ks: {
46536
+ a: 1,
46537
+ k: [
46538
+ {
46539
+ o: {
46540
+ x: 0.66,
46541
+ y: 0
46542
+ },
46543
+ i: {
46544
+ x: 0.34,
46545
+ y: 1
46546
+ },
46547
+ s: [
46548
+ {
46549
+ c: true,
46550
+ i: [
46551
+ [
46552
+ -9.205,
46553
+ 0
46554
+ ],
46555
+ [
46556
+ 0,
46557
+ 0
46558
+ ],
46559
+ [
46560
+ 0.499,
46561
+ 12.166
46562
+ ],
46563
+ [
46564
+ 0,
46565
+ 0
46566
+ ],
46567
+ [
46568
+ 9.205,
46569
+ 0
46570
+ ],
46571
+ [
46572
+ 0,
46573
+ 0
46574
+ ],
46575
+ [
46576
+ -0.673,
46577
+ -8
46578
+ ],
46579
+ [
46580
+ 0,
46581
+ 0
46582
+ ]
46583
+ ],
46584
+ o: [
46585
+ [
46586
+ 0,
46587
+ 0
46588
+ ],
46589
+ [
46590
+ 9.205,
46591
+ 0
46592
+ ],
46593
+ [
46594
+ 0,
46595
+ 0
46596
+ ],
46597
+ [
46598
+ -0.673,
46599
+ -6
46600
+ ],
46601
+ [
46602
+ 0,
46603
+ 0
46604
+ ],
46605
+ [
46606
+ -9.205,
46607
+ 0
46608
+ ],
46609
+ [
46610
+ 0,
46611
+ 0
46612
+ ],
46613
+ [
46614
+ -0.001,
46615
+ 13.166
46616
+ ]
46617
+ ],
46618
+ v: [
46619
+ [
46620
+ -58.333,
46621
+ -75
46622
+ ],
46623
+ [
46624
+ 58.334,
46625
+ -75
46626
+ ],
46627
+ [
46628
+ 75.001,
46629
+ -89.833
46630
+ ],
46631
+ [
46632
+ 75.173,
46633
+ -210.167
46634
+ ],
46635
+ [
46636
+ 58.514,
46637
+ -225
46638
+ ],
46639
+ [
46640
+ -58.32,
46641
+ -225
46642
+ ],
46643
+ [
46644
+ -74.827,
46645
+ -210.167
46646
+ ],
46647
+ [
46648
+ -74.999,
46649
+ -92.833
46650
+ ]
46651
+ ]
46652
+ }
46653
+ ],
46654
+ t: 8
46655
+ },
46656
+ {
46657
+ o: {
46658
+ x: 0.66,
46659
+ y: 0
46660
+ },
46661
+ i: {
46662
+ x: 0.34,
46663
+ y: 1
46664
+ },
46665
+ s: [
46666
+ {
46667
+ c: true,
46668
+ i: [
46669
+ [
46670
+ -9.205,
46671
+ 0
46672
+ ],
46673
+ [
46674
+ 0,
46675
+ 0
46676
+ ],
46677
+ [
46678
+ 0,
46679
+ -9.205
46680
+ ],
46681
+ [
46682
+ 0,
46683
+ 0
46684
+ ],
46685
+ [
46686
+ 9.205,
46687
+ 0
46688
+ ],
46689
+ [
46690
+ 0,
46691
+ 0
46692
+ ],
46693
+ [
46694
+ 0,
46695
+ 9.205
46696
+ ],
46697
+ [
46698
+ 0,
46699
+ 0
46700
+ ]
46701
+ ],
46702
+ o: [
46703
+ [
46704
+ 0,
46705
+ 0
46706
+ ],
46707
+ [
46708
+ 9.205,
46709
+ 0
46710
+ ],
46711
+ [
46712
+ 0,
46713
+ 0
46714
+ ],
46715
+ [
46716
+ 0,
46717
+ 9.205
46718
+ ],
46719
+ [
46720
+ 0,
46721
+ 0
46722
+ ],
46723
+ [
46724
+ -9.205,
46725
+ 0
46726
+ ],
46727
+ [
46728
+ 0,
46729
+ 0
46730
+ ],
46731
+ [
46732
+ 0,
46733
+ -9.205
46734
+ ]
46735
+ ],
46736
+ v: [
46737
+ [
46738
+ -58.333,
46739
+ -75
46740
+ ],
46741
+ [
46742
+ 58.334,
46743
+ -75
46744
+ ],
46745
+ [
46746
+ 75,
46747
+ -58.333
46748
+ ],
46749
+ [
46750
+ 74.754,
46751
+ -11.417
46752
+ ],
46753
+ [
46754
+ 58.088,
46755
+ 5.25
46756
+ ],
46757
+ [
46758
+ -58.579,
46759
+ 5.25
46760
+ ],
46761
+ [
46762
+ -75.246,
46763
+ -11.417
46764
+ ],
46765
+ [
46766
+ -75,
46767
+ -58.333
46768
+ ]
46769
+ ]
46770
+ }
46771
+ ],
46772
+ t: 23
46773
+ },
46774
+ {
46775
+ s: [
46776
+ {
46777
+ c: true,
46778
+ i: [
46779
+ [
46780
+ -9.205,
46781
+ 0
46782
+ ],
46783
+ [
46784
+ 0,
46785
+ 0
46786
+ ],
46787
+ [
46788
+ -1.001,
46789
+ 7.166
46790
+ ],
46791
+ [
46792
+ 0,
46793
+ 0
46794
+ ],
46795
+ [
46796
+ 11.663,
46797
+ -0.292
46798
+ ],
46799
+ [
46800
+ 0,
46801
+ 0
46802
+ ],
46803
+ [
46804
+ 0.119,
46805
+ 14.876
46806
+ ],
46807
+ [
46808
+ 0,
46809
+ 0
46810
+ ]
46811
+ ],
46812
+ o: [
46813
+ [
46814
+ 0,
46815
+ 0
46816
+ ],
46817
+ [
46818
+ 8.29,
46819
+ -0.667
46820
+ ],
46821
+ [
46822
+ 0,
46823
+ 0
46824
+ ],
46825
+ [
46826
+ -0.003,
46827
+ 12.251
46828
+ ],
46829
+ [
46830
+ 0,
46831
+ 0
46832
+ ],
46833
+ [
46834
+ -13.295,
46835
+ -1.792
46836
+ ],
46837
+ [
46838
+ 0,
46839
+ 0
46840
+ ],
46841
+ [
46842
+ 0.996,
46843
+ 5.541
46844
+ ]
46845
+ ],
46846
+ v: [
46847
+ [
46848
+ -58.333,
46849
+ -75
46850
+ ],
46851
+ [
46852
+ 58.334,
46853
+ -75
46854
+ ],
46855
+ [
46856
+ 73.876,
46857
+ -88.333
46858
+ ],
46859
+ [
46860
+ 74.503,
46861
+ -91.667
46862
+ ],
46863
+ [
46864
+ 57.837,
46865
+ -75
46866
+ ],
46867
+ [
46868
+ -58.83,
46869
+ -75
46870
+ ],
46871
+ [
46872
+ -75.494,
46873
+ -96.167
46874
+ ],
46875
+ [
46876
+ -74.621,
46877
+ -86.333
46878
+ ]
46879
+ ]
46880
+ }
46881
+ ],
46882
+ t: 36
46883
+ }
46884
+ ],
46885
+ ix: 2
46886
+ }
46887
+ },
46888
+ {
46889
+ ty: "st",
46890
+ bm: 0,
46891
+ hd: false,
46892
+ mn: "ADBE Vector Graphic - Stroke",
46893
+ nm: "Stroke 1",
46894
+ lc: 2,
46895
+ lj: 2,
46896
+ ml: 1,
46897
+ o: {
46898
+ a: 0,
46899
+ k: 100,
46900
+ ix: 4
46901
+ },
46902
+ w: {
46903
+ a: 0,
46904
+ k: 13,
46905
+ ix: 5
46906
+ },
46907
+ c: {
46908
+ a: 0,
46909
+ k: [
46910
+ 0.0235,
46911
+ 0.4039,
46912
+ 0.4078
46913
+ ],
46914
+ ix: 3
46915
+ }
46916
+ },
46917
+ {
46918
+ ty: "tr",
46919
+ a: {
46920
+ a: 0,
46921
+ k: [
46922
+ 0,
46923
+ 0
46924
+ ],
46925
+ ix: 1
46926
+ },
46927
+ s: {
46928
+ a: 0,
46929
+ k: [
46930
+ 100,
46931
+ 100
46932
+ ],
46933
+ ix: 3
46934
+ },
46935
+ sk: {
46936
+ a: 0,
46937
+ k: 0,
46938
+ ix: 4
46939
+ },
46940
+ p: {
46941
+ a: 0,
46942
+ k: [
46943
+ 88,
46944
+ 88
46945
+ ],
46946
+ ix: 2
46947
+ },
46948
+ r: {
46949
+ a: 0,
46950
+ k: 0,
46951
+ ix: 6
46952
+ },
46953
+ sa: {
46954
+ a: 0,
46955
+ k: 0,
46956
+ ix: 5
46957
+ },
46958
+ o: {
46959
+ a: 0,
46960
+ k: 100,
46961
+ ix: 7
46962
+ }
46963
+ }
46964
+ ]
46965
+ }
46966
+ ],
46967
+ ind: 5,
46968
+ parent: 1
46969
+ },
46970
+ {
46971
+ ty: 4,
46972
+ nm: "page01 Outlines",
46973
+ sr: 1,
46974
+ st: 0,
46975
+ op: 241,
46976
+ ip: 0,
46977
+ hd: false,
46978
+ ddd: 0,
46979
+ bm: 0,
46980
+ hasMask: false,
46981
+ ao: 0,
46982
+ ks: {
46983
+ a: {
46984
+ a: 0,
46985
+ k: [
46986
+ 88,
46987
+ 88,
46988
+ 0
46989
+ ],
46990
+ ix: 1
46991
+ },
46992
+ s: {
46993
+ a: 0,
46994
+ k: [
46995
+ 100,
46996
+ 100,
46997
+ 100
46998
+ ],
46999
+ ix: 6
47000
+ },
47001
+ sk: {
47002
+ a: 0,
47003
+ k: 0
47004
+ },
47005
+ p: {
47006
+ a: 0,
47007
+ k: [
47008
+ -0.001,
47009
+ 8.333,
47010
+ 0
47011
+ ],
47012
+ ix: 2
47013
+ },
47014
+ r: {
47015
+ a: 0,
47016
+ k: 0,
47017
+ ix: 10
47018
+ },
47019
+ sa: {
47020
+ a: 0,
47021
+ k: 0
47022
+ },
47023
+ o: {
47024
+ a: 0,
47025
+ k: 100,
47026
+ ix: 11
47027
+ }
47028
+ },
47029
+ ef: [
47030
+ ],
47031
+ shapes: [
47032
+ {
47033
+ ty: "gr",
47034
+ bm: 0,
47035
+ hd: false,
47036
+ mn: "ADBE Vector Group",
47037
+ nm: "Group 1",
47038
+ ix: 1,
47039
+ cix: 2,
47040
+ np: 2,
47041
+ it: [
47042
+ {
47043
+ ty: "sh",
47044
+ bm: 0,
47045
+ hd: false,
47046
+ mn: "ADBE Vector Shape - Group",
47047
+ nm: "Path 1",
47048
+ ix: 1,
47049
+ d: 1,
47050
+ ks: {
47051
+ a: 0,
47052
+ k: {
47053
+ c: true,
47054
+ i: [
47055
+ [
47056
+ -9.205,
47057
+ 0
47058
+ ],
47059
+ [
47060
+ 0,
47061
+ 0
47062
+ ],
47063
+ [
47064
+ 0,
47065
+ -9.205
47066
+ ],
47067
+ [
47068
+ 0,
47069
+ 0
47070
+ ],
47071
+ [
47072
+ 9.205,
47073
+ 0
47074
+ ],
47075
+ [
47076
+ 0,
47077
+ 0
47078
+ ],
47079
+ [
47080
+ 0,
47081
+ 9.205
47082
+ ],
47083
+ [
47084
+ 0,
47085
+ 0
47086
+ ]
47087
+ ],
47088
+ o: [
47089
+ [
47090
+ 0,
47091
+ 0
47092
+ ],
47093
+ [
47094
+ 9.205,
47095
+ 0
47096
+ ],
47097
+ [
47098
+ 0,
47099
+ 0
47100
+ ],
47101
+ [
47102
+ 0,
47103
+ 9.205
47104
+ ],
47105
+ [
47106
+ 0,
47107
+ 0
47108
+ ],
47109
+ [
47110
+ -9.205,
47111
+ 0
47112
+ ],
47113
+ [
47114
+ 0,
47115
+ 0
47116
+ ],
47117
+ [
47118
+ 0,
47119
+ -9.205
47120
+ ]
47121
+ ],
47122
+ v: [
47123
+ [
47124
+ -58.333,
47125
+ -75
47126
+ ],
47127
+ [
47128
+ 58.334,
47129
+ -75
47130
+ ],
47131
+ [
47132
+ 75,
47133
+ -58.333
47134
+ ],
47135
+ [
47136
+ 75,
47137
+ 58.333
47138
+ ],
47139
+ [
47140
+ 58.334,
47141
+ 75
47142
+ ],
47143
+ [
47144
+ -58.333,
47145
+ 75
47146
+ ],
47147
+ [
47148
+ -75,
47149
+ 58.333
47150
+ ],
47151
+ [
47152
+ -75,
47153
+ -58.333
47154
+ ]
47155
+ ]
47156
+ },
47157
+ ix: 2
47158
+ }
47159
+ },
47160
+ {
47161
+ ty: "st",
47162
+ bm: 0,
47163
+ hd: false,
47164
+ mn: "ADBE Vector Graphic - Stroke",
47165
+ nm: "Stroke 1",
47166
+ lc: 2,
47167
+ lj: 2,
47168
+ ml: 1,
47169
+ o: {
47170
+ a: 0,
47171
+ k: 100,
47172
+ ix: 4
47173
+ },
47174
+ w: {
47175
+ a: 0,
47176
+ k: 13,
47177
+ ix: 5
47178
+ },
47179
+ c: {
47180
+ a: 0,
47181
+ k: [
47182
+ 0.0235,
47183
+ 0.4039,
47184
+ 0.4078
47185
+ ],
47186
+ ix: 3
47187
+ }
47188
+ },
47189
+ {
47190
+ ty: "tr",
47191
+ a: {
47192
+ a: 0,
47193
+ k: [
47194
+ 0,
47195
+ 0
47196
+ ],
47197
+ ix: 1
47198
+ },
47199
+ s: {
47200
+ a: 0,
47201
+ k: [
47202
+ 100,
47203
+ 100
47204
+ ],
47205
+ ix: 3
47206
+ },
47207
+ sk: {
47208
+ a: 0,
47209
+ k: 0,
47210
+ ix: 4
47211
+ },
47212
+ p: {
47213
+ a: 0,
47214
+ k: [
47215
+ 88,
47216
+ 88
47217
+ ],
47218
+ ix: 2
47219
+ },
47220
+ r: {
47221
+ a: 0,
47222
+ k: 0,
47223
+ ix: 6
47224
+ },
47225
+ sa: {
47226
+ a: 0,
47227
+ k: 0,
47228
+ ix: 5
47229
+ },
47230
+ o: {
47231
+ a: 0,
47232
+ k: 100,
47233
+ ix: 7
47234
+ }
47235
+ }
47236
+ ]
47237
+ }
47238
+ ],
47239
+ ind: 6,
47240
+ parent: 1
47241
+ }
47242
+ ];
47243
+ var v$1 = "5.5.7";
47244
+ var fr$1 = 45;
47245
+ var op$1 = 41;
47246
+ var ip$1 = 0;
47247
+ var assets$1 = [
47248
+ ];
47249
+ var LoadingAnimation = {
47250
+ nm: nm$1,
47251
+ ddd: ddd$1,
47252
+ h: h$1,
47253
+ w: w$1,
47254
+ meta: meta,
47255
+ layers: layers$1,
47256
+ v: v$1,
47257
+ fr: fr$1,
47258
+ op: op$1,
47259
+ ip: ip$1,
47260
+ assets: assets$1
47261
+ };
47262
+
47263
+ // TableFooter.styles.js
47264
+ const FooterWrapper = styled__default["default"].div`
47265
+ display: flex;
47266
+ align-items: center;
47267
+ justify-content: space-between;
47268
+ padding: 15px 20px 15px 15px;
47269
+ gap: 16px;
47270
+ `;
47271
+ const FooterLabel = styled__default["default"].span`
47272
+ font-size: 14px;
47273
+ font-weight: 400;
47274
+ color: #8B8989;
47275
+ white-space: nowrap;
47276
+ font-family: 'Poppins', sans-serif;
47277
+ `;
47278
+ const FooterLabelBold = styled__default["default"].span`
47279
+ font-size: 14px;
47280
+ font-weight: 600;
47281
+ color: #8B8989;
47282
+ font-family: 'Poppins', sans-serif;
47283
+ `;
47284
+ const FooterLoadingGroup = styled__default["default"].div`
47285
+ display: flex;
47286
+ align-items: center;
47287
+ gap: 8px;
47288
+ `;
47289
+ const FooterLottieWrapper = styled__default["default"].div`
47290
+ width: 16px;
47291
+ height: 16px;
47292
+ display: flex;
47293
+ align-items: center;
47294
+ `;
47295
+ const FooterProgressTrack = styled__default["default"].div`
47296
+ width: 160px;
47297
+ height: 6px;
47298
+ background-color: #F2F2F2;
47299
+ border-radius: 12px;
47300
+ flex-shrink: 0;
47301
+ `;
47302
+ const FooterProgressFill = styled__default["default"].div`
47303
+ height: 100%;
47304
+ width: ${props => props.percent}%;
47305
+ background: #066768;
47306
+ border-radius: 12px;
47307
+ transition: width 0.3s ease-in-out;
47308
+ `;
47309
+
47310
+ // TableFooter.jsx
47311
+ const TableFooter = ({
47312
+ visibleFirst,
47313
+ visibleLast,
47314
+ total,
47315
+ rowLabel,
47316
+ isLoading,
47317
+ isLoadingText
47318
+ }) => {
47319
+ if (total <= 0) return null;
47320
+ return /*#__PURE__*/React__default["default"].createElement(FooterWrapper, null, /*#__PURE__*/React__default["default"].createElement(FooterLabel, null, "Rows ", /*#__PURE__*/React__default["default"].createElement(FooterLabelBold, null, visibleFirst, "\u2013", visibleLast), " of ", /*#__PURE__*/React__default["default"].createElement(FooterLabelBold, null, total), rowLabel ? ` ${rowLabel}` : ""), isLoading && /*#__PURE__*/React__default["default"].createElement(FooterLoadingGroup, null, /*#__PURE__*/React__default["default"].createElement(FooterLottieWrapper, null, /*#__PURE__*/React__default["default"].createElement(Lottie, {
47321
+ animationData: LoadingAnimation,
47322
+ loop: true
47323
+ })), /*#__PURE__*/React__default["default"].createElement(FooterLabel, null, isLoadingText || "Loading...")), /*#__PURE__*/React__default["default"].createElement(FooterProgressTrack, null, /*#__PURE__*/React__default["default"].createElement(FooterProgressFill, {
47324
+ percent: Math.round(visibleLast / total * 100)
47325
+ })));
47326
+ };
47327
+
47328
+ /**
47329
+ * Return an array of <tr> DOM elements that represent *data rows* only.
47330
+ *
47331
+ * We intentionally cache the actual DOM nodes (not row IDs / not data objects),
47332
+ * because the scroll-time work needs to measure row positions efficiently via
47333
+ * getBoundingClientRect().
47334
+ *
47335
+ * Expanded content rows are excluded. In our table, an expanded row is a
47336
+ * "detail-only" row rendered as a single <td colSpan="...">, and it should not
47337
+ * be counted as a real data row for "visible rows" calculations.
47338
+ */
47339
+ const buildDataRowsCache = scrollEl => {
47340
+ const allRows = Array.from(scrollEl.querySelectorAll("tbody tr"));
47341
+ return allRows.filter(row => !row.querySelector("td[colspan]"));
47342
+ };
47343
+
47344
+ /**
47345
+ * Given the cached data-row <tr> elements, compute which 1-based row indices
47346
+ * overlap the scroll container’s visible viewport.
47347
+ *
47348
+ * This runs during scrolling, so it avoids DOM queries and only reads layout
47349
+ * (getBoundingClientRect).
47350
+ */
47351
+ const getVisibleRowRange = (scrollEl, cachedDataRows) => {
47352
+ if (cachedDataRows.length === 0) return {
47353
+ first: 1,
47354
+ last: 0
47355
+ };
47356
+ const containerRect = scrollEl.getBoundingClientRect();
47357
+ let first = null;
47358
+ let last = null;
47359
+ cachedDataRows.forEach((row, index) => {
47360
+ const rect = row.getBoundingClientRect();
47361
+
47362
+ // "Visible" here means the row overlaps the container viewport.
47363
+ if (rect.bottom > containerRect.top && rect.top < containerRect.bottom) {
47364
+ if (first === null) first = index + 1; // 1-based row number
47365
+ last = index + 1;
46871
47366
  }
46872
- // Destroy any previous instance
46873
- (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
46874
- // Build the animation configuration
46875
- var config = _objectSpread2(_objectSpread2(_objectSpread2({}, props), forcedConfigs), {}, {
46876
- container: animationContainer.current
46877
- });
46878
- // Save the animation instance
46879
- animationInstanceRef.current = lottie.loadAnimation(config);
46880
- setAnimationLoaded(!!animationInstanceRef.current);
46881
- // Return a function that will clean up
46882
- return function () {
46883
- var _a;
46884
- (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
46885
- animationInstanceRef.current = undefined;
46886
- };
47367
+ });
47368
+ return {
47369
+ first: first !== null ? first : 1,
47370
+ last: last !== null ? last : 0
46887
47371
  };
46888
- /**
46889
- * (Re)Initialize when animation data changed
47372
+ };
47373
+ const useVisibleRows = ({
47374
+ scrollWrapperRef,
47375
+ dataLength,
47376
+ showFooter,
47377
+ expandedRows
47378
+ }) => {
47379
+ // 1-based indices for UI display, e.g. "Showing 21–40"
47380
+ const [visibleFirst, setVisibleFirst] = React$1.useState(1);
47381
+ const [visibleLast, setVisibleLast] = React$1.useState(0);
47382
+
47383
+ /**
47384
+ * Cache of <tr> DOM elements for data rows only.
47385
+ * This prevents repeated DOM querying during scroll.
46890
47386
  */
46891
- React$1.useEffect(function () {
46892
- var onUnmount = loadAnimation();
46893
- // Clean up on unmount
46894
- return function () {
46895
- return onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount();
46896
- };
46897
- // eslint-disable-next-line react-hooks/exhaustive-deps
46898
- }, [animationData, loop]);
46899
- // Update the autoplay state
46900
- React$1.useEffect(function () {
46901
- if (!animationInstanceRef.current) {
47387
+ const dataRowsRef = React$1.useRef([]);
47388
+ const updateVisibleRows = el => {
47389
+ // Keep footer state consistent when the table becomes empty.
47390
+ if (dataLength === 0) {
47391
+ setVisibleFirst(1);
47392
+ setVisibleLast(0);
46902
47393
  return;
46903
47394
  }
46904
- animationInstanceRef.current.autoplay = !!autoplay;
46905
- }, [autoplay]);
46906
- // Update the initial segment state
46907
- React$1.useEffect(function () {
46908
- if (!animationInstanceRef.current) {
46909
- return;
46910
- }
46911
- // When null should reset to default animation length
46912
- if (!initialSegment) {
46913
- animationInstanceRef.current.resetSegments(true);
46914
- return;
46915
- }
46916
- // If it's not a valid segment, do nothing
46917
- if (!Array.isArray(initialSegment) || !initialSegment.length) {
46918
- return;
46919
- }
46920
- // If the current position it's not in the new segment
46921
- // set the current position to start
46922
- if (animationInstanceRef.current.currentRawFrame < initialSegment[0] || animationInstanceRef.current.currentRawFrame > initialSegment[1]) {
46923
- animationInstanceRef.current.currentRawFrame = initialSegment[0];
46924
- }
46925
- // Update the segment
46926
- animationInstanceRef.current.setSegment(initialSegment[0], initialSegment[1]);
46927
- }, [initialSegment]);
46928
- /*
46929
- ======================================
46930
- EVENTS
46931
- ======================================
46932
- */
46933
- /**
46934
- * Reinitialize listener on change
47395
+ const {
47396
+ first,
47397
+ last
47398
+ } = getVisibleRowRange(el, dataRowsRef.current);
47399
+ setVisibleFirst(first);
47400
+ setVisibleLast(last);
47401
+ };
47402
+
47403
+ /**
47404
+ * Scroll listener: updates visible row range.
47405
+ *
47406
+ * We throttle to one update per animation frame using requestAnimationFrame,
47407
+ * which keeps scrolling smooth.
47408
+ *
47409
+ * Note: expandedRows is NOT a dependency here. When expansion changes, we
47410
+ * rebuild the cached rows in useLayoutEffect below, and the scroll handler
47411
+ * always reads the latest cache from dataRowsRef.current.
46935
47412
  */
46936
- React$1.useEffect(function () {
46937
- var partialListeners = [{
46938
- name: "complete",
46939
- handler: onComplete
46940
- }, {
46941
- name: "loopComplete",
46942
- handler: onLoopComplete
46943
- }, {
46944
- name: "enterFrame",
46945
- handler: onEnterFrame
46946
- }, {
46947
- name: "segmentStart",
46948
- handler: onSegmentStart
46949
- }, {
46950
- name: "config_ready",
46951
- handler: onConfigReady
46952
- }, {
46953
- name: "data_ready",
46954
- handler: onDataReady
46955
- }, {
46956
- name: "data_failed",
46957
- handler: onDataFailed
46958
- }, {
46959
- name: "loaded_images",
46960
- handler: onLoadedImages
46961
- }, {
46962
- name: "DOMLoaded",
46963
- handler: onDOMLoaded
46964
- }, {
46965
- name: "destroy",
46966
- handler: onDestroy
46967
- }];
46968
- var listeners = partialListeners.filter(function (listener) {
46969
- return listener.handler != null;
46970
- });
46971
- if (!listeners.length) {
46972
- return;
46973
- }
46974
- var deregisterList = listeners.map(
46975
- /**
46976
- * Handle the process of adding an event listener
46977
- * @param {Listener} listener
46978
- * @return {Function} Function that deregister the listener
46979
- */
46980
- function (listener) {
46981
- var _a;
46982
- (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener(listener.name, listener.handler);
46983
- // Return a function to deregister this listener
46984
- return function () {
46985
- var _a;
46986
- (_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(listener.name, listener.handler);
46987
- };
46988
- });
46989
- // Deregister listeners on unmount
46990
- return function () {
46991
- deregisterList.forEach(function (deregister) {
46992
- return deregister();
47413
+ React$1.useEffect(() => {
47414
+ if (!showFooter) return;
47415
+ const scrollWrapper = scrollWrapperRef.current;
47416
+ if (!scrollWrapper) return;
47417
+ let rafId = null;
47418
+ const handleScrollWithRAF = () => {
47419
+ if (rafId) return;
47420
+ rafId = requestAnimationFrame(() => {
47421
+ // Use the same element we attached the listener to.
47422
+ updateVisibleRows(scrollWrapper);
47423
+ rafId = null;
46993
47424
  });
46994
47425
  };
46995
- }, [onComplete, onLoopComplete, onEnterFrame, onSegmentStart, onConfigReady, onDataReady, onDataFailed, onLoadedImages, onDOMLoaded, onDestroy]);
46996
- /**
46997
- * Build the animation view
47426
+ scrollWrapper.addEventListener("scroll", handleScrollWithRAF);
47427
+ return () => {
47428
+ scrollWrapper.removeEventListener("scroll", handleScrollWithRAF);
47429
+ if (rafId) cancelAnimationFrame(rafId);
47430
+ };
47431
+ }, [showFooter, dataLength]);
47432
+
47433
+ /**
47434
+ * Rebuild the cached list of data-row <tr> elements whenever the table
47435
+ * structure changes:
47436
+ * - new data loaded
47437
+ * - row expanded/collapsed
47438
+ * - footer enabled/disabled
47439
+ *
47440
+ * useLayoutEffect runs after DOM updates but before paint, so our cached rows
47441
+ * and the computed visible range stay in sync with the latest layout.
46998
47442
  */
46999
- var View = /*#__PURE__*/React__default["default"].createElement("div", _objectSpread2({
47000
- style: style,
47001
- ref: animationContainer
47002
- }, rest));
47003
- return {
47004
- View: View,
47005
- play: play,
47006
- stop: stop,
47007
- pause: pause,
47008
- setSpeed: setSpeed,
47009
- goToAndStop: goToAndStop,
47010
- goToAndPlay: goToAndPlay,
47011
- setDirection: setDirection,
47012
- playSegments: playSegments,
47013
- setSubframe: setSubframe,
47014
- getDuration: getDuration,
47015
- destroy: destroy,
47016
- animationContainerRef: animationContainer,
47017
- animationLoaded: animationLoaded,
47018
- animationItem: animationInstanceRef.current
47019
- };
47020
- };
47021
-
47022
- // helpers
47023
- function getContainerVisibility(container) {
47024
- var _container$getBoundin = container.getBoundingClientRect(),
47025
- top = _container$getBoundin.top,
47026
- height = _container$getBoundin.height;
47027
- var current = window.innerHeight - top;
47028
- var max = window.innerHeight + height;
47029
- return current / max;
47030
- }
47031
- function getContainerCursorPosition(container, cursorX, cursorY) {
47032
- var _container$getBoundin2 = container.getBoundingClientRect(),
47033
- top = _container$getBoundin2.top,
47034
- left = _container$getBoundin2.left,
47035
- width = _container$getBoundin2.width,
47036
- height = _container$getBoundin2.height;
47037
- var x = (cursorX - left) / width;
47038
- var y = (cursorY - top) / height;
47039
- return {
47040
- x: x,
47041
- y: y
47042
- };
47043
- }
47044
- var useInitInteractivity = function useInitInteractivity(_ref) {
47045
- var wrapperRef = _ref.wrapperRef,
47046
- animationItem = _ref.animationItem,
47047
- mode = _ref.mode,
47048
- actions = _ref.actions;
47049
- React$1.useEffect(function () {
47050
- var wrapper = wrapperRef.current;
47051
- if (!wrapper || !animationItem || !actions.length) {
47443
+ React$1.useLayoutEffect(() => {
47444
+ const el = scrollWrapperRef.current;
47445
+ if (!el || !showFooter) return;
47446
+ if (dataLength === 0) {
47447
+ // Ensure we drop references + reset UI when data disappears.
47448
+ dataRowsRef.current = [];
47449
+ setVisibleFirst(1);
47450
+ setVisibleLast(0);
47052
47451
  return;
47053
47452
  }
47054
- animationItem.stop();
47055
- var scrollModeHandler = function scrollModeHandler() {
47056
- var assignedSegment = null;
47057
- var scrollHandler = function scrollHandler() {
47058
- var currentPercent = getContainerVisibility(wrapper);
47059
- // Find the first action that satisfies the current position conditions
47060
- var action = actions.find(function (_ref2) {
47061
- var visibility = _ref2.visibility;
47062
- return visibility && currentPercent >= visibility[0] && currentPercent <= visibility[1];
47063
- });
47064
- // Skip if no matching action was found!
47065
- if (!action) {
47066
- return;
47067
- }
47068
- if (action.type === "seek" && action.visibility && action.frames.length === 2) {
47069
- // Seek: Go to a frame based on player scroll position action
47070
- var frameToGo = action.frames[0] + Math.ceil((currentPercent - action.visibility[0]) / (action.visibility[1] - action.visibility[0]) * action.frames[1]);
47071
- //! goToAndStop must be relative to the start of the current segment
47072
- animationItem.goToAndStop(frameToGo - animationItem.firstFrame - 1, true);
47073
- }
47074
- if (action.type === "loop") {
47075
- // Loop: Loop a given frames
47076
- if (assignedSegment === null) {
47077
- // if not playing any segments currently. play those segments and save to state
47078
- animationItem.playSegments(action.frames, true);
47079
- assignedSegment = action.frames;
47080
- } else {
47081
- // if playing any segments currently.
47082
- //check if segments in state are equal to the frames selected by action
47083
- if (assignedSegment !== action.frames) {
47084
- // if they are not equal. new segments are to be loaded
47085
- animationItem.playSegments(action.frames, true);
47086
- assignedSegment = action.frames;
47087
- } else if (animationItem.isPaused) {
47088
- // if they are equal the play method must be called only if lottie is paused
47089
- animationItem.playSegments(action.frames, true);
47090
- assignedSegment = action.frames;
47091
- }
47092
- }
47093
- }
47094
- if (action.type === "play" && animationItem.isPaused) {
47095
- // Play: Reset segments and continue playing full animation from current position
47096
- animationItem.resetSegments(true);
47097
- animationItem.play();
47098
- }
47099
- if (action.type === "stop") {
47100
- // Stop: Stop playback
47101
- animationItem.goToAndStop(action.frames[0] - animationItem.firstFrame - 1, true);
47102
- }
47103
- };
47104
- document.addEventListener("scroll", scrollHandler);
47105
- return function () {
47106
- document.removeEventListener("scroll", scrollHandler);
47107
- };
47108
- };
47109
- var cursorModeHandler = function cursorModeHandler() {
47110
- var handleCursor = function handleCursor(_x, _y) {
47111
- var x = _x;
47112
- var y = _y;
47113
- // Resolve cursor position if cursor is inside container
47114
- if (x !== -1 && y !== -1) {
47115
- // Get container cursor position
47116
- var pos = getContainerCursorPosition(wrapper, x, y);
47117
- // Use the resolved position
47118
- x = pos.x;
47119
- y = pos.y;
47120
- }
47121
- // Find the first action that satisfies the current position conditions
47122
- var action = actions.find(function (_ref3) {
47123
- var position = _ref3.position;
47124
- if (position && Array.isArray(position.x) && Array.isArray(position.y)) {
47125
- return x >= position.x[0] && x <= position.x[1] && y >= position.y[0] && y <= position.y[1];
47126
- }
47127
- if (position && !Number.isNaN(position.x) && !Number.isNaN(position.y)) {
47128
- return x === position.x && y === position.y;
47129
- }
47130
- return false;
47131
- });
47132
- // Skip if no matching action was found!
47133
- if (!action) {
47134
- return;
47135
- }
47136
- // Process action types:
47137
- if (action.type === "seek" && action.position && Array.isArray(action.position.x) && Array.isArray(action.position.y) && action.frames.length === 2) {
47138
- // Seek: Go to a frame based on player scroll position action
47139
- var xPercent = (x - action.position.x[0]) / (action.position.x[1] - action.position.x[0]);
47140
- var yPercent = (y - action.position.y[0]) / (action.position.y[1] - action.position.y[0]);
47141
- animationItem.playSegments(action.frames, true);
47142
- animationItem.goToAndStop(Math.ceil((xPercent + yPercent) / 2 * (action.frames[1] - action.frames[0])), true);
47143
- }
47144
- if (action.type === "loop") {
47145
- animationItem.playSegments(action.frames, true);
47146
- }
47147
- if (action.type === "play") {
47148
- // Play: Reset segments and continue playing full animation from current position
47149
- if (animationItem.isPaused) {
47150
- animationItem.resetSegments(false);
47151
- }
47152
- animationItem.playSegments(action.frames);
47153
- }
47154
- if (action.type === "stop") {
47155
- animationItem.goToAndStop(action.frames[0], true);
47156
- }
47157
- };
47158
- var mouseMoveHandler = function mouseMoveHandler(ev) {
47159
- handleCursor(ev.clientX, ev.clientY);
47160
- };
47161
- var mouseOutHandler = function mouseOutHandler() {
47162
- handleCursor(-1, -1);
47163
- };
47164
- wrapper.addEventListener("mousemove", mouseMoveHandler);
47165
- wrapper.addEventListener("mouseout", mouseOutHandler);
47166
- return function () {
47167
- wrapper.removeEventListener("mousemove", mouseMoveHandler);
47168
- wrapper.removeEventListener("mouseout", mouseOutHandler);
47169
- };
47453
+ dataRowsRef.current = buildDataRowsCache(el);
47454
+ updateVisibleRows(el);
47455
+
47456
+ // Optional cleanup: explicitly drop DOM references on unmount/refresh.
47457
+ return () => {
47458
+ dataRowsRef.current = [];
47170
47459
  };
47171
- switch (mode) {
47172
- case "scroll":
47173
- return scrollModeHandler();
47174
- case "cursor":
47175
- return cursorModeHandler();
47176
- }
47177
- // eslint-disable-next-line react-hooks/exhaustive-deps
47178
- }, [mode, animationItem]);
47179
- };
47180
- var useLottieInteractivity = function useLottieInteractivity(_ref4) {
47181
- var actions = _ref4.actions,
47182
- mode = _ref4.mode,
47183
- lottieObj = _ref4.lottieObj;
47184
- var animationItem = lottieObj.animationItem,
47185
- View = lottieObj.View,
47186
- animationContainerRef = lottieObj.animationContainerRef;
47187
- useInitInteractivity({
47188
- actions: actions,
47189
- animationItem: animationItem,
47190
- mode: mode,
47191
- wrapperRef: animationContainerRef
47192
- });
47193
- return View;
47194
- };
47195
- var _excluded = ["style", "interactivity"];
47196
- var Lottie = function Lottie(props) {
47197
- var _a, _b, _c;
47198
- var style = props.style,
47199
- interactivity = props.interactivity,
47200
- lottieProps = _objectWithoutProperties(props, _excluded);
47201
- /**
47202
- * Initialize the 'useLottie' hook
47203
- */
47204
- var _useLottie = useLottie(lottieProps, style),
47205
- View = _useLottie.View,
47206
- play = _useLottie.play,
47207
- stop = _useLottie.stop,
47208
- pause = _useLottie.pause,
47209
- setSpeed = _useLottie.setSpeed,
47210
- goToAndStop = _useLottie.goToAndStop,
47211
- goToAndPlay = _useLottie.goToAndPlay,
47212
- setDirection = _useLottie.setDirection,
47213
- playSegments = _useLottie.playSegments,
47214
- setSubframe = _useLottie.setSubframe,
47215
- getDuration = _useLottie.getDuration,
47216
- destroy = _useLottie.destroy,
47217
- animationContainerRef = _useLottie.animationContainerRef,
47218
- animationLoaded = _useLottie.animationLoaded,
47219
- animationItem = _useLottie.animationItem;
47220
- /**
47221
- * Make the hook variables/methods available through the provided 'lottieRef'
47222
- */
47223
- React$1.useEffect(function () {
47224
- if (props.lottieRef) {
47225
- props.lottieRef.current = {
47226
- play: play,
47227
- stop: stop,
47228
- pause: pause,
47229
- setSpeed: setSpeed,
47230
- goToAndPlay: goToAndPlay,
47231
- goToAndStop: goToAndStop,
47232
- setDirection: setDirection,
47233
- playSegments: playSegments,
47234
- setSubframe: setSubframe,
47235
- getDuration: getDuration,
47236
- destroy: destroy,
47237
- animationContainerRef: animationContainerRef,
47238
- animationLoaded: animationLoaded,
47239
- animationItem: animationItem
47240
- };
47241
- }
47242
- // eslint-disable-next-line react-hooks/exhaustive-deps
47243
- }, [(_a = props.lottieRef) === null || _a === void 0 ? void 0 : _a.current]);
47244
- return useLottieInteractivity({
47245
- lottieObj: {
47246
- View: View,
47247
- play: play,
47248
- stop: stop,
47249
- pause: pause,
47250
- setSpeed: setSpeed,
47251
- goToAndStop: goToAndStop,
47252
- goToAndPlay: goToAndPlay,
47253
- setDirection: setDirection,
47254
- playSegments: playSegments,
47255
- setSubframe: setSubframe,
47256
- getDuration: getDuration,
47257
- destroy: destroy,
47258
- animationContainerRef: animationContainerRef,
47259
- animationLoaded: animationLoaded,
47260
- animationItem: animationItem
47261
- },
47262
- actions: (_b = interactivity === null || interactivity === void 0 ? void 0 : interactivity.actions) !== null && _b !== void 0 ? _b : [],
47263
- mode: (_c = interactivity === null || interactivity === void 0 ? void 0 : interactivity.mode) !== null && _c !== void 0 ? _c : "scroll"
47264
- });
47460
+ }, [dataLength, showFooter, expandedRows]);
47461
+ return {
47462
+ visibleFirst,
47463
+ visibleLast
47464
+ };
47265
47465
  };
47266
47466
 
47267
47467
  const NoSearchUpcIcon = ({
@@ -47470,12 +47670,25 @@ const Table = props => {
47470
47670
  initialSortColumn = null,
47471
47671
  initialSortValue = null,
47472
47672
  onFilterStateChange = null,
47473
- onSortStateChange = null
47673
+ onSortStateChange = null,
47674
+ // Footer props
47675
+ showFooter = false,
47676
+ total,
47677
+ rowLabel = ""
47474
47678
  } = props;
47475
47679
  const scrollWrapperRef = React$1.useRef(null);
47476
47680
  const tableBodyRef = React$1.useRef(null);
47477
47681
  const tableContainerRef = React$1.useRef(null);
47478
47682
  const [hasTriggered, setHasTriggered] = React$1.useState(false);
47683
+ const {
47684
+ visibleFirst,
47685
+ visibleLast
47686
+ } = useVisibleRows({
47687
+ scrollWrapperRef,
47688
+ dataLength: data.length,
47689
+ showFooter,
47690
+ expandedRows
47691
+ });
47479
47692
  const clearTableFocus = () => {
47480
47693
  if (tableBodyRef.current) {
47481
47694
  tableBodyRef.current.clearFocus();
@@ -47633,7 +47846,7 @@ const Table = props => {
47633
47846
  backgroundColor: buttonColor,
47634
47847
  hoverBackgroundColor: buttonHoverColor,
47635
47848
  onClick: onButtonClick
47636
- }))), isLoading && /*#__PURE__*/React__default["default"].createElement(LoadingWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(Lottie, {
47849
+ }))), isLoading && !showFooter && /*#__PURE__*/React__default["default"].createElement(LoadingWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(Lottie, {
47637
47850
  style: {
47638
47851
  width: "24px",
47639
47852
  height: "24px"
@@ -47642,7 +47855,14 @@ const Table = props => {
47642
47855
  loop: true
47643
47856
  }), /*#__PURE__*/React__default["default"].createElement(LoadingText$1, null, isLoadingText)), isLoadingSpinner && /*#__PURE__*/React__default["default"].createElement(LoaderWrapper, {
47644
47857
  id: "LoaderWrapper"
47645
- }, /*#__PURE__*/React__default["default"].createElement(Loader, null)))));
47858
+ }, /*#__PURE__*/React__default["default"].createElement(Loader, null)), showFooter && /*#__PURE__*/React__default["default"].createElement(TableFooter, {
47859
+ visibleFirst: visibleFirst,
47860
+ visibleLast: visibleLast,
47861
+ total: total,
47862
+ rowLabel: rowLabel,
47863
+ isLoading: isLoading,
47864
+ isLoadingText: isLoadingText
47865
+ }))));
47646
47866
  };
47647
47867
  Table.displayName = "Table";
47648
47868
 
@@ -47818,6 +48038,49 @@ const CustomTooltip$1 = styled.styled(Tooltip$2)`
47818
48038
  }
47819
48039
  }
47820
48040
  `;
48041
+ const FixedPositionTooltip = ({
48042
+ children,
48043
+ content,
48044
+ topFactor = -1,
48045
+ direction = "top",
48046
+ delay = 400,
48047
+ className
48048
+ }) => {
48049
+ const handleMouseEnter = e => {
48050
+ const r = e.currentTarget.getBoundingClientRect();
48051
+ e.currentTarget.style.setProperty("--tt-top", `${r.top + 40 * topFactor}px`);
48052
+ e.currentTarget.style.setProperty("--tt-left", `${r.left + r.width / 2}px`);
48053
+ };
48054
+ return /*#__PURE__*/React__default["default"].createElement("span", {
48055
+ onMouseEnter: handleMouseEnter,
48056
+ style: {
48057
+ display: "block",
48058
+ width: "100%"
48059
+ }
48060
+ }, /*#__PURE__*/React__default["default"].createElement(Tooltip$2, {
48061
+ content,
48062
+ direction,
48063
+ topFactor,
48064
+ delay,
48065
+ className
48066
+ }, children));
48067
+ };
48068
+ const TextTooltip = styled.styled(FixedPositionTooltip)`
48069
+ --tooltip-arrow-size: 8px;
48070
+ .tooltip-wrapper {
48071
+ display: block !important;
48072
+ width: 100%;
48073
+ text-align: left;
48074
+ }
48075
+ .controls.top {
48076
+ position: fixed !important;
48077
+ top: var(--tt-top) !important;
48078
+ left: var(--tt-left) !important;
48079
+ transform: translateX(-50%) !important;
48080
+ padding: 5px 11px;
48081
+ pointer-events: none;
48082
+ }
48083
+ `;
47821
48084
  const TooltipContent$1 = styled.styled.span`
47822
48085
  color: #212121;
47823
48086
  font-family: Poppins;
@@ -48533,9 +48796,10 @@ const NewSubitemList = props => {
48533
48796
  onClick: e => {
48534
48797
  handleEditExistingPackage(item);
48535
48798
  }
48536
- }, item.brands && /*#__PURE__*/React__default["default"].createElement(Title$6, {
48537
- title: item.brands
48538
- }, item.brands), item.component && /*#__PURE__*/React__default["default"].createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React__default["default"].createElement(Chevron, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
48799
+ }, item.brands && /*#__PURE__*/React__default["default"].createElement(TextTooltip, {
48800
+ content: /*#__PURE__*/React__default["default"].createElement(TooltipContent, null, item.brands),
48801
+ topFactor: -1
48802
+ }, /*#__PURE__*/React__default["default"].createElement(Title$6, null, item.brands)), item.component && /*#__PURE__*/React__default["default"].createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React__default["default"].createElement(Chevron, null, /*#__PURE__*/React__default["default"].createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
48539
48803
  hideTooltip: trashIsHovered,
48540
48804
  content: /*#__PURE__*/React__default["default"].createElement(TooltipContent, {
48541
48805
  dangerouslySetInnerHTML: {
@@ -57786,9 +58050,10 @@ const ItemManagerPanel = _ref => {
57786
58050
  onClick: e => {
57787
58051
  handleVendorClick(item);
57788
58052
  }
57789
- }, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, {
57790
- title: item.name
57791
- }, item.name), packagesLength === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, {
58053
+ }, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(TextTooltip, {
58054
+ content: /*#__PURE__*/React__default["default"].createElement(TooltipContent$1, null, item.name),
58055
+ topFactor: -1
58056
+ }, /*#__PURE__*/React__default["default"].createElement(VendorName$2, null, item.name)), packagesLength === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, {
57792
58057
  color: SubTitleColor
57793
58058
  }, (() => {
57794
58059
  const noPackagesSent = sentPackagesLength === 0;