@micromag/screen-urbania-horoscope 0.4.86 → 0.4.87
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/es/index.js +861 -342
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineMessage, FormattedMessage, useIntl } from 'react-intl';
|
|
2
|
+
import { c } from 'react/compiler-runtime';
|
|
2
3
|
import { animated } from '@react-spring/web';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
|
-
import {
|
|
5
|
+
import { useState, useEffect } from 'react';
|
|
5
6
|
import { PlaceholderTitle, ScreenElement } from '@micromag/core/components';
|
|
6
7
|
import { useScreenRenderContext, useViewerInteraction, usePlaybackContext, usePlaybackMediaRef, useScreenSize, useViewerContext, useScreenState } from '@micromag/core/contexts';
|
|
7
8
|
import { useTrackScreenEvent, useDragProgress } from '@micromag/core/hooks';
|
|
@@ -38,7 +39,6 @@ import sagittariusThumbnail from '../assets/images/0964d576c4c1da6d.png';
|
|
|
38
39
|
import scorpioThumbnail from '../assets/images/1ffa37309c1fbcfa.png';
|
|
39
40
|
import taurusThumbnail from '../assets/images/822018b354054d62.png';
|
|
40
41
|
import virgoThumbnail from '../assets/images/b3e1e35461e78e82.png';
|
|
41
|
-
import { c } from 'react/compiler-runtime';
|
|
42
42
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
43
43
|
import Scroll from '@micromag/element-scroll';
|
|
44
44
|
|
|
@@ -591,23 +591,40 @@ const mouseBlocker = {
|
|
|
591
591
|
cursor: 'default'
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
|
-
function UrbaniaHoroscope({
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
594
|
+
function UrbaniaHoroscope(t0) {
|
|
595
|
+
const $ = c(166);
|
|
596
|
+
const {
|
|
597
|
+
defaultSigns: t1,
|
|
598
|
+
signs: t2,
|
|
599
|
+
title: t3,
|
|
600
|
+
description: t4,
|
|
601
|
+
author: t5,
|
|
602
|
+
button: t6,
|
|
603
|
+
signSubtitle: t7,
|
|
604
|
+
spacing: t8,
|
|
605
|
+
background: t9,
|
|
606
|
+
popupBackground: t10,
|
|
607
|
+
current: t11,
|
|
608
|
+
preload: t12,
|
|
609
|
+
type: t13,
|
|
610
|
+
mediaRef: t14,
|
|
611
|
+
className: t15
|
|
612
|
+
} = t0;
|
|
613
|
+
const defaultSigns = t1 === undefined ? null : t1;
|
|
614
|
+
const signsValue = t2 === undefined ? null : t2;
|
|
615
|
+
const title = t3 === undefined ? null : t3;
|
|
616
|
+
const description = t4 === undefined ? null : t4;
|
|
617
|
+
const author = t5 === undefined ? null : t5;
|
|
618
|
+
const button = t6 === undefined ? null : t6;
|
|
619
|
+
const signSubtitle = t7 === undefined ? null : t7;
|
|
620
|
+
const spacing = t8 === undefined ? 20 : t8;
|
|
621
|
+
const background = t9 === undefined ? null : t9;
|
|
622
|
+
const popupBackground = t10 === undefined ? null : t10;
|
|
623
|
+
const current = t11 === undefined ? true : t11;
|
|
624
|
+
const preload = t12 === undefined ? true : t12;
|
|
625
|
+
const type = t13 === undefined ? "horoscope" : t13;
|
|
626
|
+
const customMediaRef = t14 === undefined ? null : t14;
|
|
627
|
+
const className = t15 === undefined ? null : t15;
|
|
611
628
|
const intl = useIntl();
|
|
612
629
|
const trackScreenEvent = useTrackScreenEvent(type);
|
|
613
630
|
const {
|
|
@@ -619,15 +636,45 @@ function UrbaniaHoroscope({
|
|
|
619
636
|
} = usePlaybackContext();
|
|
620
637
|
const {
|
|
621
638
|
ref: mediaRef,
|
|
622
|
-
isCurrent:
|
|
639
|
+
isCurrent: t16
|
|
623
640
|
} = usePlaybackMediaRef(current, true);
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
641
|
+
const isCurrentMedia = t16 === undefined ? false : t16;
|
|
642
|
+
let t17;
|
|
643
|
+
if ($[0] !== author) {
|
|
644
|
+
t17 = author !== null && isTextFilled(author.name);
|
|
645
|
+
$[0] = author;
|
|
646
|
+
$[1] = t17;
|
|
647
|
+
} else {
|
|
648
|
+
t17 = $[1];
|
|
649
|
+
}
|
|
650
|
+
const hasAuthor = t17;
|
|
651
|
+
const t18 = defaultSigns || signs;
|
|
652
|
+
let t19;
|
|
653
|
+
if ($[2] !== signsValue || $[3] !== t18) {
|
|
654
|
+
let t20;
|
|
655
|
+
if ($[5] !== signsValue) {
|
|
656
|
+
t20 = (defaultSign, index) => ({
|
|
657
|
+
...(signsValue !== null ? signsValue.find(t21 => {
|
|
658
|
+
const {
|
|
659
|
+
id: signValueId
|
|
660
|
+
} = t21;
|
|
661
|
+
return signValueId === defaultSign.id;
|
|
662
|
+
}) || signsValue[index] : null),
|
|
663
|
+
...defaultSign
|
|
664
|
+
});
|
|
665
|
+
$[5] = signsValue;
|
|
666
|
+
$[6] = t20;
|
|
667
|
+
} else {
|
|
668
|
+
t20 = $[6];
|
|
669
|
+
}
|
|
670
|
+
t19 = t18.map(t20);
|
|
671
|
+
$[2] = signsValue;
|
|
672
|
+
$[3] = t18;
|
|
673
|
+
$[4] = t19;
|
|
674
|
+
} else {
|
|
675
|
+
t19 = $[4];
|
|
676
|
+
}
|
|
677
|
+
const signs$1 = t19;
|
|
631
678
|
const {
|
|
632
679
|
width,
|
|
633
680
|
height,
|
|
@@ -643,354 +690,731 @@ function UrbaniaHoroscope({
|
|
|
643
690
|
isPlaceholder,
|
|
644
691
|
isEdit
|
|
645
692
|
} = useScreenRenderContext();
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
693
|
+
let t20;
|
|
694
|
+
if ($[7] !== title) {
|
|
695
|
+
t20 = isTextFilled(title);
|
|
696
|
+
$[7] = title;
|
|
697
|
+
$[8] = t20;
|
|
698
|
+
} else {
|
|
699
|
+
t20 = $[8];
|
|
700
|
+
}
|
|
701
|
+
const hasTitle = t20;
|
|
702
|
+
let t21;
|
|
703
|
+
if ($[9] !== description) {
|
|
704
|
+
t21 = isTextFilled(description);
|
|
705
|
+
$[9] = description;
|
|
706
|
+
$[10] = t21;
|
|
707
|
+
} else {
|
|
708
|
+
t21 = $[10];
|
|
709
|
+
}
|
|
710
|
+
const hasDescription = t21;
|
|
711
|
+
let t22;
|
|
712
|
+
if ($[11] !== button) {
|
|
713
|
+
t22 = isTextFilled(button);
|
|
714
|
+
$[11] = button;
|
|
715
|
+
$[12] = t22;
|
|
716
|
+
} else {
|
|
717
|
+
t22 = $[12];
|
|
718
|
+
}
|
|
719
|
+
const hasButton = t22;
|
|
649
720
|
const backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
650
721
|
const mediaShouldLoad = !isPlaceholder && (current || preload);
|
|
651
722
|
const [showSignsGrid, setShowSignsGrid] = useState(false);
|
|
652
723
|
const [selectedSign, setSelectedSign] = useState(null);
|
|
653
724
|
const [showModal, setShowModal] = useState(false);
|
|
725
|
+
let t23;
|
|
726
|
+
if ($[13] !== popupBackground) {
|
|
727
|
+
t23 = popupBackground || {};
|
|
728
|
+
$[13] = popupBackground;
|
|
729
|
+
$[14] = t23;
|
|
730
|
+
} else {
|
|
731
|
+
t23 = $[14];
|
|
732
|
+
}
|
|
654
733
|
const {
|
|
655
|
-
video
|
|
656
|
-
} =
|
|
734
|
+
video: t24
|
|
735
|
+
} = t23;
|
|
736
|
+
const video = t24 === undefined ? null : t24;
|
|
737
|
+
let t25;
|
|
738
|
+
if ($[15] !== video) {
|
|
739
|
+
t25 = video || {};
|
|
740
|
+
$[15] = video;
|
|
741
|
+
$[16] = t25;
|
|
742
|
+
} else {
|
|
743
|
+
t25 = $[16];
|
|
744
|
+
}
|
|
657
745
|
const {
|
|
658
|
-
url:
|
|
659
|
-
} =
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
746
|
+
url: t26
|
|
747
|
+
} = t25;
|
|
748
|
+
const popupBackgroundUrl = t26 === undefined ? null : t26;
|
|
749
|
+
let t27;
|
|
750
|
+
if ($[17] !== disableInteraction || $[18] !== trackScreenEvent) {
|
|
751
|
+
t27 = () => {
|
|
752
|
+
setShowSignsGrid(true);
|
|
753
|
+
disableInteraction();
|
|
754
|
+
trackScreenEvent("open");
|
|
755
|
+
};
|
|
756
|
+
$[17] = disableInteraction;
|
|
757
|
+
$[18] = trackScreenEvent;
|
|
758
|
+
$[19] = t27;
|
|
759
|
+
} else {
|
|
760
|
+
t27 = $[19];
|
|
761
|
+
}
|
|
762
|
+
const onOpenSignsGrid = t27;
|
|
763
|
+
let t28;
|
|
764
|
+
if ($[20] !== enableInteraction || $[21] !== showModal || $[22] !== trackScreenEvent) {
|
|
765
|
+
t28 = () => {
|
|
766
|
+
if (showModal) {
|
|
767
|
+
setShowModal(false);
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
setShowSignsGrid(false);
|
|
667
771
|
setShowModal(false);
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
trackScreenEvent
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
772
|
+
enableInteraction();
|
|
773
|
+
trackScreenEvent("close");
|
|
774
|
+
};
|
|
775
|
+
$[20] = enableInteraction;
|
|
776
|
+
$[21] = showModal;
|
|
777
|
+
$[22] = trackScreenEvent;
|
|
778
|
+
$[23] = t28;
|
|
779
|
+
} else {
|
|
780
|
+
t28 = $[23];
|
|
781
|
+
}
|
|
782
|
+
const onCloseSignsGrid = t28;
|
|
783
|
+
let t29;
|
|
784
|
+
if ($[24] !== signs$1 || $[25] !== trackScreenEvent) {
|
|
785
|
+
t29 = (e, id) => {
|
|
786
|
+
e.stopPropagation();
|
|
787
|
+
const foundSignIndex = signs$1.findIndex(s => s.id === id);
|
|
788
|
+
setSelectedSign(foundSignIndex);
|
|
789
|
+
setShowModal(true);
|
|
790
|
+
trackScreenEvent("select_sign", signs$1[foundSignIndex]);
|
|
791
|
+
};
|
|
792
|
+
$[24] = signs$1;
|
|
793
|
+
$[25] = trackScreenEvent;
|
|
794
|
+
$[26] = t29;
|
|
795
|
+
} else {
|
|
796
|
+
t29 = $[26];
|
|
797
|
+
}
|
|
798
|
+
const onSelectSign = t29;
|
|
799
|
+
let t30;
|
|
800
|
+
if ($[27] !== trackScreenEvent) {
|
|
801
|
+
t30 = () => {
|
|
802
|
+
setShowModal(false);
|
|
803
|
+
trackScreenEvent("close_sign");
|
|
804
|
+
};
|
|
805
|
+
$[27] = trackScreenEvent;
|
|
806
|
+
$[28] = t30;
|
|
807
|
+
} else {
|
|
808
|
+
t30 = $[28];
|
|
809
|
+
}
|
|
810
|
+
const onCloseModal = t30;
|
|
811
|
+
let t31;
|
|
812
|
+
if ($[29] !== onCloseSignsGrid) {
|
|
813
|
+
t31 = t32 => {
|
|
814
|
+
const {
|
|
815
|
+
active: dragActive,
|
|
816
|
+
movement: t33,
|
|
817
|
+
velocity: t34
|
|
818
|
+
} = t32;
|
|
819
|
+
const [, my] = t33;
|
|
820
|
+
const [, vy] = t34;
|
|
821
|
+
const windowHeight = typeof window !== "undefined" ? window.innerHeight : 0;
|
|
822
|
+
const progress = windowHeight > 0 ? Math.max(0, my) / (windowHeight * 0.8) : 0;
|
|
823
|
+
const reachedThreshold = vy > 0.3 || Math.abs(progress) > 0.3;
|
|
824
|
+
if (!dragActive) {
|
|
825
|
+
if (reachedThreshold) {
|
|
826
|
+
onCloseSignsGrid();
|
|
827
|
+
}
|
|
828
|
+
return reachedThreshold ? 0 : 1;
|
|
700
829
|
}
|
|
701
|
-
return
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
830
|
+
return 1 - progress;
|
|
831
|
+
};
|
|
832
|
+
$[29] = onCloseSignsGrid;
|
|
833
|
+
$[30] = t31;
|
|
834
|
+
} else {
|
|
835
|
+
t31 = $[30];
|
|
836
|
+
}
|
|
837
|
+
const computeSignsGridProgress = t31;
|
|
838
|
+
const t32 = !isView;
|
|
839
|
+
const t33 = showSignsGrid ? 1 : 0;
|
|
840
|
+
let t34;
|
|
841
|
+
let t35;
|
|
842
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
843
|
+
t34 = {
|
|
713
844
|
config: {
|
|
714
845
|
tension: 300,
|
|
715
846
|
friction: 30
|
|
716
847
|
}
|
|
717
|
-
}
|
|
718
|
-
|
|
848
|
+
};
|
|
849
|
+
t35 = {
|
|
719
850
|
pointer: {
|
|
720
851
|
keys: false
|
|
721
852
|
}
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
}
|
|
853
|
+
};
|
|
854
|
+
$[31] = t34;
|
|
855
|
+
$[32] = t35;
|
|
856
|
+
} else {
|
|
857
|
+
t34 = $[31];
|
|
858
|
+
t35 = $[32];
|
|
859
|
+
}
|
|
860
|
+
let t36;
|
|
861
|
+
if ($[33] !== computeSignsGridProgress || $[34] !== t32 || $[35] !== t33) {
|
|
862
|
+
t36 = {
|
|
863
|
+
disabled: t32,
|
|
864
|
+
progress: t33,
|
|
865
|
+
computeProgress: computeSignsGridProgress,
|
|
866
|
+
springParams: t34,
|
|
867
|
+
dragOptions: t35
|
|
868
|
+
};
|
|
869
|
+
$[33] = computeSignsGridProgress;
|
|
870
|
+
$[34] = t32;
|
|
871
|
+
$[35] = t33;
|
|
872
|
+
$[36] = t36;
|
|
873
|
+
} else {
|
|
874
|
+
t36 = $[36];
|
|
875
|
+
}
|
|
745
876
|
const {
|
|
746
|
-
bind:
|
|
747
|
-
progress:
|
|
748
|
-
} = useDragProgress(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
877
|
+
bind: bindSignsDrag,
|
|
878
|
+
progress: showSignsGridProgress
|
|
879
|
+
} = useDragProgress(t36);
|
|
880
|
+
let t37;
|
|
881
|
+
if ($[37] !== onCloseModal) {
|
|
882
|
+
t37 = t38 => {
|
|
883
|
+
const {
|
|
884
|
+
active: dragActive_0,
|
|
885
|
+
movement: t39,
|
|
886
|
+
velocity: t40
|
|
887
|
+
} = t38;
|
|
888
|
+
const [, my_0] = t39;
|
|
889
|
+
const [, vy_0] = t40;
|
|
890
|
+
const windowHeight_0 = typeof window !== "undefined" ? window.innerHeight : 0;
|
|
891
|
+
const p = windowHeight_0 > 0 ? Math.max(0, my_0) / windowHeight_0 : 0;
|
|
892
|
+
const progress_0 = p * 0.5;
|
|
893
|
+
const reachedThreshold_0 = vy_0 > 0.3 || Math.abs(p) > 0.3;
|
|
894
|
+
if (!dragActive_0) {
|
|
895
|
+
if (reachedThreshold_0) {
|
|
896
|
+
onCloseModal();
|
|
897
|
+
}
|
|
898
|
+
return reachedThreshold_0 ? 0 : 1;
|
|
899
|
+
}
|
|
900
|
+
return 1 - progress_0;
|
|
901
|
+
};
|
|
902
|
+
$[37] = onCloseModal;
|
|
903
|
+
$[38] = t37;
|
|
904
|
+
} else {
|
|
905
|
+
t37 = $[38];
|
|
906
|
+
}
|
|
907
|
+
const computeModalProgress = t37;
|
|
908
|
+
const t38 = !isView;
|
|
909
|
+
const t39 = showModal ? 1 : 0;
|
|
910
|
+
let t40;
|
|
911
|
+
let t41;
|
|
912
|
+
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
913
|
+
t40 = {
|
|
753
914
|
config: {
|
|
754
915
|
tension: 300,
|
|
755
916
|
friction: 30
|
|
756
917
|
}
|
|
757
|
-
}
|
|
758
|
-
|
|
918
|
+
};
|
|
919
|
+
t41 = {
|
|
759
920
|
pointer: {
|
|
760
921
|
keys: false
|
|
761
922
|
}
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
923
|
+
};
|
|
924
|
+
$[39] = t40;
|
|
925
|
+
$[40] = t41;
|
|
926
|
+
} else {
|
|
927
|
+
t40 = $[39];
|
|
928
|
+
t41 = $[40];
|
|
929
|
+
}
|
|
930
|
+
let t42;
|
|
931
|
+
if ($[41] !== computeModalProgress || $[42] !== t38 || $[43] !== t39) {
|
|
932
|
+
t42 = {
|
|
933
|
+
disabled: t38,
|
|
934
|
+
progress: t39,
|
|
935
|
+
computeProgress: computeModalProgress,
|
|
936
|
+
springParams: t40,
|
|
937
|
+
dragOptions: t41
|
|
938
|
+
};
|
|
939
|
+
$[41] = computeModalProgress;
|
|
940
|
+
$[42] = t38;
|
|
941
|
+
$[43] = t39;
|
|
942
|
+
$[44] = t42;
|
|
943
|
+
} else {
|
|
944
|
+
t42 = $[44];
|
|
945
|
+
}
|
|
946
|
+
const {
|
|
947
|
+
bind: bindModalDrag,
|
|
948
|
+
progress: showModalProgress
|
|
949
|
+
} = useDragProgress(t42);
|
|
950
|
+
const getHeaderStyles = _temp3;
|
|
951
|
+
const getSignsContainerStyles = _temp5;
|
|
952
|
+
const getSignStyles = _temp7;
|
|
953
|
+
const getAuthorStyles = _temp9;
|
|
954
|
+
const getBackdropStyles = _temp0;
|
|
955
|
+
const getModalStyles = _temp11;
|
|
789
956
|
const screenState = useScreenState();
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
957
|
+
let t43;
|
|
958
|
+
let t44;
|
|
959
|
+
if ($[45] !== screenState) {
|
|
960
|
+
t43 = () => {
|
|
793
961
|
setShowSignsGrid(false);
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
useEffect(() => {
|
|
809
|
-
const keyup = e_0 => {
|
|
810
|
-
if (e_0.key === 'Escape') {
|
|
811
|
-
if (showModal) {
|
|
812
|
-
onCloseModal();
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
815
|
-
if (showSignsGrid) {
|
|
816
|
-
onCloseSignsGrid();
|
|
817
|
-
}
|
|
962
|
+
if (screenState === null || screenState === "intro") {
|
|
963
|
+
setShowSignsGrid(false);
|
|
964
|
+
setShowModal(false);
|
|
965
|
+
}
|
|
966
|
+
if (screenState === "grid") {
|
|
967
|
+
setShowSignsGrid(true);
|
|
968
|
+
setSelectedSign(null);
|
|
969
|
+
setShowModal(false);
|
|
970
|
+
}
|
|
971
|
+
if (screenState !== null && screenState.includes("signs")) {
|
|
972
|
+
const index_0 = screenState.split(".").pop();
|
|
973
|
+
setShowSignsGrid(true);
|
|
974
|
+
setShowModal(true);
|
|
975
|
+
setSelectedSign(index_0);
|
|
818
976
|
}
|
|
819
977
|
};
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
978
|
+
t44 = [screenState, setShowSignsGrid, setShowModal, setSelectedSign];
|
|
979
|
+
$[45] = screenState;
|
|
980
|
+
$[46] = t43;
|
|
981
|
+
$[47] = t44;
|
|
982
|
+
} else {
|
|
983
|
+
t43 = $[46];
|
|
984
|
+
t44 = $[47];
|
|
985
|
+
}
|
|
986
|
+
useEffect(t43, t44);
|
|
987
|
+
let t45;
|
|
988
|
+
let t46;
|
|
989
|
+
if ($[48] !== onCloseModal || $[49] !== onCloseSignsGrid || $[50] !== showModal || $[51] !== showSignsGrid) {
|
|
990
|
+
t45 = () => {
|
|
991
|
+
const keyup = e_0 => {
|
|
992
|
+
if (e_0.key === "Escape") {
|
|
993
|
+
if (showModal) {
|
|
994
|
+
onCloseModal();
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
if (showSignsGrid) {
|
|
998
|
+
onCloseSignsGrid();
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
};
|
|
1002
|
+
document.addEventListener("keyup", keyup);
|
|
1003
|
+
return () => {
|
|
1004
|
+
document.removeEventListener("keyup", keyup);
|
|
1005
|
+
};
|
|
823
1006
|
};
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
1007
|
+
t46 = [showModal, onCloseModal, showSignsGrid, onCloseSignsGrid];
|
|
1008
|
+
$[48] = onCloseModal;
|
|
1009
|
+
$[49] = onCloseSignsGrid;
|
|
1010
|
+
$[50] = showModal;
|
|
1011
|
+
$[51] = showSignsGrid;
|
|
1012
|
+
$[52] = t45;
|
|
1013
|
+
$[53] = t46;
|
|
1014
|
+
} else {
|
|
1015
|
+
t45 = $[52];
|
|
1016
|
+
t46 = $[53];
|
|
1017
|
+
}
|
|
1018
|
+
useEffect(t45, t46);
|
|
1019
|
+
let t47;
|
|
1020
|
+
if ($[54] !== className || $[55] !== isPlaceholder) {
|
|
1021
|
+
t47 = classNames([styles.container, className, {
|
|
827
1022
|
[styles.isPlaceholder]: isPlaceholder
|
|
828
|
-
}])
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1023
|
+
}]);
|
|
1024
|
+
$[54] = className;
|
|
1025
|
+
$[55] = isPlaceholder;
|
|
1026
|
+
$[56] = t47;
|
|
1027
|
+
} else {
|
|
1028
|
+
t47 = $[56];
|
|
1029
|
+
}
|
|
1030
|
+
const t48 = showSignsGrid ? stopDragEventsPropagation : null;
|
|
1031
|
+
let t49;
|
|
1032
|
+
if ($[57] !== isView) {
|
|
1033
|
+
t49 = !isView ? /*#__PURE__*/jsx("div", {
|
|
832
1034
|
...mouseBlocker
|
|
833
|
-
}) : null
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
1035
|
+
}) : null;
|
|
1036
|
+
$[57] = isView;
|
|
1037
|
+
$[58] = t49;
|
|
1038
|
+
} else {
|
|
1039
|
+
t49 = $[58];
|
|
1040
|
+
}
|
|
1041
|
+
let t50;
|
|
1042
|
+
if ($[59] !== current || $[60] !== isPlaceholder || $[61] !== isPreview || $[62] !== spacing || $[63] !== viewerBottomHeight || $[64] !== viewerTopHeight) {
|
|
1043
|
+
t50 = !isPlaceholder ? {
|
|
1044
|
+
paddingLeft: spacing,
|
|
1045
|
+
paddingRight: spacing,
|
|
1046
|
+
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
1047
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
|
|
1048
|
+
} : null;
|
|
1049
|
+
$[59] = current;
|
|
1050
|
+
$[60] = isPlaceholder;
|
|
1051
|
+
$[61] = isPreview;
|
|
1052
|
+
$[62] = spacing;
|
|
1053
|
+
$[63] = viewerBottomHeight;
|
|
1054
|
+
$[64] = viewerTopHeight;
|
|
1055
|
+
$[65] = t50;
|
|
1056
|
+
} else {
|
|
1057
|
+
t50 = $[65];
|
|
1058
|
+
}
|
|
1059
|
+
const t51 = height * 0.8;
|
|
1060
|
+
let t52;
|
|
1061
|
+
if ($[66] !== isPlaceholder) {
|
|
1062
|
+
t52 = isPlaceholder ? /*#__PURE__*/jsx("div", {
|
|
1063
|
+
className: styles.placeholderGrid,
|
|
1064
|
+
children: [...Array(12).keys()].map(_temp12)
|
|
1065
|
+
}) : null;
|
|
1066
|
+
$[66] = isPlaceholder;
|
|
1067
|
+
$[67] = t52;
|
|
1068
|
+
} else {
|
|
1069
|
+
t52 = $[67];
|
|
1070
|
+
}
|
|
1071
|
+
let t53;
|
|
1072
|
+
if ($[68] !== showSignsGridProgress) {
|
|
1073
|
+
t53 = getHeaderStyles(showSignsGridProgress);
|
|
1074
|
+
$[68] = showSignsGridProgress;
|
|
1075
|
+
$[69] = t53;
|
|
1076
|
+
} else {
|
|
1077
|
+
t53 = $[69];
|
|
1078
|
+
}
|
|
1079
|
+
let t54;
|
|
1080
|
+
if ($[70] !== hasTitle || $[71] !== title) {
|
|
1081
|
+
t54 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1082
|
+
emptyClassName: styles.emptyText,
|
|
1083
|
+
children: hasTitle ? /*#__PURE__*/jsx(Heading, {
|
|
1084
|
+
className: styles.title,
|
|
1085
|
+
...title
|
|
1086
|
+
}) : /*#__PURE__*/jsx("img", {
|
|
1087
|
+
src: Astrologie,
|
|
1088
|
+
alt: "",
|
|
1089
|
+
className: styles.titleImage
|
|
1090
|
+
})
|
|
1091
|
+
});
|
|
1092
|
+
$[70] = hasTitle;
|
|
1093
|
+
$[71] = title;
|
|
1094
|
+
$[72] = t54;
|
|
1095
|
+
} else {
|
|
1096
|
+
t54 = $[72];
|
|
1097
|
+
}
|
|
1098
|
+
let t55;
|
|
1099
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1100
|
+
t55 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1101
|
+
id: "EQdIAR",
|
|
1102
|
+
defaultMessage: "Description"
|
|
1103
|
+
});
|
|
1104
|
+
$[73] = t55;
|
|
1105
|
+
} else {
|
|
1106
|
+
t55 = $[73];
|
|
1107
|
+
}
|
|
1108
|
+
const t56 = !hasDescription;
|
|
1109
|
+
let t57;
|
|
1110
|
+
if ($[74] !== description || $[75] !== hasDescription) {
|
|
1111
|
+
t57 = hasDescription ? /*#__PURE__*/jsx(Text, {
|
|
1112
|
+
className: styles.description,
|
|
1113
|
+
...description
|
|
1114
|
+
}) : null;
|
|
1115
|
+
$[74] = description;
|
|
1116
|
+
$[75] = hasDescription;
|
|
1117
|
+
$[76] = t57;
|
|
1118
|
+
} else {
|
|
1119
|
+
t57 = $[76];
|
|
1120
|
+
}
|
|
1121
|
+
let t58;
|
|
1122
|
+
if ($[77] !== t56 || $[78] !== t57) {
|
|
1123
|
+
t58 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1124
|
+
emptyLabel: t55,
|
|
1125
|
+
emptyClassName: styles.emptyText,
|
|
1126
|
+
isEmpty: t56,
|
|
1127
|
+
children: t57
|
|
1128
|
+
}, "description");
|
|
1129
|
+
$[77] = t56;
|
|
1130
|
+
$[78] = t57;
|
|
1131
|
+
$[79] = t58;
|
|
1132
|
+
} else {
|
|
1133
|
+
t58 = $[79];
|
|
1134
|
+
}
|
|
1135
|
+
let t59;
|
|
1136
|
+
if ($[80] !== t53 || $[81] !== t54 || $[82] !== t58) {
|
|
1137
|
+
t59 = /*#__PURE__*/jsxs(animated.div, {
|
|
1138
|
+
className: styles.headerContainer,
|
|
1139
|
+
style: t53,
|
|
1140
|
+
children: [t54, t58]
|
|
1141
|
+
});
|
|
1142
|
+
$[80] = t53;
|
|
1143
|
+
$[81] = t54;
|
|
1144
|
+
$[82] = t58;
|
|
1145
|
+
$[83] = t59;
|
|
1146
|
+
} else {
|
|
1147
|
+
t59 = $[83];
|
|
1148
|
+
}
|
|
1149
|
+
let t60;
|
|
1150
|
+
if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1151
|
+
t60 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1152
|
+
id: "bv3rRe",
|
|
1153
|
+
defaultMessage: "Button"
|
|
1154
|
+
});
|
|
1155
|
+
$[84] = t60;
|
|
1156
|
+
} else {
|
|
1157
|
+
t60 = $[84];
|
|
1158
|
+
}
|
|
1159
|
+
const t61 = !hasButton;
|
|
1160
|
+
let t62;
|
|
1161
|
+
if ($[85] !== button || $[86] !== current || $[87] !== hasButton || $[88] !== isPlaceholder || $[89] !== isPreview || $[90] !== onOpenSignsGrid) {
|
|
1162
|
+
t62 = hasButton ? /*#__PURE__*/jsx(Button, {
|
|
1163
|
+
className: styles.button,
|
|
1164
|
+
type: "button",
|
|
1165
|
+
onClick: onOpenSignsGrid,
|
|
1166
|
+
withoutBootstrapStyles: true,
|
|
1167
|
+
focusable: current && !isPreview && !isPlaceholder,
|
|
1168
|
+
...button,
|
|
1169
|
+
children: /*#__PURE__*/jsx(Text, {
|
|
1170
|
+
className: styles.buttonLabel,
|
|
1171
|
+
...button,
|
|
1172
|
+
inline: true
|
|
1173
|
+
})
|
|
1174
|
+
}) : null;
|
|
1175
|
+
$[85] = button;
|
|
1176
|
+
$[86] = current;
|
|
1177
|
+
$[87] = hasButton;
|
|
1178
|
+
$[88] = isPlaceholder;
|
|
1179
|
+
$[89] = isPreview;
|
|
1180
|
+
$[90] = onOpenSignsGrid;
|
|
1181
|
+
$[91] = t62;
|
|
1182
|
+
} else {
|
|
1183
|
+
t62 = $[91];
|
|
1184
|
+
}
|
|
1185
|
+
let t63;
|
|
1186
|
+
if ($[92] !== t61 || $[93] !== t62) {
|
|
1187
|
+
t63 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1188
|
+
emptyLabel: t60,
|
|
1189
|
+
emptyClassName: styles.emptyText,
|
|
1190
|
+
isEmpty: t61,
|
|
1191
|
+
children: t62
|
|
1192
|
+
});
|
|
1193
|
+
$[92] = t61;
|
|
1194
|
+
$[93] = t62;
|
|
1195
|
+
$[94] = t63;
|
|
1196
|
+
} else {
|
|
1197
|
+
t63 = $[94];
|
|
1198
|
+
}
|
|
1199
|
+
let t64;
|
|
1200
|
+
if ($[95] !== intl || $[96] !== isPlaceholder || $[97] !== isPreview || $[98] !== isView || $[99] !== onCloseSignsGrid || $[100] !== showModal || $[101] !== showSignsGrid || $[102] !== showSignsGridProgress) {
|
|
1201
|
+
t64 = isView && !isPlaceholder ? /*#__PURE__*/jsx(animated.div, {
|
|
1202
|
+
className: styles.header,
|
|
1203
|
+
style: {
|
|
1204
|
+
opacity: showSignsGridProgress,
|
|
1205
|
+
pointerEvents: showSignsGridProgress.to(_temp13)
|
|
1206
|
+
},
|
|
1207
|
+
children: /*#__PURE__*/jsx("div", {
|
|
1208
|
+
className: styles.buttons,
|
|
1209
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
1210
|
+
className: styles.close,
|
|
1211
|
+
onClick: onCloseSignsGrid,
|
|
1212
|
+
label: intl.formatMessage({
|
|
1213
|
+
id: "dj/p/q",
|
|
1214
|
+
defaultMessage: "Close"
|
|
880
1215
|
}),
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
className: styles.buttonLabel,
|
|
892
|
-
...button,
|
|
893
|
-
inline: true
|
|
894
|
-
})
|
|
895
|
-
}) : null
|
|
896
|
-
}), isView && !isPlaceholder ? /*#__PURE__*/jsx(animated.div, {
|
|
897
|
-
className: styles.header,
|
|
898
|
-
style: {
|
|
899
|
-
opacity: showSignsGridProgress,
|
|
900
|
-
pointerEvents: showSignsGridProgress.to(p_7 => p_7 < 0.25 ? 'none' : 'auto')
|
|
901
|
-
},
|
|
902
|
-
children: /*#__PURE__*/jsx("div", {
|
|
903
|
-
className: styles.buttons,
|
|
904
|
-
children: /*#__PURE__*/jsx(Button, {
|
|
905
|
-
className: styles.close,
|
|
906
|
-
onClick: onCloseSignsGrid,
|
|
907
|
-
label: intl.formatMessage({
|
|
908
|
-
id: "dj/p/q",
|
|
909
|
-
defaultMessage: "Close"
|
|
910
|
-
}),
|
|
911
|
-
iconPosition: "right",
|
|
912
|
-
icon: /*#__PURE__*/jsx("svg", {
|
|
913
|
-
className: styles.closeIcon,
|
|
914
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
915
|
-
width: "10",
|
|
916
|
-
height: "16",
|
|
917
|
-
viewBox: "0 0 10 16",
|
|
918
|
-
fill: "currentColor",
|
|
919
|
-
children: /*#__PURE__*/jsx("polygon", {
|
|
920
|
-
points: "9.95 4.11 8.89 3.05 5 6.94 1.11 3.05 0.05 4.11 3.94 8 0.05 11.89 1.11 12.95 5 9.06 8.89 12.95 9.95 11.89 6.06 8 9.95 4.11"
|
|
921
|
-
})
|
|
922
|
-
}),
|
|
923
|
-
focusable: !isPreview && !isPlaceholder && (showSignsGrid || showModal),
|
|
924
|
-
withoutStyle: true
|
|
925
|
-
})
|
|
926
|
-
})
|
|
927
|
-
}) : null, !isPlaceholder ? /*#__PURE__*/jsxs(animated.div, {
|
|
928
|
-
className: styles.signsGridContainer,
|
|
929
|
-
style: getSignsContainerStyles(showSignsGridProgress),
|
|
930
|
-
...bindSignsDrag(),
|
|
931
|
-
children: [/*#__PURE__*/jsx(Keypad, {
|
|
932
|
-
columns: 3,
|
|
933
|
-
spacing: 5,
|
|
934
|
-
withoutCloseButton: true,
|
|
935
|
-
items: signs.map(sign => {
|
|
936
|
-
const {
|
|
937
|
-
id: id_0 = null
|
|
938
|
-
} = sign || {};
|
|
939
|
-
return /*#__PURE__*/jsx(animated.div, {
|
|
940
|
-
className: styles.sign,
|
|
941
|
-
style: getSignStyles(showSignsGridProgress),
|
|
942
|
-
children: /*#__PURE__*/jsx(SignCard, {
|
|
943
|
-
sign: sign,
|
|
944
|
-
focusable: !isPreview && !isPlaceholder && showSignsGrid && !showModal,
|
|
945
|
-
onClick: e_1 => onSelectSign(e_1, id_0)
|
|
946
|
-
}, id_0)
|
|
947
|
-
}, id_0);
|
|
1216
|
+
iconPosition: "right",
|
|
1217
|
+
icon: /*#__PURE__*/jsx("svg", {
|
|
1218
|
+
className: styles.closeIcon,
|
|
1219
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1220
|
+
width: "10",
|
|
1221
|
+
height: "16",
|
|
1222
|
+
viewBox: "0 0 10 16",
|
|
1223
|
+
fill: "currentColor",
|
|
1224
|
+
children: /*#__PURE__*/jsx("polygon", {
|
|
1225
|
+
points: "9.95 4.11 8.89 3.05 5 6.94 1.11 3.05 0.05 4.11 3.94 8 0.05 11.89 1.11 12.95 5 9.06 8.89 12.95 9.95 11.89 6.06 8 9.95 4.11"
|
|
948
1226
|
})
|
|
949
|
-
}),
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}),
|
|
954
|
-
emptyClassName: styles.emptyText,
|
|
955
|
-
isEmpty: !hasAuthor,
|
|
956
|
-
children: hasAuthor && !isPlaceholder ? /*#__PURE__*/jsx(Author, {
|
|
957
|
-
author: author,
|
|
958
|
-
className: styles.author,
|
|
959
|
-
collaboratorClassName: styles.collaborator,
|
|
960
|
-
backgroundClassName: styles.authorBackground,
|
|
961
|
-
shouldLoad: mediaShouldLoad,
|
|
962
|
-
style: getAuthorStyles(showSignsGridProgress)
|
|
963
|
-
}) : null
|
|
964
|
-
}, "author")]
|
|
965
|
-
}) : null, /*#__PURE__*/jsx(animated.div, {
|
|
966
|
-
className: styles.modal,
|
|
967
|
-
style: getModalStyles(showModalProgress),
|
|
968
|
-
...bindModalDrag(),
|
|
969
|
-
children: /*#__PURE__*/jsx(SignModal, {
|
|
970
|
-
width: width,
|
|
971
|
-
height: height,
|
|
972
|
-
sign: signs[selectedSign],
|
|
973
|
-
subtitle: signSubtitle,
|
|
974
|
-
focusable: !isPreview && !isPlaceholder && showModal,
|
|
975
|
-
onClick: onCloseModal
|
|
976
|
-
})
|
|
977
|
-
}), !isPlaceholder ? /*#__PURE__*/jsx(animated.div, {
|
|
978
|
-
className: styles.backdrop,
|
|
979
|
-
style: getBackdropStyles(showSignsGridProgress),
|
|
980
|
-
children: popupBackgroundUrl !== null ? /*#__PURE__*/jsx("video", {
|
|
981
|
-
className: styles.videoBackdrop,
|
|
982
|
-
autoPlay: true,
|
|
983
|
-
muted: true,
|
|
984
|
-
loop: true,
|
|
985
|
-
playsInline: true,
|
|
986
|
-
children: /*#__PURE__*/jsx("source", {
|
|
987
|
-
src: popupBackgroundUrl,
|
|
988
|
-
type: "video/mp4"
|
|
989
|
-
})
|
|
990
|
-
}) : null
|
|
991
|
-
}) : null]
|
|
1227
|
+
}),
|
|
1228
|
+
focusable: !isPreview && !isPlaceholder && (showSignsGrid || showModal),
|
|
1229
|
+
withoutStyle: true
|
|
1230
|
+
})
|
|
992
1231
|
})
|
|
993
|
-
})
|
|
1232
|
+
}) : null;
|
|
1233
|
+
$[95] = intl;
|
|
1234
|
+
$[96] = isPlaceholder;
|
|
1235
|
+
$[97] = isPreview;
|
|
1236
|
+
$[98] = isView;
|
|
1237
|
+
$[99] = onCloseSignsGrid;
|
|
1238
|
+
$[100] = showModal;
|
|
1239
|
+
$[101] = showSignsGrid;
|
|
1240
|
+
$[102] = showSignsGridProgress;
|
|
1241
|
+
$[103] = t64;
|
|
1242
|
+
} else {
|
|
1243
|
+
t64 = $[103];
|
|
1244
|
+
}
|
|
1245
|
+
let t65;
|
|
1246
|
+
if ($[104] !== author || $[105] !== bindSignsDrag || $[106] !== hasAuthor || $[107] !== isPlaceholder || $[108] !== isPreview || $[109] !== mediaShouldLoad || $[110] !== onSelectSign || $[111] !== showModal || $[112] !== showSignsGrid || $[113] !== showSignsGridProgress || $[114] !== signs$1) {
|
|
1247
|
+
t65 = !isPlaceholder ? /*#__PURE__*/jsxs(animated.div, {
|
|
1248
|
+
className: styles.signsGridContainer,
|
|
1249
|
+
style: getSignsContainerStyles(showSignsGridProgress),
|
|
1250
|
+
...bindSignsDrag(),
|
|
1251
|
+
children: [/*#__PURE__*/jsx(Keypad, {
|
|
1252
|
+
columns: 3,
|
|
1253
|
+
spacing: 5,
|
|
1254
|
+
withoutCloseButton: true,
|
|
1255
|
+
items: signs$1.map(sign => {
|
|
1256
|
+
const {
|
|
1257
|
+
id: t66
|
|
1258
|
+
} = sign || {};
|
|
1259
|
+
const id_0 = t66 === undefined ? null : t66;
|
|
1260
|
+
return /*#__PURE__*/jsx(animated.div, {
|
|
1261
|
+
className: styles.sign,
|
|
1262
|
+
style: getSignStyles(showSignsGridProgress),
|
|
1263
|
+
children: /*#__PURE__*/jsx(SignCard, {
|
|
1264
|
+
sign: sign,
|
|
1265
|
+
focusable: !isPreview && !isPlaceholder && showSignsGrid && !showModal,
|
|
1266
|
+
onClick: e_1 => onSelectSign(e_1, id_0)
|
|
1267
|
+
}, id_0)
|
|
1268
|
+
}, id_0);
|
|
1269
|
+
})
|
|
1270
|
+
}), /*#__PURE__*/jsx(ScreenElement, {
|
|
1271
|
+
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
1272
|
+
id: "xYqGzM",
|
|
1273
|
+
defaultMessage: "Author"
|
|
1274
|
+
}),
|
|
1275
|
+
emptyClassName: styles.emptyText,
|
|
1276
|
+
isEmpty: !hasAuthor,
|
|
1277
|
+
children: hasAuthor && !isPlaceholder ? /*#__PURE__*/jsx(Author, {
|
|
1278
|
+
author: author,
|
|
1279
|
+
className: styles.author,
|
|
1280
|
+
collaboratorClassName: styles.collaborator,
|
|
1281
|
+
backgroundClassName: styles.authorBackground,
|
|
1282
|
+
shouldLoad: mediaShouldLoad,
|
|
1283
|
+
style: getAuthorStyles(showSignsGridProgress)
|
|
1284
|
+
}) : null
|
|
1285
|
+
}, "author")]
|
|
1286
|
+
}) : null;
|
|
1287
|
+
$[104] = author;
|
|
1288
|
+
$[105] = bindSignsDrag;
|
|
1289
|
+
$[106] = hasAuthor;
|
|
1290
|
+
$[107] = isPlaceholder;
|
|
1291
|
+
$[108] = isPreview;
|
|
1292
|
+
$[109] = mediaShouldLoad;
|
|
1293
|
+
$[110] = onSelectSign;
|
|
1294
|
+
$[111] = showModal;
|
|
1295
|
+
$[112] = showSignsGrid;
|
|
1296
|
+
$[113] = showSignsGridProgress;
|
|
1297
|
+
$[114] = signs$1;
|
|
1298
|
+
$[115] = t65;
|
|
1299
|
+
} else {
|
|
1300
|
+
t65 = $[115];
|
|
1301
|
+
}
|
|
1302
|
+
let t66;
|
|
1303
|
+
if ($[116] !== showModalProgress) {
|
|
1304
|
+
t66 = getModalStyles(showModalProgress);
|
|
1305
|
+
$[116] = showModalProgress;
|
|
1306
|
+
$[117] = t66;
|
|
1307
|
+
} else {
|
|
1308
|
+
t66 = $[117];
|
|
1309
|
+
}
|
|
1310
|
+
let t67;
|
|
1311
|
+
if ($[118] !== bindModalDrag) {
|
|
1312
|
+
t67 = bindModalDrag();
|
|
1313
|
+
$[118] = bindModalDrag;
|
|
1314
|
+
$[119] = t67;
|
|
1315
|
+
} else {
|
|
1316
|
+
t67 = $[119];
|
|
1317
|
+
}
|
|
1318
|
+
const t68 = signs$1[selectedSign];
|
|
1319
|
+
const t69 = !isPreview && !isPlaceholder && showModal;
|
|
1320
|
+
let t70;
|
|
1321
|
+
if ($[120] !== height || $[121] !== onCloseModal || $[122] !== signSubtitle || $[123] !== t68 || $[124] !== t69 || $[125] !== width) {
|
|
1322
|
+
t70 = /*#__PURE__*/jsx(SignModal, {
|
|
1323
|
+
width: width,
|
|
1324
|
+
height: height,
|
|
1325
|
+
sign: t68,
|
|
1326
|
+
subtitle: signSubtitle,
|
|
1327
|
+
focusable: t69,
|
|
1328
|
+
onClick: onCloseModal
|
|
1329
|
+
});
|
|
1330
|
+
$[120] = height;
|
|
1331
|
+
$[121] = onCloseModal;
|
|
1332
|
+
$[122] = signSubtitle;
|
|
1333
|
+
$[123] = t68;
|
|
1334
|
+
$[124] = t69;
|
|
1335
|
+
$[125] = width;
|
|
1336
|
+
$[126] = t70;
|
|
1337
|
+
} else {
|
|
1338
|
+
t70 = $[126];
|
|
1339
|
+
}
|
|
1340
|
+
let t71;
|
|
1341
|
+
if ($[127] !== t66 || $[128] !== t67 || $[129] !== t70) {
|
|
1342
|
+
t71 = /*#__PURE__*/jsx(animated.div, {
|
|
1343
|
+
className: styles.modal,
|
|
1344
|
+
style: t66,
|
|
1345
|
+
...t67,
|
|
1346
|
+
children: t70
|
|
1347
|
+
});
|
|
1348
|
+
$[127] = t66;
|
|
1349
|
+
$[128] = t67;
|
|
1350
|
+
$[129] = t70;
|
|
1351
|
+
$[130] = t71;
|
|
1352
|
+
} else {
|
|
1353
|
+
t71 = $[130];
|
|
1354
|
+
}
|
|
1355
|
+
let t72;
|
|
1356
|
+
if ($[131] !== isPlaceholder || $[132] !== popupBackgroundUrl || $[133] !== showSignsGridProgress) {
|
|
1357
|
+
t72 = !isPlaceholder ? /*#__PURE__*/jsx(animated.div, {
|
|
1358
|
+
className: styles.backdrop,
|
|
1359
|
+
style: getBackdropStyles(showSignsGridProgress),
|
|
1360
|
+
children: popupBackgroundUrl !== null ? /*#__PURE__*/jsx("video", {
|
|
1361
|
+
className: styles.videoBackdrop,
|
|
1362
|
+
autoPlay: true,
|
|
1363
|
+
muted: true,
|
|
1364
|
+
loop: true,
|
|
1365
|
+
playsInline: true,
|
|
1366
|
+
children: /*#__PURE__*/jsx("source", {
|
|
1367
|
+
src: popupBackgroundUrl,
|
|
1368
|
+
type: "video/mp4"
|
|
1369
|
+
})
|
|
1370
|
+
}) : null
|
|
1371
|
+
}) : null;
|
|
1372
|
+
$[131] = isPlaceholder;
|
|
1373
|
+
$[132] = popupBackgroundUrl;
|
|
1374
|
+
$[133] = showSignsGridProgress;
|
|
1375
|
+
$[134] = t72;
|
|
1376
|
+
} else {
|
|
1377
|
+
t72 = $[134];
|
|
1378
|
+
}
|
|
1379
|
+
let t73;
|
|
1380
|
+
if ($[135] !== t50 || $[136] !== t51 || $[137] !== t52 || $[138] !== t59 || $[139] !== t63 || $[140] !== t64 || $[141] !== t65 || $[142] !== t71 || $[143] !== t72) {
|
|
1381
|
+
t73 = /*#__PURE__*/jsxs(Layout, {
|
|
1382
|
+
className: styles.layout,
|
|
1383
|
+
style: t50,
|
|
1384
|
+
height: t51,
|
|
1385
|
+
children: [t52, t59, t63, t64, t65, t71, t72]
|
|
1386
|
+
});
|
|
1387
|
+
$[135] = t50;
|
|
1388
|
+
$[136] = t51;
|
|
1389
|
+
$[137] = t52;
|
|
1390
|
+
$[138] = t59;
|
|
1391
|
+
$[139] = t63;
|
|
1392
|
+
$[140] = t64;
|
|
1393
|
+
$[141] = t65;
|
|
1394
|
+
$[142] = t71;
|
|
1395
|
+
$[143] = t72;
|
|
1396
|
+
$[144] = t73;
|
|
1397
|
+
} else {
|
|
1398
|
+
t73 = $[144];
|
|
1399
|
+
}
|
|
1400
|
+
let t74;
|
|
1401
|
+
if ($[145] !== height || $[146] !== t73 || $[147] !== width) {
|
|
1402
|
+
t74 = /*#__PURE__*/jsx(Container, {
|
|
1403
|
+
width: width,
|
|
1404
|
+
height: height,
|
|
1405
|
+
className: styles.content,
|
|
1406
|
+
children: t73
|
|
1407
|
+
});
|
|
1408
|
+
$[145] = height;
|
|
1409
|
+
$[146] = t73;
|
|
1410
|
+
$[147] = width;
|
|
1411
|
+
$[148] = t74;
|
|
1412
|
+
} else {
|
|
1413
|
+
t74 = $[148];
|
|
1414
|
+
}
|
|
1415
|
+
let t75;
|
|
1416
|
+
if ($[149] !== background || $[150] !== backgroundPlaying || $[151] !== customMediaRef || $[152] !== height || $[153] !== isPlaceholder || $[154] !== mediaRef || $[155] !== mediaShouldLoad || $[156] !== muted || $[157] !== resolution || $[158] !== width) {
|
|
1417
|
+
t75 = !isPlaceholder ? /*#__PURE__*/jsx(Background, {
|
|
994
1418
|
background: background,
|
|
995
1419
|
width: width,
|
|
996
1420
|
height: height,
|
|
@@ -1000,9 +1424,104 @@ function UrbaniaHoroscope({
|
|
|
1000
1424
|
shouldLoad: mediaShouldLoad,
|
|
1001
1425
|
mediaRef: mergeRefs(mediaRef, customMediaRef),
|
|
1002
1426
|
className: styles.background
|
|
1003
|
-
}) : null
|
|
1427
|
+
}) : null;
|
|
1428
|
+
$[149] = background;
|
|
1429
|
+
$[150] = backgroundPlaying;
|
|
1430
|
+
$[151] = customMediaRef;
|
|
1431
|
+
$[152] = height;
|
|
1432
|
+
$[153] = isPlaceholder;
|
|
1433
|
+
$[154] = mediaRef;
|
|
1434
|
+
$[155] = mediaShouldLoad;
|
|
1435
|
+
$[156] = muted;
|
|
1436
|
+
$[157] = resolution;
|
|
1437
|
+
$[158] = width;
|
|
1438
|
+
$[159] = t75;
|
|
1439
|
+
} else {
|
|
1440
|
+
t75 = $[159];
|
|
1441
|
+
}
|
|
1442
|
+
let t76;
|
|
1443
|
+
if ($[160] !== t47 || $[161] !== t48 || $[162] !== t49 || $[163] !== t74 || $[164] !== t75) {
|
|
1444
|
+
t76 = /*#__PURE__*/jsxs("div", {
|
|
1445
|
+
className: t47,
|
|
1446
|
+
"data-screen-ready": true,
|
|
1447
|
+
...t48,
|
|
1448
|
+
children: [t49, t74, t75]
|
|
1449
|
+
});
|
|
1450
|
+
$[160] = t47;
|
|
1451
|
+
$[161] = t48;
|
|
1452
|
+
$[162] = t49;
|
|
1453
|
+
$[163] = t74;
|
|
1454
|
+
$[164] = t75;
|
|
1455
|
+
$[165] = t76;
|
|
1456
|
+
} else {
|
|
1457
|
+
t76 = $[165];
|
|
1458
|
+
}
|
|
1459
|
+
return t76;
|
|
1460
|
+
}
|
|
1461
|
+
function _temp13(p_7) {
|
|
1462
|
+
return p_7 < 0.25 ? "none" : "auto";
|
|
1463
|
+
}
|
|
1464
|
+
function _temp12() {
|
|
1465
|
+
return /*#__PURE__*/jsx("div", {
|
|
1466
|
+
className: styles.placeholderItem
|
|
1004
1467
|
});
|
|
1005
1468
|
}
|
|
1469
|
+
function _temp11(spring_4) {
|
|
1470
|
+
return {
|
|
1471
|
+
transform: spring_4.to(_temp1),
|
|
1472
|
+
pointerEvents: spring_4.to(_temp10)
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function _temp10(p_6) {
|
|
1476
|
+
return p_6 < 0.1 ? "none" : "auto";
|
|
1477
|
+
}
|
|
1478
|
+
function _temp1(p_5) {
|
|
1479
|
+
return `translateY(${100 * (1 - (p_5 < 0.2 ? 0.1 * p_5 + p_5 : p_5))}%)`;
|
|
1480
|
+
}
|
|
1481
|
+
function _temp0(spring_3) {
|
|
1482
|
+
return {
|
|
1483
|
+
opacity: spring_3
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
function _temp9(spring_2) {
|
|
1487
|
+
return {
|
|
1488
|
+
transform: spring_2.to(_temp8),
|
|
1489
|
+
opacity: spring_2
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
function _temp8(p_4) {
|
|
1493
|
+
return `translateY(${2 * (1 - p_4)}rem)`;
|
|
1494
|
+
}
|
|
1495
|
+
function _temp7(spring_1) {
|
|
1496
|
+
return {
|
|
1497
|
+
opacity: spring_1,
|
|
1498
|
+
transform: spring_1.to(_temp6)
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
function _temp6(p_3) {
|
|
1502
|
+
return `translateY(${3 * (1 - p_3) ** 5}rem) scale(${1 - 0.25 * (1 - p_3)})`;
|
|
1503
|
+
}
|
|
1504
|
+
function _temp5(spring_0) {
|
|
1505
|
+
return {
|
|
1506
|
+
opacity: spring_0,
|
|
1507
|
+
pointerEvents: spring_0.to(_temp4)
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
function _temp4(p_2) {
|
|
1511
|
+
return p_2 < 0.25 ? "none" : "auto";
|
|
1512
|
+
}
|
|
1513
|
+
function _temp3(spring) {
|
|
1514
|
+
return {
|
|
1515
|
+
transform: spring.to(_temp),
|
|
1516
|
+
opacity: spring.to(_temp2)
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
function _temp2(p_1) {
|
|
1520
|
+
return p_1 > 0.25 ? 1 - p_1 : 1;
|
|
1521
|
+
}
|
|
1522
|
+
function _temp(p_0) {
|
|
1523
|
+
return `translateY(${ -100 * p_0 * (1 - p_0)}%)`;
|
|
1524
|
+
}
|
|
1006
1525
|
|
|
1007
1526
|
var definition = [{
|
|
1008
1527
|
id: 'urbania-horoscope',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-horoscope",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.87",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -90,6 +90,6 @@
|
|
|
90
90
|
"access": "public",
|
|
91
91
|
"registry": "https://registry.npmjs.org/"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "2d1f40fa6f172c05d88ae59d4d356140f849edc4",
|
|
94
94
|
"types": "es/index.d.ts"
|
|
95
95
|
}
|