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