@customviews-js/customviews 1.1.8 → 1.1.9
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/README.md +362 -362
- package/dist/custom-views.core.cjs.js +1556 -1309
- package/dist/custom-views.core.cjs.js.map +1 -1
- package/dist/custom-views.core.esm.js +1556 -1309
- package/dist/custom-views.core.esm.js.map +1 -1
- package/dist/custom-views.esm.js +1556 -1309
- package/dist/custom-views.esm.js.map +1 -1
- package/dist/custom-views.js +1556 -1309
- package/dist/custom-views.js.map +1 -1
- package/dist/custom-views.min.js +1 -1
- package/dist/custom-views.min.js.map +1 -1
- package/dist/types/core/core.d.ts +8 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/persistence.d.ts +8 -0
- package/dist/types/core/persistence.d.ts.map +1 -1
- package/dist/types/core/widget.d.ts.map +1 -1
- package/dist/types/styles/widget-styles.d.ts +1 -1
- package/dist/types/styles/widget-styles.d.ts.map +1 -1
- package/dist/types/utils/icons.d.ts +9 -2
- package/dist/types/utils/icons.d.ts.map +1 -1
- package/package.json +62 -62
package/dist/custom-views.esm.js
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
class PersistenceManager {
|
|
10
10
|
// Storage keys for localStorage
|
|
11
11
|
static STORAGE_KEYS = {
|
|
12
|
-
STATE: 'customviews-state'
|
|
12
|
+
STATE: 'customviews-state',
|
|
13
|
+
TAB_NAV_VISIBILITY: 'cv-tab-navs-visible'
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* Check if localStorage is available in the current environment
|
|
@@ -46,6 +47,35 @@ class PersistenceManager {
|
|
|
46
47
|
if (!this.isStorageAvailable())
|
|
47
48
|
return;
|
|
48
49
|
localStorage.removeItem(PersistenceManager.STORAGE_KEYS.STATE);
|
|
50
|
+
localStorage.removeItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Persist tab nav visibility preference
|
|
54
|
+
*/
|
|
55
|
+
persistTabNavVisibility(visible) {
|
|
56
|
+
if (!this.isStorageAvailable())
|
|
57
|
+
return;
|
|
58
|
+
try {
|
|
59
|
+
localStorage.setItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY, visible ? 'true' : 'false');
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
console.warn('Failed to persist tab nav visibility:', error);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get persisted tab nav visibility preference
|
|
67
|
+
*/
|
|
68
|
+
getPersistedTabNavVisibility() {
|
|
69
|
+
if (!this.isStorageAvailable())
|
|
70
|
+
return null;
|
|
71
|
+
try {
|
|
72
|
+
const raw = localStorage.getItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY);
|
|
73
|
+
return raw === null ? null : raw === 'true';
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
console.warn('Failed to get persisted tab nav visibility:', error);
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
49
79
|
}
|
|
50
80
|
/**
|
|
51
81
|
* Check if any persistence data exists
|
|
@@ -820,188 +850,188 @@ class ToggleManager {
|
|
|
820
850
|
/**
|
|
821
851
|
* Styles for toggle visibility and animations
|
|
822
852
|
*/
|
|
823
|
-
const TOGGLE_STYLES = `
|
|
824
|
-
/* Core toggle visibility transitions */
|
|
825
|
-
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
826
|
-
transition: opacity 150ms ease,
|
|
827
|
-
transform 150ms ease,
|
|
828
|
-
max-height 200ms ease,
|
|
829
|
-
margin 150ms ease;
|
|
830
|
-
will-change: opacity, transform, max-height, margin;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.cv-visible {
|
|
834
|
-
opacity: 1 !important;
|
|
835
|
-
transform: translateY(0) !important;
|
|
836
|
-
max-height: var(--cv-max-height, 9999px) !important;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
.cv-hidden {
|
|
840
|
-
opacity: 0 !important;
|
|
841
|
-
transform: translateY(-4px) !important;
|
|
842
|
-
pointer-events: none !important;
|
|
843
|
-
padding-top: 0 !important;
|
|
844
|
-
padding-bottom: 0 !important;
|
|
845
|
-
border-top-width: 0 !important;
|
|
846
|
-
border-bottom-width: 0 !important;
|
|
847
|
-
max-height: 0 !important;
|
|
848
|
-
margin-top: 0 !important;
|
|
849
|
-
margin-bottom: 0 !important;
|
|
850
|
-
overflow: hidden !important;
|
|
851
|
-
}
|
|
853
|
+
const TOGGLE_STYLES = `
|
|
854
|
+
/* Core toggle visibility transitions */
|
|
855
|
+
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
856
|
+
transition: opacity 150ms ease,
|
|
857
|
+
transform 150ms ease,
|
|
858
|
+
max-height 200ms ease,
|
|
859
|
+
margin 150ms ease;
|
|
860
|
+
will-change: opacity, transform, max-height, margin;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.cv-visible {
|
|
864
|
+
opacity: 1 !important;
|
|
865
|
+
transform: translateY(0) !important;
|
|
866
|
+
max-height: var(--cv-max-height, 9999px) !important;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.cv-hidden {
|
|
870
|
+
opacity: 0 !important;
|
|
871
|
+
transform: translateY(-4px) !important;
|
|
872
|
+
pointer-events: none !important;
|
|
873
|
+
padding-top: 0 !important;
|
|
874
|
+
padding-bottom: 0 !important;
|
|
875
|
+
border-top-width: 0 !important;
|
|
876
|
+
border-bottom-width: 0 !important;
|
|
877
|
+
max-height: 0 !important;
|
|
878
|
+
margin-top: 0 !important;
|
|
879
|
+
margin-bottom: 0 !important;
|
|
880
|
+
overflow: hidden !important;
|
|
881
|
+
}
|
|
852
882
|
`;
|
|
853
883
|
|
|
854
884
|
/**
|
|
855
885
|
* Styles for tab groups and tab navigation
|
|
856
886
|
*/
|
|
857
|
-
const TAB_STYLES = `
|
|
858
|
-
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
859
|
-
.cv-tabs-nav {
|
|
860
|
-
display: flex;
|
|
861
|
-
flex-wrap: wrap;
|
|
862
|
-
padding-left: 0;
|
|
863
|
-
margin-top: 0.5rem;
|
|
864
|
-
margin-bottom: 1rem;
|
|
865
|
-
list-style: none;
|
|
866
|
-
border-bottom: 1px solid #dee2e6;
|
|
867
|
-
|
|
868
|
-
align-items: stretch;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.cv-tabs-nav .nav-item {
|
|
872
|
-
margin-bottom: -1px;
|
|
873
|
-
list-style: none;
|
|
874
|
-
display: flex; /* was inline-block → make flex to stretch height */
|
|
875
|
-
align-items: stretch; /* stretch link to full height */
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
.cv-tabs-nav .nav-link {
|
|
879
|
-
display: flex;
|
|
880
|
-
align-items: center;
|
|
881
|
-
justify-content: center;
|
|
882
|
-
padding: 0.5rem 1rem;
|
|
883
|
-
color: #495057;
|
|
884
|
-
text-decoration: none;
|
|
885
|
-
background-color: transparent;
|
|
886
|
-
border: 1px solid transparent;
|
|
887
|
-
border-top-left-radius: 0.25rem;
|
|
888
|
-
border-top-right-radius: 0.25rem;
|
|
889
|
-
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
890
|
-
cursor: pointer;
|
|
891
|
-
min-height: 2.5rem;
|
|
892
|
-
box-sizing: border-box;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.cv-tabs-nav .nav-link p {
|
|
896
|
-
margin: 0; /* remove default margins */
|
|
897
|
-
display: inline; /* or inline-block */
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
.cv-tabs-nav .nav-link:hover,
|
|
901
|
-
.cv-tabs-nav .nav-link:focus {
|
|
902
|
-
border-color: #e9ecef #e9ecef #dee2e6;
|
|
903
|
-
isolation: isolate;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.cv-tabs-nav .nav-link.active {
|
|
907
|
-
color: #495057;
|
|
908
|
-
background-color: #fff;
|
|
909
|
-
border-color: #dee2e6 #dee2e6 #fff;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
.cv-tabs-nav .nav-link:focus {
|
|
913
|
-
outline: 0;
|
|
914
|
-
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
918
|
-
.cv-tabs-nav-item {
|
|
919
|
-
background: none;
|
|
920
|
-
border: none;
|
|
921
|
-
border-bottom: 2px solid transparent;
|
|
922
|
-
padding: 0.5rem 1rem;
|
|
923
|
-
cursor: pointer;
|
|
924
|
-
font-size: 1rem;
|
|
925
|
-
color: #6c757d;
|
|
926
|
-
transition: color 150ms ease, border-color 150ms ease;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.cv-tabs-nav-item:hover {
|
|
930
|
-
color: #495057;
|
|
931
|
-
border-bottom-color: #dee2e6;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.cv-tabs-nav-item.active {
|
|
935
|
-
color: #007bff;
|
|
936
|
-
border-bottom-color: #007bff;
|
|
937
|
-
font-weight: 500;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.cv-tabs-nav-item:focus {
|
|
941
|
-
outline: 2px solid #007bff;
|
|
942
|
-
outline-offset: 2px;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/* Tab panel base styles */
|
|
946
|
-
cv-tab {
|
|
947
|
-
display: block;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
/* Hide cv-tab-header source element; content is extracted to nav link */
|
|
951
|
-
cv-tab-header {
|
|
952
|
-
display: none !important;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
/* Allow cv-tab-body to flow naturally */
|
|
956
|
-
cv-tab-body {
|
|
957
|
-
display: block;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
/* Override visibility for tab panels - use display instead of collapse animation */
|
|
961
|
-
cv-tab.cv-hidden {
|
|
962
|
-
display: none !important;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
cv-tab.cv-visible {
|
|
966
|
-
display: block !important;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
cv-tabgroup {
|
|
970
|
-
display: block;
|
|
971
|
-
margin-bottom: 1.5rem;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
/* Bottom border line for tab groups */
|
|
975
|
-
.cv-tabgroup-bottom-border {
|
|
976
|
-
border-bottom: 1px solid #dee2e6;
|
|
977
|
-
margin-top: 1rem;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/* Tab content wrapper */
|
|
981
|
-
.cv-tab-content {
|
|
982
|
-
padding: 1rem 0;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
/* Viewer-controlled nav visibility: hide nav containers when requested */
|
|
986
|
-
.cv-tabs-nav-hidden {
|
|
987
|
-
display: none !important;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
/* Print-friendly: hide tab navigation when printing to reduce clutter */
|
|
991
|
-
@media print {
|
|
992
|
-
.cv-tabs-nav {
|
|
993
|
-
display: none !important;
|
|
994
|
-
}
|
|
995
|
-
}
|
|
887
|
+
const TAB_STYLES = `
|
|
888
|
+
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
889
|
+
.cv-tabs-nav {
|
|
890
|
+
display: flex;
|
|
891
|
+
flex-wrap: wrap;
|
|
892
|
+
padding-left: 0;
|
|
893
|
+
margin-top: 0.5rem;
|
|
894
|
+
margin-bottom: 1rem;
|
|
895
|
+
list-style: none;
|
|
896
|
+
border-bottom: 1px solid #dee2e6;
|
|
897
|
+
|
|
898
|
+
align-items: stretch;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.cv-tabs-nav .nav-item {
|
|
902
|
+
margin-bottom: -1px;
|
|
903
|
+
list-style: none;
|
|
904
|
+
display: flex; /* was inline-block → make flex to stretch height */
|
|
905
|
+
align-items: stretch; /* stretch link to full height */
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.cv-tabs-nav .nav-link {
|
|
909
|
+
display: flex;
|
|
910
|
+
align-items: center;
|
|
911
|
+
justify-content: center;
|
|
912
|
+
padding: 0.5rem 1rem;
|
|
913
|
+
color: #495057;
|
|
914
|
+
text-decoration: none;
|
|
915
|
+
background-color: transparent;
|
|
916
|
+
border: 1px solid transparent;
|
|
917
|
+
border-top-left-radius: 0.25rem;
|
|
918
|
+
border-top-right-radius: 0.25rem;
|
|
919
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
920
|
+
cursor: pointer;
|
|
921
|
+
min-height: 2.5rem;
|
|
922
|
+
box-sizing: border-box;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.cv-tabs-nav .nav-link p {
|
|
926
|
+
margin: 0; /* remove default margins */
|
|
927
|
+
display: inline; /* or inline-block */
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.cv-tabs-nav .nav-link:hover,
|
|
931
|
+
.cv-tabs-nav .nav-link:focus {
|
|
932
|
+
border-color: #e9ecef #e9ecef #dee2e6;
|
|
933
|
+
isolation: isolate;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.cv-tabs-nav .nav-link.active {
|
|
937
|
+
color: #495057;
|
|
938
|
+
background-color: #fff;
|
|
939
|
+
border-color: #dee2e6 #dee2e6 #fff;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.cv-tabs-nav .nav-link:focus {
|
|
943
|
+
outline: 0;
|
|
944
|
+
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
948
|
+
.cv-tabs-nav-item {
|
|
949
|
+
background: none;
|
|
950
|
+
border: none;
|
|
951
|
+
border-bottom: 2px solid transparent;
|
|
952
|
+
padding: 0.5rem 1rem;
|
|
953
|
+
cursor: pointer;
|
|
954
|
+
font-size: 1rem;
|
|
955
|
+
color: #6c757d;
|
|
956
|
+
transition: color 150ms ease, border-color 150ms ease;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.cv-tabs-nav-item:hover {
|
|
960
|
+
color: #495057;
|
|
961
|
+
border-bottom-color: #dee2e6;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.cv-tabs-nav-item.active {
|
|
965
|
+
color: #007bff;
|
|
966
|
+
border-bottom-color: #007bff;
|
|
967
|
+
font-weight: 500;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.cv-tabs-nav-item:focus {
|
|
971
|
+
outline: 2px solid #007bff;
|
|
972
|
+
outline-offset: 2px;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* Tab panel base styles */
|
|
976
|
+
cv-tab {
|
|
977
|
+
display: block;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* Hide cv-tab-header source element; content is extracted to nav link */
|
|
981
|
+
cv-tab-header {
|
|
982
|
+
display: none !important;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/* Allow cv-tab-body to flow naturally */
|
|
986
|
+
cv-tab-body {
|
|
987
|
+
display: block;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* Override visibility for tab panels - use display instead of collapse animation */
|
|
991
|
+
cv-tab.cv-hidden {
|
|
992
|
+
display: none !important;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
cv-tab.cv-visible {
|
|
996
|
+
display: block !important;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
cv-tabgroup {
|
|
1000
|
+
display: block;
|
|
1001
|
+
margin-bottom: 1.5rem;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/* Bottom border line for tab groups */
|
|
1005
|
+
.cv-tabgroup-bottom-border {
|
|
1006
|
+
border-bottom: 1px solid #dee2e6;
|
|
1007
|
+
margin-top: 1rem;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/* Tab content wrapper */
|
|
1011
|
+
.cv-tab-content {
|
|
1012
|
+
padding: 1rem 0;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/* Viewer-controlled nav visibility: hide nav containers when requested */
|
|
1016
|
+
.cv-tabs-nav-hidden {
|
|
1017
|
+
display: none !important;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/* Print-friendly: hide tab navigation when printing to reduce clutter */
|
|
1021
|
+
@media print {
|
|
1022
|
+
.cv-tabs-nav {
|
|
1023
|
+
display: none !important;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
996
1026
|
`;
|
|
997
1027
|
|
|
998
1028
|
/**
|
|
999
1029
|
* Combined core styles for toggles and tabs
|
|
1000
1030
|
*/
|
|
1001
|
-
const CORE_STYLES = `
|
|
1002
|
-
${TOGGLE_STYLES}
|
|
1003
|
-
|
|
1004
|
-
${TAB_STYLES}
|
|
1031
|
+
const CORE_STYLES = `
|
|
1032
|
+
${TOGGLE_STYLES}
|
|
1033
|
+
|
|
1034
|
+
${TAB_STYLES}
|
|
1005
1035
|
`;
|
|
1006
1036
|
/**
|
|
1007
1037
|
* Add styles for hiding and showing toggles animations and transitions to the document head
|
|
@@ -1097,14 +1127,10 @@ class CustomViewsCore {
|
|
|
1097
1127
|
this.applyState(newState);
|
|
1098
1128
|
});
|
|
1099
1129
|
// Apply stored nav visibility preference on page load
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
const visible = navPref === 'true';
|
|
1104
|
-
TabManager.setNavsVisibility(this.rootEl, visible);
|
|
1105
|
-
}
|
|
1130
|
+
const navPref = this.persistenceManager.getPersistedTabNavVisibility();
|
|
1131
|
+
if (navPref !== null) {
|
|
1132
|
+
TabManager.setNavsVisibility(this.rootEl, navPref);
|
|
1106
1133
|
}
|
|
1107
|
-
catch (e) { /* ignore */ }
|
|
1108
1134
|
// For session history, clicks on back/forward button
|
|
1109
1135
|
window.addEventListener("popstate", () => {
|
|
1110
1136
|
this.loadAndCallApplyState();
|
|
@@ -1171,6 +1197,8 @@ class CustomViewsCore {
|
|
|
1171
1197
|
else {
|
|
1172
1198
|
console.warn("No configuration loaded, cannot reset to default state");
|
|
1173
1199
|
}
|
|
1200
|
+
// Reset tab nav visibility to default (visible)
|
|
1201
|
+
TabManager.setNavsVisibility(this.rootEl, true);
|
|
1174
1202
|
// Clear URL
|
|
1175
1203
|
URLStateManager.clearURL();
|
|
1176
1204
|
}
|
|
@@ -1249,6 +1277,18 @@ class CustomViewsCore {
|
|
|
1249
1277
|
}
|
|
1250
1278
|
});
|
|
1251
1279
|
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Persist tab nav visibility preference
|
|
1282
|
+
*/
|
|
1283
|
+
persistTabNavVisibility(visible) {
|
|
1284
|
+
this.persistenceManager.persistTabNavVisibility(visible);
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Get persisted tab nav visibility preference
|
|
1288
|
+
*/
|
|
1289
|
+
getPersistedTabNavVisibility() {
|
|
1290
|
+
return this.persistenceManager.getPersistedTabNavVisibility();
|
|
1291
|
+
}
|
|
1252
1292
|
cloneState(state) {
|
|
1253
1293
|
if (!state)
|
|
1254
1294
|
return {};
|
|
@@ -1419,993 +1459,1077 @@ class CustomViews {
|
|
|
1419
1459
|
* Note: Styles are kept as a TypeScript string for compatibility with the build system.
|
|
1420
1460
|
* This approach ensures the styles are properly bundled and don't require separate CSS file handling.
|
|
1421
1461
|
*/
|
|
1422
|
-
const WIDGET_STYLES = `
|
|
1423
|
-
/* Rounded rectangle widget icon styles */
|
|
1424
|
-
.cv-widget-icon {
|
|
1425
|
-
position: fixed;
|
|
1426
|
-
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1427
|
-
background: rgba(255, 255, 255, 0.92);
|
|
1428
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1429
|
-
opacity: 0.6;
|
|
1430
|
-
display: flex;
|
|
1431
|
-
align-items: center;
|
|
1432
|
-
justify-content: center;
|
|
1433
|
-
font-size: 18px;
|
|
1434
|
-
font-weight: bold;
|
|
1435
|
-
cursor: pointer;
|
|
1436
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1437
|
-
z-index: 9998;
|
|
1438
|
-
transition: all 0.3s ease;
|
|
1439
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
.cv-widget-icon:hover {
|
|
1443
|
-
/* Become fully opaque on hover to improve readability */
|
|
1444
|
-
background: rgba(255, 255, 255, 1);
|
|
1445
|
-
color: rgba(0, 0, 0, 1);
|
|
1446
|
-
opacity: 1;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1450
|
-
.cv-widget-top-right {
|
|
1451
|
-
top: 20px;
|
|
1452
|
-
right: 0;
|
|
1453
|
-
border-radius: 18px 0 0 18px;
|
|
1454
|
-
padding-left: 8px;
|
|
1455
|
-
justify-content: flex-start;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1459
|
-
.cv-widget-top-left {
|
|
1460
|
-
top: 20px;
|
|
1461
|
-
left: 0;
|
|
1462
|
-
border-radius: 0 18px 18px 0;
|
|
1463
|
-
padding-right: 8px;
|
|
1464
|
-
justify-content: flex-end;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1468
|
-
.cv-widget-bottom-right {
|
|
1469
|
-
bottom: 20px;
|
|
1470
|
-
right: 0;
|
|
1471
|
-
border-radius: 18px 0 0 18px;
|
|
1472
|
-
padding-left: 8px;
|
|
1473
|
-
justify-content: flex-start;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1477
|
-
.cv-widget-bottom-left {
|
|
1478
|
-
bottom: 20px;
|
|
1479
|
-
left: 0;
|
|
1480
|
-
border-radius: 0 18px 18px 0;
|
|
1481
|
-
padding-right: 8px;
|
|
1482
|
-
justify-content: flex-end;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1486
|
-
.cv-widget-middle-left {
|
|
1487
|
-
top: 50%;
|
|
1488
|
-
left: 0;
|
|
1489
|
-
transform: translateY(-50%);
|
|
1490
|
-
border-radius: 0 18px 18px 0;
|
|
1491
|
-
padding-right: 8px;
|
|
1492
|
-
justify-content: flex-end;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1496
|
-
.cv-widget-middle-right {
|
|
1497
|
-
top: 50%;
|
|
1498
|
-
right: 0;
|
|
1499
|
-
transform: translateY(-50%);
|
|
1500
|
-
border-radius: 18px 0 0 18px;
|
|
1501
|
-
padding-left: 8px;
|
|
1502
|
-
justify-content: flex-start;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
.cv-widget-top-right,
|
|
1506
|
-
.cv-widget-middle-right,
|
|
1507
|
-
.cv-widget-bottom-right,
|
|
1508
|
-
.cv-widget-top-left,
|
|
1509
|
-
.cv-widget-middle-left,
|
|
1510
|
-
.cv-widget-bottom-left {
|
|
1511
|
-
height: 36px;
|
|
1512
|
-
width: 36px;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
.cv-widget-middle-right:hover,
|
|
1516
|
-
.cv-widget-top-right:hover,
|
|
1517
|
-
.cv-widget-bottom-right:hover,
|
|
1518
|
-
.cv-widget-top-left:hover,
|
|
1519
|
-
.cv-widget-middle-left:hover,
|
|
1520
|
-
.cv-widget-bottom-left:hover {
|
|
1521
|
-
width: 55px;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
/* Modal content styles */
|
|
1525
|
-
.cv-widget-section {
|
|
1526
|
-
margin-bottom: 16px;
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
.cv-widget-section:last-child {
|
|
1530
|
-
margin-bottom: 0;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
.cv-widget-section label {
|
|
1534
|
-
display: block;
|
|
1535
|
-
margin-bottom: 4px;
|
|
1536
|
-
font-weight: 500;
|
|
1537
|
-
color: #555;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
.cv-widget-profile-select,
|
|
1541
|
-
.cv-widget-state-select {
|
|
1542
|
-
width: 100%;
|
|
1543
|
-
padding: 8px 12px;
|
|
1544
|
-
border: 1px solid #ddd;
|
|
1545
|
-
border-radius: 4px;
|
|
1546
|
-
background: white;
|
|
1547
|
-
font-size: 14px;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
.cv-widget-profile-select:focus,
|
|
1551
|
-
.cv-widget-state-select:focus {
|
|
1552
|
-
outline: none;
|
|
1553
|
-
border-color: #007bff;
|
|
1554
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
.cv-widget-profile-select:disabled,
|
|
1558
|
-
.cv-widget-state-select:disabled {
|
|
1559
|
-
background: #f8f9fa;
|
|
1560
|
-
color: #6c757d;
|
|
1561
|
-
cursor: not-allowed;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
.cv-widget-current {
|
|
1565
|
-
margin: 16px 0;
|
|
1566
|
-
padding: 12px;
|
|
1567
|
-
background: #f8f9fa;
|
|
1568
|
-
border-radius: 4px;
|
|
1569
|
-
border-left: 4px solid #007bff;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
.cv-widget-current label {
|
|
1573
|
-
font-size: 12px;
|
|
1574
|
-
text-transform: uppercase;
|
|
1575
|
-
letter-spacing: 0.5px;
|
|
1576
|
-
color: #666;
|
|
1577
|
-
margin-bottom: 4px;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
.cv-widget-current-view {
|
|
1581
|
-
font-weight: 500;
|
|
1582
|
-
color: #333;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
.cv-widget-reset {
|
|
1586
|
-
width: 100%;
|
|
1587
|
-
padding: 8px 16px;
|
|
1588
|
-
background: #dc3545;
|
|
1589
|
-
color: white;
|
|
1590
|
-
border: none;
|
|
1591
|
-
border-radius: 4px;
|
|
1592
|
-
cursor: pointer;
|
|
1593
|
-
font-size: 14px;
|
|
1594
|
-
font-weight: 500;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
.cv-widget-reset:hover {
|
|
1598
|
-
background: #c82333;
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
.cv-widget-reset:active {
|
|
1602
|
-
background: #bd2130;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
/* Responsive design for mobile */
|
|
1606
|
-
@media (max-width: 768px) {
|
|
1607
|
-
.cv-widget-top-right,
|
|
1608
|
-
.cv-widget-top-left {
|
|
1609
|
-
top: 10px;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
.cv-widget-bottom-right,
|
|
1613
|
-
.cv-widget-bottom-left {
|
|
1614
|
-
bottom: 10px;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
/* All widgets stay flush with screen edges */
|
|
1618
|
-
.cv-widget-top-right,
|
|
1619
|
-
.cv-widget-bottom-right,
|
|
1620
|
-
.cv-widget-middle-right {
|
|
1621
|
-
right: 0;
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
.cv-widget-top-left,
|
|
1625
|
-
.cv-widget-bottom-left,
|
|
1626
|
-
.cv-widget-middle-left {
|
|
1627
|
-
left: 0;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
/* Slightly smaller on mobile */
|
|
1631
|
-
.cv-widget-icon {
|
|
1632
|
-
width: 60px;
|
|
1633
|
-
height: 32px;
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
.cv-widget-icon:hover {
|
|
1637
|
-
width: 75px;
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
/* Modal styles */
|
|
1642
|
-
.cv-widget-modal-overlay {
|
|
1643
|
-
position: fixed;
|
|
1644
|
-
top: 0;
|
|
1645
|
-
left: 0;
|
|
1646
|
-
right: 0;
|
|
1647
|
-
bottom: 0;
|
|
1648
|
-
background: rgba(0, 0, 0, 0.5);
|
|
1649
|
-
display: flex;
|
|
1650
|
-
align-items: center;
|
|
1651
|
-
justify-content: center;
|
|
1652
|
-
z-index: 10002;
|
|
1653
|
-
animation: fadeIn 0.2s ease;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
@keyframes fadeIn {
|
|
1657
|
-
from { opacity: 0; }
|
|
1658
|
-
to { opacity: 1; }
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
.cv-widget-modal {
|
|
1662
|
-
background: white;
|
|
1663
|
-
border-radius: 0.75rem;
|
|
1664
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1665
|
-
max-width: 32rem;
|
|
1666
|
-
width: 90vw;
|
|
1667
|
-
max-height: 80vh;
|
|
1668
|
-
animation: slideIn 0.2s ease;
|
|
1669
|
-
display: flex;
|
|
1670
|
-
flex-direction: column;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
@keyframes slideIn {
|
|
1674
|
-
from {
|
|
1675
|
-
opacity: 0;
|
|
1676
|
-
transform: scale(0.9) translateY(-20px);
|
|
1677
|
-
}
|
|
1678
|
-
to {
|
|
1679
|
-
opacity: 1;
|
|
1680
|
-
transform: scale(1) translateY(0);
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
.cv-modal-header {
|
|
1685
|
-
display: flex;
|
|
1686
|
-
align-items: center;
|
|
1687
|
-
justify-content: space-between;
|
|
1688
|
-
padding: 0.5rem 1rem;
|
|
1689
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
.cv-modal-header-content {
|
|
1693
|
-
display: flex;
|
|
1694
|
-
align-items: center;
|
|
1695
|
-
gap: 0.75rem;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
.cv-modal-icon {
|
|
1699
|
-
position: relative;
|
|
1700
|
-
width: 1rem;
|
|
1701
|
-
height: 1rem;
|
|
1702
|
-
display: flex;
|
|
1703
|
-
align-items: center;
|
|
1704
|
-
justify-content: center;
|
|
1705
|
-
border-radius: 9999px;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
.cv-modal-icon-svg {
|
|
1709
|
-
width: 100%;
|
|
1710
|
-
height: 100%;
|
|
1711
|
-
opacity: 1;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
.cv-modal-title {
|
|
1715
|
-
font-size: 1.125rem;
|
|
1716
|
-
font-weight: bold;
|
|
1717
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1718
|
-
margin: 0;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
.cv-modal-close {
|
|
1722
|
-
width: 2rem;
|
|
1723
|
-
height: 2rem;
|
|
1724
|
-
display: flex;
|
|
1725
|
-
align-items: center;
|
|
1726
|
-
justify-content: center;
|
|
1727
|
-
border-radius: 9999px;
|
|
1728
|
-
background: transparent;
|
|
1729
|
-
border: none;
|
|
1730
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1731
|
-
cursor: pointer;
|
|
1732
|
-
transition: all 0.2s ease;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
.cv-modal-close:hover {
|
|
1736
|
-
background: rgba(62, 132, 244, 0.1);
|
|
1737
|
-
color: #3e84f4;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
.cv-modal-close-icon {
|
|
1741
|
-
width: 1.25rem;
|
|
1742
|
-
height: 1.25rem;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
.cv-modal-main {
|
|
1746
|
-
padding: 1rem;
|
|
1747
|
-
flex: 1;
|
|
1748
|
-
display: flex;
|
|
1749
|
-
flex-direction: column;
|
|
1750
|
-
gap: 1rem;
|
|
1751
|
-
overflow-y: auto;
|
|
1752
|
-
max-height: calc(80vh - 8rem);
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
.cv-modal-description {
|
|
1756
|
-
font-size: 0.875rem;
|
|
1757
|
-
color: rgba(0, 0, 0, 0.8);
|
|
1758
|
-
margin: 0;
|
|
1759
|
-
line-height: 1.4;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
.cv-content-section,
|
|
1763
|
-
.cv-tab-groups-section {
|
|
1764
|
-
display: flex;
|
|
1765
|
-
flex-direction: column;
|
|
1766
|
-
gap: 0.75rem;
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
.cv-section-heading {
|
|
1770
|
-
font-size: 1rem;
|
|
1771
|
-
font-weight: bold;
|
|
1772
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1773
|
-
margin: 0;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
.cv-widget-modal-actions {
|
|
1777
|
-
margin-top: 20px;
|
|
1778
|
-
padding-top: 16px;
|
|
1779
|
-
border-top: 1px solid #e9ecef;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
.cv-widget-restore {
|
|
1783
|
-
width: 100%;
|
|
1784
|
-
padding: 10px 16px;
|
|
1785
|
-
background: #28a745;
|
|
1786
|
-
color: white;
|
|
1787
|
-
border: none;
|
|
1788
|
-
border-radius: 4px;
|
|
1789
|
-
cursor: pointer;
|
|
1790
|
-
font-size: 14px;
|
|
1791
|
-
font-weight: 500;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
.cv-widget-restore:hover {
|
|
1795
|
-
background: #218838;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
.cv-widget-create-state {
|
|
1799
|
-
width: 100%;
|
|
1800
|
-
padding: 10px 16px;
|
|
1801
|
-
background: #007bff;
|
|
1802
|
-
color: white;
|
|
1803
|
-
border: none;
|
|
1804
|
-
border-radius: 4px;
|
|
1805
|
-
cursor: pointer;
|
|
1806
|
-
font-size: 14px;
|
|
1807
|
-
font-weight: 500;
|
|
1808
|
-
margin-bottom: 10px;
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
.cv-widget-create-state:hover {
|
|
1812
|
-
background: #0056b3;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
.cv-widget-theme-dark .cv-widget-modal {
|
|
1816
|
-
background: #101722;
|
|
1817
|
-
color: #e2e8f0;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
.cv-widget-theme-dark .cv-modal-header {
|
|
1821
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
.cv-widget-theme-dark .cv-modal-title {
|
|
1825
|
-
color: #e2e8f0;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
.cv-widget-theme-dark .cv-modal-close {
|
|
1829
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1833
|
-
background: rgba(62, 132, 244, 0.2);
|
|
1834
|
-
color: #3e84f4;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
.cv-widget-theme-dark .cv-modal-description {
|
|
1838
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
.cv-widget-theme-dark .cv-section-heading {
|
|
1842
|
-
color: #e2e8f0;
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
.cv-widget-theme-dark .cv-toggles-container
|
|
1846
|
-
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1847
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
.cv-widget-theme-dark .cv-toggle-card,
|
|
1851
|
-
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1852
|
-
background: #101722;
|
|
1853
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
.cv-widget-theme-dark .cv-toggle-title,
|
|
1857
|
-
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1858
|
-
color: #e2e8f0;
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
.cv-widget-theme-dark .cv-toggle-description,
|
|
1862
|
-
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1863
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1867
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1871
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1875
|
-
background: #101722;
|
|
1876
|
-
border-color: rgba(255, 255, 255, 0.2);
|
|
1877
|
-
color: #e2e8f0;
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
.cv-widget-theme-dark .cv-modal-footer {
|
|
1881
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1882
|
-
background: #101722;
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
.cv-widget-theme-dark .cv-reset-btn {
|
|
1886
|
-
color: #e2e8f0;
|
|
1887
|
-
background: rgba(255, 255, 255, 0.1);
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1891
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
/* Custom state creator styles */
|
|
1895
|
-
.cv-custom-state-modal {
|
|
1896
|
-
max-width: 500px;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
.cv-custom-state-form .cv-section-header {
|
|
1900
|
-
font-size: 16px;
|
|
1901
|
-
font-weight: 600;
|
|
1902
|
-
color: #333;
|
|
1903
|
-
border-bottom: 1px solid #e9ecef;
|
|
1904
|
-
padding-bottom: 5px;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
.cv-custom-state-form p {
|
|
1908
|
-
font-size: 15px;
|
|
1909
|
-
line-height: 1.6;
|
|
1910
|
-
color: #555;
|
|
1911
|
-
margin-bottom: 24px;
|
|
1912
|
-
text-align: justify;
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
.cv-custom-state-section {
|
|
1916
|
-
margin-bottom: 16px;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
.cv-custom-state-section label {
|
|
1920
|
-
display: block;
|
|
1921
|
-
margin-bottom: 4px;
|
|
1922
|
-
font-weight: 500;
|
|
1923
|
-
color: #555;
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
.cv-custom-state-input {
|
|
1927
|
-
width: 100%;
|
|
1928
|
-
padding: 8px 12px;
|
|
1929
|
-
border: 1px solid #ddd;
|
|
1930
|
-
border-radius: 4px;
|
|
1931
|
-
background: white;
|
|
1932
|
-
font-size: 14px;
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
.cv-custom-state-input:focus {
|
|
1936
|
-
outline: none;
|
|
1937
|
-
border-color: #007bff;
|
|
1938
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
/* Toggles Container */
|
|
1942
|
-
.cv-toggles-container {
|
|
1943
|
-
display: flex;
|
|
1944
|
-
flex-direction: column;
|
|
1945
|
-
gap: 0.5rem;
|
|
1946
|
-
border-radius: 0.5rem;
|
|
1947
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1948
|
-
overflow: hidden;
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
.cv-toggle-card,
|
|
1952
|
-
.cv-tabgroup-card {
|
|
1953
|
-
background: white;
|
|
1954
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
.cv-toggle-card:last-child {
|
|
1958
|
-
border-bottom: none;
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
.cv-toggle-content {
|
|
1962
|
-
display: flex;
|
|
1963
|
-
align-items: center;
|
|
1964
|
-
justify-content: space-between;
|
|
1965
|
-
padding: 0.75rem;
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
.cv-toggle-title {
|
|
1969
|
-
font-weight: 500;
|
|
1970
|
-
font-size: 0.875rem;
|
|
1971
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1972
|
-
margin: 0 0 0.125rem 0;
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
.cv-toggle-description {
|
|
1976
|
-
font-size: 0.75rem;
|
|
1977
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1978
|
-
margin: 0;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
.cv-toggle-label{
|
|
1982
|
-
position: relative;
|
|
1983
|
-
display: inline-block;
|
|
1984
|
-
width: 2.75rem;
|
|
1985
|
-
height: 1.5rem;
|
|
1986
|
-
cursor: pointer;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
.cv-toggle-input {
|
|
1990
|
-
opacity: 0;
|
|
1991
|
-
width: 0;
|
|
1992
|
-
height: 0;
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
.cv-toggle-slider {
|
|
1996
|
-
position: absolute;
|
|
1997
|
-
top: 0;
|
|
1998
|
-
left: 0;
|
|
1999
|
-
right: 0;
|
|
2000
|
-
bottom: 0;
|
|
2001
|
-
background: rgba(0, 0, 0, 0.2);
|
|
2002
|
-
border-radius: 9999px;
|
|
2003
|
-
transition: background-color 0.2s ease;
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
.cv-toggle-slider:before {
|
|
2007
|
-
position: absolute;
|
|
2008
|
-
content: "";
|
|
2009
|
-
height: 1rem;
|
|
2010
|
-
width: 1rem;
|
|
2011
|
-
left: 0.25rem;
|
|
2012
|
-
bottom: 0.25rem;
|
|
2013
|
-
background: white;
|
|
2014
|
-
border-radius: 50%;
|
|
2015
|
-
transition: transform 0.2s ease;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
2019
|
-
background: #3e84f4;
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
2023
|
-
transform: translateX(1.25rem);
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
/* Dark theme toggle switch styles */
|
|
2027
|
-
.cv-widget-theme-dark .cv-toggle-switch {
|
|
2028
|
-
background: #4a5568;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2032
|
-
background: #5a6578;
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2036
|
-
background: #63b3ed;
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2040
|
-
background: #4299e1;
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
/* Tab Groups Container */
|
|
2044
|
-
.cv-tab-groups-list {
|
|
2045
|
-
display: flex;
|
|
2046
|
-
flex-direction: column;
|
|
2047
|
-
gap: 1px;
|
|
2048
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2049
|
-
border-radius: 0.5rem;
|
|
2050
|
-
overflow: hidden;
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2054
|
-
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2055
|
-
display: flex;
|
|
2056
|
-
align-items: center;
|
|
2057
|
-
justify-content: space-between;
|
|
2058
|
-
padding: 0.75rem;
|
|
2059
|
-
border-bottom: 0px;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2063
|
-
display: flex;
|
|
2064
|
-
align-items: center;
|
|
2065
|
-
justify-content: space-between;
|
|
2066
|
-
width: 100%;
|
|
2067
|
-
gap: 1rem;
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
/*
|
|
2071
|
-
.cv-
|
|
2072
|
-
display: flex;
|
|
2073
|
-
|
|
2074
|
-
gap: 0.5rem;
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
.
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
.cv-tabgroup-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
.cv-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
.cv-
|
|
2183
|
-
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
border-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
.cv-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
.cv-
|
|
2264
|
-
color: rgba(
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
.cv-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
.
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
font-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
.cv-
|
|
2318
|
-
color:
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
.cv-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
.cv-welcome-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
background: #
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
1462
|
+
const WIDGET_STYLES = `
|
|
1463
|
+
/* Rounded rectangle widget icon styles */
|
|
1464
|
+
.cv-widget-icon {
|
|
1465
|
+
position: fixed;
|
|
1466
|
+
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1467
|
+
background: rgba(255, 255, 255, 0.92);
|
|
1468
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1469
|
+
opacity: 0.6;
|
|
1470
|
+
display: flex;
|
|
1471
|
+
align-items: center;
|
|
1472
|
+
justify-content: center;
|
|
1473
|
+
font-size: 18px;
|
|
1474
|
+
font-weight: bold;
|
|
1475
|
+
cursor: pointer;
|
|
1476
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1477
|
+
z-index: 9998;
|
|
1478
|
+
transition: all 0.3s ease;
|
|
1479
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.cv-widget-icon:hover {
|
|
1483
|
+
/* Become fully opaque on hover to improve readability */
|
|
1484
|
+
background: rgba(255, 255, 255, 1);
|
|
1485
|
+
color: rgba(0, 0, 0, 1);
|
|
1486
|
+
opacity: 1;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1490
|
+
.cv-widget-top-right {
|
|
1491
|
+
top: 20px;
|
|
1492
|
+
right: 0;
|
|
1493
|
+
border-radius: 18px 0 0 18px;
|
|
1494
|
+
padding-left: 8px;
|
|
1495
|
+
justify-content: flex-start;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1499
|
+
.cv-widget-top-left {
|
|
1500
|
+
top: 20px;
|
|
1501
|
+
left: 0;
|
|
1502
|
+
border-radius: 0 18px 18px 0;
|
|
1503
|
+
padding-right: 8px;
|
|
1504
|
+
justify-content: flex-end;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1508
|
+
.cv-widget-bottom-right {
|
|
1509
|
+
bottom: 20px;
|
|
1510
|
+
right: 0;
|
|
1511
|
+
border-radius: 18px 0 0 18px;
|
|
1512
|
+
padding-left: 8px;
|
|
1513
|
+
justify-content: flex-start;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1517
|
+
.cv-widget-bottom-left {
|
|
1518
|
+
bottom: 20px;
|
|
1519
|
+
left: 0;
|
|
1520
|
+
border-radius: 0 18px 18px 0;
|
|
1521
|
+
padding-right: 8px;
|
|
1522
|
+
justify-content: flex-end;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1526
|
+
.cv-widget-middle-left {
|
|
1527
|
+
top: 50%;
|
|
1528
|
+
left: 0;
|
|
1529
|
+
transform: translateY(-50%);
|
|
1530
|
+
border-radius: 0 18px 18px 0;
|
|
1531
|
+
padding-right: 8px;
|
|
1532
|
+
justify-content: flex-end;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1536
|
+
.cv-widget-middle-right {
|
|
1537
|
+
top: 50%;
|
|
1538
|
+
right: 0;
|
|
1539
|
+
transform: translateY(-50%);
|
|
1540
|
+
border-radius: 18px 0 0 18px;
|
|
1541
|
+
padding-left: 8px;
|
|
1542
|
+
justify-content: flex-start;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.cv-widget-top-right,
|
|
1546
|
+
.cv-widget-middle-right,
|
|
1547
|
+
.cv-widget-bottom-right,
|
|
1548
|
+
.cv-widget-top-left,
|
|
1549
|
+
.cv-widget-middle-left,
|
|
1550
|
+
.cv-widget-bottom-left {
|
|
1551
|
+
height: 36px;
|
|
1552
|
+
width: 36px;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.cv-widget-middle-right:hover,
|
|
1556
|
+
.cv-widget-top-right:hover,
|
|
1557
|
+
.cv-widget-bottom-right:hover,
|
|
1558
|
+
.cv-widget-top-left:hover,
|
|
1559
|
+
.cv-widget-middle-left:hover,
|
|
1560
|
+
.cv-widget-bottom-left:hover {
|
|
1561
|
+
width: 55px;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
/* Modal content styles */
|
|
1565
|
+
.cv-widget-section {
|
|
1566
|
+
margin-bottom: 16px;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.cv-widget-section:last-child {
|
|
1570
|
+
margin-bottom: 0;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
.cv-widget-section label {
|
|
1574
|
+
display: block;
|
|
1575
|
+
margin-bottom: 4px;
|
|
1576
|
+
font-weight: 500;
|
|
1577
|
+
color: #555;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.cv-widget-profile-select,
|
|
1581
|
+
.cv-widget-state-select {
|
|
1582
|
+
width: 100%;
|
|
1583
|
+
padding: 8px 12px;
|
|
1584
|
+
border: 1px solid #ddd;
|
|
1585
|
+
border-radius: 4px;
|
|
1586
|
+
background: white;
|
|
1587
|
+
font-size: 14px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.cv-widget-profile-select:focus,
|
|
1591
|
+
.cv-widget-state-select:focus {
|
|
1592
|
+
outline: none;
|
|
1593
|
+
border-color: #007bff;
|
|
1594
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.cv-widget-profile-select:disabled,
|
|
1598
|
+
.cv-widget-state-select:disabled {
|
|
1599
|
+
background: #f8f9fa;
|
|
1600
|
+
color: #6c757d;
|
|
1601
|
+
cursor: not-allowed;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
.cv-widget-current {
|
|
1605
|
+
margin: 16px 0;
|
|
1606
|
+
padding: 12px;
|
|
1607
|
+
background: #f8f9fa;
|
|
1608
|
+
border-radius: 4px;
|
|
1609
|
+
border-left: 4px solid #007bff;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.cv-widget-current label {
|
|
1613
|
+
font-size: 12px;
|
|
1614
|
+
text-transform: uppercase;
|
|
1615
|
+
letter-spacing: 0.5px;
|
|
1616
|
+
color: #666;
|
|
1617
|
+
margin-bottom: 4px;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.cv-widget-current-view {
|
|
1621
|
+
font-weight: 500;
|
|
1622
|
+
color: #333;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
.cv-widget-reset {
|
|
1626
|
+
width: 100%;
|
|
1627
|
+
padding: 8px 16px;
|
|
1628
|
+
background: #dc3545;
|
|
1629
|
+
color: white;
|
|
1630
|
+
border: none;
|
|
1631
|
+
border-radius: 4px;
|
|
1632
|
+
cursor: pointer;
|
|
1633
|
+
font-size: 14px;
|
|
1634
|
+
font-weight: 500;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.cv-widget-reset:hover {
|
|
1638
|
+
background: #c82333;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.cv-widget-reset:active {
|
|
1642
|
+
background: #bd2130;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
/* Responsive design for mobile */
|
|
1646
|
+
@media (max-width: 768px) {
|
|
1647
|
+
.cv-widget-top-right,
|
|
1648
|
+
.cv-widget-top-left {
|
|
1649
|
+
top: 10px;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
.cv-widget-bottom-right,
|
|
1653
|
+
.cv-widget-bottom-left {
|
|
1654
|
+
bottom: 10px;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
/* All widgets stay flush with screen edges */
|
|
1658
|
+
.cv-widget-top-right,
|
|
1659
|
+
.cv-widget-bottom-right,
|
|
1660
|
+
.cv-widget-middle-right {
|
|
1661
|
+
right: 0;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
.cv-widget-top-left,
|
|
1665
|
+
.cv-widget-bottom-left,
|
|
1666
|
+
.cv-widget-middle-left {
|
|
1667
|
+
left: 0;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
/* Slightly smaller on mobile */
|
|
1671
|
+
.cv-widget-icon {
|
|
1672
|
+
width: 60px;
|
|
1673
|
+
height: 32px;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.cv-widget-icon:hover {
|
|
1677
|
+
width: 75px;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/* Modal styles */
|
|
1682
|
+
.cv-widget-modal-overlay {
|
|
1683
|
+
position: fixed;
|
|
1684
|
+
top: 0;
|
|
1685
|
+
left: 0;
|
|
1686
|
+
right: 0;
|
|
1687
|
+
bottom: 0;
|
|
1688
|
+
background: rgba(0, 0, 0, 0.5);
|
|
1689
|
+
display: flex;
|
|
1690
|
+
align-items: center;
|
|
1691
|
+
justify-content: center;
|
|
1692
|
+
z-index: 10002;
|
|
1693
|
+
animation: fadeIn 0.2s ease;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
@keyframes fadeIn {
|
|
1697
|
+
from { opacity: 0; }
|
|
1698
|
+
to { opacity: 1; }
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.cv-widget-modal {
|
|
1702
|
+
background: white;
|
|
1703
|
+
border-radius: 0.75rem;
|
|
1704
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1705
|
+
max-width: 32rem;
|
|
1706
|
+
width: 90vw;
|
|
1707
|
+
max-height: 80vh;
|
|
1708
|
+
animation: slideIn 0.2s ease;
|
|
1709
|
+
display: flex;
|
|
1710
|
+
flex-direction: column;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
@keyframes slideIn {
|
|
1714
|
+
from {
|
|
1715
|
+
opacity: 0;
|
|
1716
|
+
transform: scale(0.9) translateY(-20px);
|
|
1717
|
+
}
|
|
1718
|
+
to {
|
|
1719
|
+
opacity: 1;
|
|
1720
|
+
transform: scale(1) translateY(0);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
.cv-modal-header {
|
|
1725
|
+
display: flex;
|
|
1726
|
+
align-items: center;
|
|
1727
|
+
justify-content: space-between;
|
|
1728
|
+
padding: 0.5rem 1rem;
|
|
1729
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
.cv-modal-header-content {
|
|
1733
|
+
display: flex;
|
|
1734
|
+
align-items: center;
|
|
1735
|
+
gap: 0.75rem;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.cv-modal-icon {
|
|
1739
|
+
position: relative;
|
|
1740
|
+
width: 1rem;
|
|
1741
|
+
height: 1rem;
|
|
1742
|
+
display: flex;
|
|
1743
|
+
align-items: center;
|
|
1744
|
+
justify-content: center;
|
|
1745
|
+
border-radius: 9999px;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
.cv-modal-icon-svg {
|
|
1749
|
+
width: 100%;
|
|
1750
|
+
height: 100%;
|
|
1751
|
+
opacity: 1;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
.cv-modal-title {
|
|
1755
|
+
font-size: 1.125rem;
|
|
1756
|
+
font-weight: bold;
|
|
1757
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1758
|
+
margin: 0;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.cv-modal-close {
|
|
1762
|
+
width: 2rem;
|
|
1763
|
+
height: 2rem;
|
|
1764
|
+
display: flex;
|
|
1765
|
+
align-items: center;
|
|
1766
|
+
justify-content: center;
|
|
1767
|
+
border-radius: 9999px;
|
|
1768
|
+
background: transparent;
|
|
1769
|
+
border: none;
|
|
1770
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1771
|
+
cursor: pointer;
|
|
1772
|
+
transition: all 0.2s ease;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
.cv-modal-close:hover {
|
|
1776
|
+
background: rgba(62, 132, 244, 0.1);
|
|
1777
|
+
color: #3e84f4;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.cv-modal-close-icon {
|
|
1781
|
+
width: 1.25rem;
|
|
1782
|
+
height: 1.25rem;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.cv-modal-main {
|
|
1786
|
+
padding: 1rem;
|
|
1787
|
+
flex: 1;
|
|
1788
|
+
display: flex;
|
|
1789
|
+
flex-direction: column;
|
|
1790
|
+
gap: 1rem;
|
|
1791
|
+
overflow-y: auto;
|
|
1792
|
+
max-height: calc(80vh - 8rem);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.cv-modal-description {
|
|
1796
|
+
font-size: 0.875rem;
|
|
1797
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1798
|
+
margin: 0;
|
|
1799
|
+
line-height: 1.4;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.cv-content-section,
|
|
1803
|
+
.cv-tab-groups-section {
|
|
1804
|
+
display: flex;
|
|
1805
|
+
flex-direction: column;
|
|
1806
|
+
gap: 0.75rem;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.cv-section-heading {
|
|
1810
|
+
font-size: 1rem;
|
|
1811
|
+
font-weight: bold;
|
|
1812
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1813
|
+
margin: 0;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.cv-widget-modal-actions {
|
|
1817
|
+
margin-top: 20px;
|
|
1818
|
+
padding-top: 16px;
|
|
1819
|
+
border-top: 1px solid #e9ecef;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.cv-widget-restore {
|
|
1823
|
+
width: 100%;
|
|
1824
|
+
padding: 10px 16px;
|
|
1825
|
+
background: #28a745;
|
|
1826
|
+
color: white;
|
|
1827
|
+
border: none;
|
|
1828
|
+
border-radius: 4px;
|
|
1829
|
+
cursor: pointer;
|
|
1830
|
+
font-size: 14px;
|
|
1831
|
+
font-weight: 500;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.cv-widget-restore:hover {
|
|
1835
|
+
background: #218838;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.cv-widget-create-state {
|
|
1839
|
+
width: 100%;
|
|
1840
|
+
padding: 10px 16px;
|
|
1841
|
+
background: #007bff;
|
|
1842
|
+
color: white;
|
|
1843
|
+
border: none;
|
|
1844
|
+
border-radius: 4px;
|
|
1845
|
+
cursor: pointer;
|
|
1846
|
+
font-size: 14px;
|
|
1847
|
+
font-weight: 500;
|
|
1848
|
+
margin-bottom: 10px;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
.cv-widget-create-state:hover {
|
|
1852
|
+
background: #0056b3;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
.cv-widget-theme-dark .cv-widget-modal {
|
|
1856
|
+
background: #101722;
|
|
1857
|
+
color: #e2e8f0;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.cv-widget-theme-dark .cv-modal-header {
|
|
1861
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.cv-widget-theme-dark .cv-modal-title {
|
|
1865
|
+
color: #e2e8f0;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
.cv-widget-theme-dark .cv-modal-close {
|
|
1869
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1873
|
+
background: rgba(62, 132, 244, 0.2);
|
|
1874
|
+
color: #3e84f4;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
.cv-widget-theme-dark .cv-modal-description {
|
|
1878
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
.cv-widget-theme-dark .cv-section-heading {
|
|
1882
|
+
color: #e2e8f0;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
.cv-widget-theme-dark .cv-toggles-container
|
|
1886
|
+
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1887
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
.cv-widget-theme-dark .cv-toggle-card,
|
|
1891
|
+
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1892
|
+
background: #101722;
|
|
1893
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
.cv-widget-theme-dark .cv-toggle-title,
|
|
1897
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1898
|
+
color: #e2e8f0;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
.cv-widget-theme-dark .cv-toggle-description,
|
|
1902
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1903
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1907
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1911
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1915
|
+
background: #101722;
|
|
1916
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
1917
|
+
color: #e2e8f0;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.cv-widget-theme-dark .cv-modal-footer {
|
|
1921
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1922
|
+
background: #101722;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
.cv-widget-theme-dark .cv-reset-btn {
|
|
1926
|
+
color: #e2e8f0;
|
|
1927
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1931
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/* Custom state creator styles */
|
|
1935
|
+
.cv-custom-state-modal {
|
|
1936
|
+
max-width: 500px;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
.cv-custom-state-form .cv-section-header {
|
|
1940
|
+
font-size: 16px;
|
|
1941
|
+
font-weight: 600;
|
|
1942
|
+
color: #333;
|
|
1943
|
+
border-bottom: 1px solid #e9ecef;
|
|
1944
|
+
padding-bottom: 5px;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.cv-custom-state-form p {
|
|
1948
|
+
font-size: 15px;
|
|
1949
|
+
line-height: 1.6;
|
|
1950
|
+
color: #555;
|
|
1951
|
+
margin-bottom: 24px;
|
|
1952
|
+
text-align: justify;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.cv-custom-state-section {
|
|
1956
|
+
margin-bottom: 16px;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
.cv-custom-state-section label {
|
|
1960
|
+
display: block;
|
|
1961
|
+
margin-bottom: 4px;
|
|
1962
|
+
font-weight: 500;
|
|
1963
|
+
color: #555;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
.cv-custom-state-input {
|
|
1967
|
+
width: 100%;
|
|
1968
|
+
padding: 8px 12px;
|
|
1969
|
+
border: 1px solid #ddd;
|
|
1970
|
+
border-radius: 4px;
|
|
1971
|
+
background: white;
|
|
1972
|
+
font-size: 14px;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
.cv-custom-state-input:focus {
|
|
1976
|
+
outline: none;
|
|
1977
|
+
border-color: #007bff;
|
|
1978
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
/* Toggles Container */
|
|
1982
|
+
.cv-toggles-container {
|
|
1983
|
+
display: flex;
|
|
1984
|
+
flex-direction: column;
|
|
1985
|
+
gap: 0.5rem;
|
|
1986
|
+
border-radius: 0.5rem;
|
|
1987
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1988
|
+
overflow: hidden;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
.cv-toggle-card,
|
|
1992
|
+
.cv-tabgroup-card {
|
|
1993
|
+
background: white;
|
|
1994
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.cv-toggle-card:last-child {
|
|
1998
|
+
border-bottom: none;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.cv-toggle-content {
|
|
2002
|
+
display: flex;
|
|
2003
|
+
align-items: center;
|
|
2004
|
+
justify-content: space-between;
|
|
2005
|
+
padding: 0.75rem;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
.cv-toggle-title {
|
|
2009
|
+
font-weight: 500;
|
|
2010
|
+
font-size: 0.875rem;
|
|
2011
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2012
|
+
margin: 0 0 0.125rem 0;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
.cv-toggle-description {
|
|
2016
|
+
font-size: 0.75rem;
|
|
2017
|
+
color: rgba(0, 0, 0, 0.6);
|
|
2018
|
+
margin: 0;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
.cv-toggle-label{
|
|
2022
|
+
position: relative;
|
|
2023
|
+
display: inline-block;
|
|
2024
|
+
width: 2.75rem;
|
|
2025
|
+
height: 1.5rem;
|
|
2026
|
+
cursor: pointer;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.cv-toggle-input {
|
|
2030
|
+
opacity: 0;
|
|
2031
|
+
width: 0;
|
|
2032
|
+
height: 0;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
.cv-toggle-slider {
|
|
2036
|
+
position: absolute;
|
|
2037
|
+
top: 0;
|
|
2038
|
+
left: 0;
|
|
2039
|
+
right: 0;
|
|
2040
|
+
bottom: 0;
|
|
2041
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2042
|
+
border-radius: 9999px;
|
|
2043
|
+
transition: background-color 0.2s ease;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
.cv-toggle-slider:before {
|
|
2047
|
+
position: absolute;
|
|
2048
|
+
content: "";
|
|
2049
|
+
height: 1rem;
|
|
2050
|
+
width: 1rem;
|
|
2051
|
+
left: 0.25rem;
|
|
2052
|
+
bottom: 0.25rem;
|
|
2053
|
+
background: white;
|
|
2054
|
+
border-radius: 50%;
|
|
2055
|
+
transition: transform 0.2s ease;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
2059
|
+
background: #3e84f4;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
2063
|
+
transform: translateX(1.25rem);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
/* Dark theme toggle switch styles */
|
|
2067
|
+
.cv-widget-theme-dark .cv-toggle-switch {
|
|
2068
|
+
background: #4a5568;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2072
|
+
background: #5a6578;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2076
|
+
background: #63b3ed;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2080
|
+
background: #4299e1;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/* Tab Groups Container */
|
|
2084
|
+
.cv-tab-groups-list {
|
|
2085
|
+
display: flex;
|
|
2086
|
+
flex-direction: column;
|
|
2087
|
+
gap: 1px;
|
|
2088
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2089
|
+
border-radius: 0.5rem;
|
|
2090
|
+
overflow: hidden;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2094
|
+
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2095
|
+
display: flex;
|
|
2096
|
+
align-items: center;
|
|
2097
|
+
justify-content: space-between;
|
|
2098
|
+
padding: 0.75rem;
|
|
2099
|
+
border-bottom: 0px;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2103
|
+
display: flex;
|
|
2104
|
+
align-items: center;
|
|
2105
|
+
justify-content: space-between;
|
|
2106
|
+
width: 100%;
|
|
2107
|
+
gap: 1rem;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
/* Navigation toggle icon container */
|
|
2111
|
+
.cv-nav-toggle-container {
|
|
2112
|
+
display: flex;
|
|
2113
|
+
align-items: center;
|
|
2114
|
+
gap: 0.5rem;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
.cv-nav-icon {
|
|
2118
|
+
width: 2rem;
|
|
2119
|
+
height: 2rem;
|
|
2120
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2121
|
+
display: flex;
|
|
2122
|
+
align-items: center;
|
|
2123
|
+
justify-content: center;
|
|
2124
|
+
flex-shrink: 0;
|
|
2125
|
+
transition: color 0.2s ease;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
/* Logo box - centered grey box on its own row */
|
|
2129
|
+
.cv-tabgroup-logo-box {
|
|
2130
|
+
width: 3.5rem;
|
|
2131
|
+
height: 3.5rem;
|
|
2132
|
+
background: rgba(0, 0, 0, 0.08);
|
|
2133
|
+
border-radius: 0.5rem;
|
|
2134
|
+
display: flex;
|
|
2135
|
+
align-items: center;
|
|
2136
|
+
justify-content: center;
|
|
2137
|
+
flex-shrink: 0;
|
|
2138
|
+
margin-bottom: 0.5rem;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
/* Title container for title alignment (without icon) */
|
|
2142
|
+
.cv-tabgroup-title-container {
|
|
2143
|
+
display: flex;
|
|
2144
|
+
align-items: center;
|
|
2145
|
+
gap: 0.5rem;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
/* Hover state for icon - apply to the entire tabgroup-row */
|
|
2149
|
+
.cv-tabgroup-card.cv-tabgroup-header:hover .cv-nav-icon {
|
|
2150
|
+
color: #3e84f4;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
.cv-widget-theme-dark .cv-nav-icon {
|
|
2154
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header:hover .cv-nav-icon {
|
|
2158
|
+
color: #60a5fa;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
/* Tab Group Card - Items */
|
|
2162
|
+
.cv-tabgroup-card.cv-tabgroup-item {
|
|
2163
|
+
display: flex;
|
|
2164
|
+
flex-direction: column;
|
|
2165
|
+
gap: 0.5rem;
|
|
2166
|
+
padding: 0.75rem;
|
|
2167
|
+
background: white;
|
|
2168
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
.cv-tabgroup-card.cv-tabgroup-item:last-child {
|
|
2172
|
+
border-bottom: none;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/* Tab Group Info */
|
|
2176
|
+
.cv-tabgroup-info {
|
|
2177
|
+
flex: 1;
|
|
2178
|
+
display: flex;
|
|
2179
|
+
flex-direction: column;
|
|
2180
|
+
gap: 0.25rem;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
.cv-tabgroup-title {
|
|
2184
|
+
font-weight: 500;
|
|
2185
|
+
font-size: 0.875rem;
|
|
2186
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2187
|
+
margin: 0 0 0 0;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.cv-tabgroup-description {
|
|
2191
|
+
font-size: 0.75rem;
|
|
2192
|
+
color: rgba(0, 0, 0, 0.6);
|
|
2193
|
+
margin: 0;
|
|
2194
|
+
line-height: 1.3;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
/* Tab Group Label (for select dropdowns) */
|
|
2198
|
+
.cv-tabgroup-label {
|
|
2199
|
+
font-size: 0.875rem;
|
|
2200
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2201
|
+
margin: 0;
|
|
2202
|
+
line-height: 1.4;
|
|
2203
|
+
font-weight: 500;
|
|
2204
|
+
display: block;
|
|
2205
|
+
cursor: pointer;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/* Tab Group Select */
|
|
2209
|
+
.cv-tabgroup-select {
|
|
2210
|
+
width: 100%;
|
|
2211
|
+
border-radius: 0.5rem;
|
|
2212
|
+
background: white;
|
|
2213
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
2214
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2215
|
+
padding: 0.5rem 0.75rem;
|
|
2216
|
+
font-size: 0.875rem;
|
|
2217
|
+
cursor: pointer;
|
|
2218
|
+
transition: all 0.15s ease;
|
|
2219
|
+
font-family: inherit;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
.cv-tabgroup-select:hover {
|
|
2223
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.cv-tabgroup-select:focus {
|
|
2227
|
+
outline: none;
|
|
2228
|
+
border-color: #3e84f4;
|
|
2229
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
/* Modern Toggle Switch */
|
|
2233
|
+
.cv-toggle-switch {
|
|
2234
|
+
position: relative;
|
|
2235
|
+
display: inline-flex;
|
|
2236
|
+
align-items: center;
|
|
2237
|
+
width: 44px;
|
|
2238
|
+
height: 24px;
|
|
2239
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2240
|
+
border-radius: 9999px;
|
|
2241
|
+
padding: 2px;
|
|
2242
|
+
box-sizing: border-box;
|
|
2243
|
+
cursor: pointer;
|
|
2244
|
+
transition: background-color 0.2s ease;
|
|
2245
|
+
border: none;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
.cv-toggle-switch input {
|
|
2249
|
+
display: none;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
.cv-toggle-switch .cv-switch-bg {
|
|
2253
|
+
position: absolute;
|
|
2254
|
+
inset: 0;
|
|
2255
|
+
border-radius: 9999px;
|
|
2256
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2257
|
+
transition: background-color 0.2s ease;
|
|
2258
|
+
pointer-events: none;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
.cv-toggle-switch .cv-switch-knob {
|
|
2262
|
+
position: relative;
|
|
2263
|
+
width: 20px;
|
|
2264
|
+
height: 20px;
|
|
2265
|
+
background: white;
|
|
2266
|
+
border-radius: 50%;
|
|
2267
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
2268
|
+
transition: transform 0.2s ease;
|
|
2269
|
+
z-index: 1;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
.cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2273
|
+
background: #3e84f4;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
.cv-toggle-switch input:checked ~ .cv-switch-knob {
|
|
2277
|
+
transform: translateX(20px);
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
/* Dark Theme - Tab Groups */
|
|
2281
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
|
|
2282
|
+
background: #101722;
|
|
2283
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
|
|
2287
|
+
background: #101722;
|
|
2288
|
+
border-bottom-color: rgba(255, 255, 255, 0.05);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
2292
|
+
color: #e2e8f0;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
2296
|
+
color: rgba(255, 255, 255, 0.6);
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
.cv-widget-theme-dark .cv-tabgroup-label {
|
|
2300
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.cv-widget-theme-dark .cv-tab-groups-list {
|
|
2304
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
2308
|
+
background: #101722;
|
|
2309
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2310
|
+
color: #e2e8f0;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
.cv-widget-theme-dark .cv-tabgroup-select:hover {
|
|
2314
|
+
border-color: rgba(255, 255, 255, 0.25);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
.cv-widget-theme-dark .cv-tabgroup-select:focus {
|
|
2318
|
+
border-color: #60a5fa;
|
|
2319
|
+
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/* Dark Theme - Toggle Switch */
|
|
2323
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
|
|
2324
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
|
|
2328
|
+
background: #e2e8f0;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
.cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2332
|
+
background: #63b3ed;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.cv-modal-footer {
|
|
2336
|
+
display: flex;
|
|
2337
|
+
justify-content: space-between;
|
|
2338
|
+
align-items: center;
|
|
2339
|
+
padding: 0.75rem;
|
|
2340
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.cv-reset-btn,
|
|
2344
|
+
.cv-share-btn {
|
|
2345
|
+
display: flex;
|
|
2346
|
+
align-items: center;
|
|
2347
|
+
gap: 0.5rem;
|
|
2348
|
+
padding: 0.375rem 0.75rem;
|
|
2349
|
+
border-radius: 0.5rem;
|
|
2350
|
+
font-weight: 600;
|
|
2351
|
+
font-size: 0.875rem;
|
|
2352
|
+
cursor: pointer;
|
|
2353
|
+
transition: all 0.2s ease;
|
|
2354
|
+
border: none;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
.cv-reset-btn {
|
|
2358
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2359
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
.cv-reset-btn:hover {
|
|
2363
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
.cv-share-btn {
|
|
2367
|
+
color: white;
|
|
2368
|
+
background: #3e84f4;
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
.cv-share-btn:hover {
|
|
2372
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
.cv-btn-icon {
|
|
2376
|
+
width: 1rem;
|
|
2377
|
+
height: 1rem;
|
|
2378
|
+
display: flex;
|
|
2379
|
+
align-items: center;
|
|
2380
|
+
justify-content: center;
|
|
2381
|
+
transition: transform 0.2s ease;
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
/* Dark theme custom state styles */
|
|
2385
|
+
/* Welcome modal styles */
|
|
2386
|
+
.cv-welcome-modal {
|
|
2387
|
+
max-width: 32rem;
|
|
2388
|
+
width: 90vw;
|
|
2389
|
+
background: white;
|
|
2390
|
+
border-radius: 0.75rem;
|
|
2391
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
2392
|
+
animation: slideIn 0.2s ease;
|
|
2393
|
+
display: flex;
|
|
2394
|
+
flex-direction: column;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
.cv-modal-main {
|
|
2398
|
+
padding: 1rem;
|
|
2399
|
+
flex: 1;
|
|
2400
|
+
display: flex;
|
|
2401
|
+
flex-direction: column;
|
|
2402
|
+
gap: 1rem;
|
|
2403
|
+
overflow-y: auto;
|
|
2404
|
+
max-height: calc(80vh - 8rem);
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
.cv-welcome-message {
|
|
2408
|
+
font-size: 0.875rem;
|
|
2409
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2410
|
+
margin: 0;
|
|
2411
|
+
line-height: 1.4;
|
|
2412
|
+
text-align: center;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
.cv-welcome-message a {
|
|
2416
|
+
color: #3e84f4;
|
|
2417
|
+
text-align: justify;
|
|
2418
|
+
text-decoration: none;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
.cv-welcome-message a:hover {
|
|
2422
|
+
text-decoration: underline;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
.cv-welcome-widget-preview {
|
|
2426
|
+
display: flex;
|
|
2427
|
+
align-items: center;
|
|
2428
|
+
justify-content: center;
|
|
2429
|
+
gap: 1rem;
|
|
2430
|
+
padding: 1rem;
|
|
2431
|
+
background: #f8f9fa;
|
|
2432
|
+
border-radius: 0.5rem;
|
|
2433
|
+
margin: 1rem 0;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
.cv-welcome-widget-icon {
|
|
2437
|
+
width: 2rem;
|
|
2438
|
+
height: 2rem;
|
|
2439
|
+
background: rgba(62, 132, 244, 0.1);
|
|
2440
|
+
border-radius: 9999px;
|
|
2441
|
+
display: flex;
|
|
2442
|
+
align-items: center;
|
|
2443
|
+
justify-content: center;
|
|
2444
|
+
animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
2445
|
+
color: #3e84f4;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
.cv-welcome-widget-label {
|
|
2449
|
+
font-size: 0.875rem;
|
|
2450
|
+
font-weight: 500;
|
|
2451
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2452
|
+
margin: 0;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
.cv-welcome-got-it {
|
|
2456
|
+
width: 100%;
|
|
2457
|
+
background: #3e84f4;
|
|
2458
|
+
color: white;
|
|
2459
|
+
font-weight: 600;
|
|
2460
|
+
padding: 0.75rem 1rem;
|
|
2461
|
+
border-radius: 0.5rem;
|
|
2462
|
+
border: none;
|
|
2463
|
+
cursor: pointer;
|
|
2464
|
+
font-size: 0.875rem;
|
|
2465
|
+
transition: background-color 0.2s ease;
|
|
2466
|
+
outline: none;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.cv-welcome-got-it:hover {
|
|
2470
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.cv-welcome-got-it:focus {
|
|
2474
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/* Animations */
|
|
2478
|
+
@keyframes cv-pulse {
|
|
2479
|
+
0%, 100% {
|
|
2480
|
+
opacity: 1;
|
|
2481
|
+
}
|
|
2482
|
+
50% {
|
|
2483
|
+
opacity: 0.5;
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
/* Dark theme welcome modal styles */
|
|
2488
|
+
.cv-widget-theme-dark .cv-welcome-modal {
|
|
2489
|
+
background: #101722;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.cv-widget-theme-dark .cv-welcome-message {
|
|
2493
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.cv-widget-theme-dark .cv-welcome-message a {
|
|
2497
|
+
color: #60a5fa;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
.cv-widget-theme-dark .cv-welcome-widget-preview {
|
|
2501
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
.cv-widget-theme-dark .cv-welcome-widget-label {
|
|
2505
|
+
color: #e2e8f0;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
/* Dark theme logo box */
|
|
2509
|
+
.cv-widget-theme-dark .cv-tabgroup-logo-box {
|
|
2510
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
/* Spinning animation for reset button icon */
|
|
2514
|
+
@keyframes cv-spin {
|
|
2515
|
+
from {
|
|
2516
|
+
transform: rotate(0deg);
|
|
2517
|
+
}
|
|
2518
|
+
to {
|
|
2519
|
+
transform: rotate(-360deg);
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.cv-spinning {
|
|
2524
|
+
animation: cv-spin 0.6s ease-in-out;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
/* Hide widget icon in print view */
|
|
2528
|
+
@media print {
|
|
2529
|
+
.cv-widget-icon {
|
|
2530
|
+
display: none !important;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2409
2533
|
`;
|
|
2410
2534
|
/**
|
|
2411
2535
|
* Inject widget styles into the document head
|
|
@@ -2428,35 +2552,102 @@ function injectWidgetStyles() {
|
|
|
2428
2552
|
* Settings gear icon for modal header
|
|
2429
2553
|
*/
|
|
2430
2554
|
function getGearIcon() {
|
|
2431
|
-
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2432
|
-
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
|
|
2433
|
-
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
|
|
2555
|
+
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2556
|
+
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
|
|
2557
|
+
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
|
|
2434
2558
|
</svg>`;
|
|
2435
2559
|
}
|
|
2436
2560
|
/**
|
|
2437
2561
|
* Close/X icon for modal close button
|
|
2438
2562
|
*/
|
|
2439
2563
|
function getCloseIcon() {
|
|
2440
|
-
return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
|
|
2441
|
-
<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
|
|
2564
|
+
return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
|
|
2565
|
+
<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
|
|
2442
2566
|
</svg>`;
|
|
2443
2567
|
}
|
|
2444
2568
|
/**
|
|
2445
2569
|
* Reset/refresh icon for reset button
|
|
2446
2570
|
*/
|
|
2447
2571
|
function getResetIcon() {
|
|
2448
|
-
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2449
|
-
<path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
|
|
2572
|
+
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2573
|
+
<path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
|
|
2450
2574
|
</svg>`;
|
|
2451
2575
|
}
|
|
2452
2576
|
/**
|
|
2453
|
-
*
|
|
2577
|
+
* Copy icon for sharing URL button
|
|
2454
2578
|
*/
|
|
2455
|
-
function
|
|
2456
|
-
return `<svg
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2579
|
+
function getCopyIcon() {
|
|
2580
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18" viewBox="0 0 18 18" version="1.1" fill="currentColor">
|
|
2581
|
+
<g id="surface1">
|
|
2582
|
+
<path d="M 11.273438 0 L 2.546875 0 C 1.746094 0 1.089844 0.613281 1.089844
|
|
2583
|
+
1.363281 L 1.089844 10.910156 L 2.546875 10.910156 L 2.546875 1.363281 L 11.273438
|
|
2584
|
+
1.363281 Z M 13.453125 2.726562 L 5.453125 2.726562 C 4.65625 2.726562 4 3.339844 4
|
|
2585
|
+
4.089844 L 4 13.636719 C 4 14.386719 4.65625 15 5.453125 15 L 13.453125 15 C 14.253906
|
|
2586
|
+
15 14.910156 14.386719 14.910156 13.636719 L 14.910156 4.089844 C 14.910156 3.339844
|
|
2587
|
+
14.253906 2.726562 13.453125 2.726562 Z M 13.453125 13.636719 L 5.453125 13.636719 L
|
|
2588
|
+
5.453125 4.089844 L 13.453125 4.089844 Z M 13.453125 13.636719 "></path>
|
|
2589
|
+
</g>
|
|
2590
|
+
</svg>`;
|
|
2591
|
+
}
|
|
2592
|
+
function getTickIcon() {
|
|
2593
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="2 2 22 22" fill="currentColor">
|
|
2594
|
+
<path d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875
|
|
2595
|
+
L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"></path>
|
|
2596
|
+
</svg>`;
|
|
2597
|
+
}
|
|
2598
|
+
function getNavHeadingOnIcon() {
|
|
2599
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">
|
|
2600
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2601
|
+
<line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>
|
|
2602
|
+
<line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>
|
|
2603
|
+
<line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>
|
|
2604
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2605
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2606
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2607
|
+
<line x1="247.5" y1="43.0001" x2="247.5" y2="13.0001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2608
|
+
<path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2609
|
+
<line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2610
|
+
<path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2611
|
+
<path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2612
|
+
<path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2613
|
+
<path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2614
|
+
<path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2615
|
+
<path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2616
|
+
</svg>`;
|
|
2617
|
+
}
|
|
2618
|
+
function getNavHeadingOffIcon() {
|
|
2619
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181" fill="currentColor">
|
|
2620
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2621
|
+
<line x1="27" y1="62" x2="77" y2="62" stroke="currentColor" stroke-width="5"/>
|
|
2622
|
+
<line x1="27" y1="77.8887" x2="77" y2="77.8887" stroke="currentColor" stroke-width="5"/>
|
|
2623
|
+
<line x1="27" y1="97.4453" x2="221" y2="97.4453" stroke="currentColor" stroke-width="5"/>
|
|
2624
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2625
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2626
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2627
|
+
</svg>`;
|
|
2628
|
+
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Transition Icon for Navigation Headings
|
|
2631
|
+
*/
|
|
2632
|
+
function getNavDashed() {
|
|
2633
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">
|
|
2634
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2635
|
+
<line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>
|
|
2636
|
+
<line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>
|
|
2637
|
+
<line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>
|
|
2638
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2639
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2640
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2641
|
+
<path d="M245 37.0001V39.5001H250V37.0001H247.5H245ZM250 13.0001C250 11.6194 248.881 10.5001 247.5 10.5001C246.119 10.5001 245 11.6194 245 13.0001H247.5H250ZM250 31.0001C250 29.6194 248.881 28.5001 247.5 28.5001C246.119 28.5001 245 29.6194 245 31.0001H247.5H250ZM245 19.0001C245 20.3808 246.119 21.5001 247.5 21.5001C248.881 21.5001 250 20.3808 250 19.0001H247.5H245ZM247.5 37.0001H250V31.0001H247.5H245V37.0001H247.5ZM247.5 19.0001H250V13.0001H247.5H245V19.0001H247.5Z" fill="currentColor"/>
|
|
2642
|
+
<line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2643
|
+
<path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2644
|
+
<path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2645
|
+
<path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2646
|
+
<path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2647
|
+
<path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2648
|
+
<path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2649
|
+
<path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2650
|
+
</svg>`;
|
|
2460
2651
|
}
|
|
2461
2652
|
|
|
2462
2653
|
class CustomViewsWidget {
|
|
@@ -2559,18 +2750,18 @@ class CustomViewsWidget {
|
|
|
2559
2750
|
this.modal = document.createElement('div');
|
|
2560
2751
|
this.modal.className = 'cv-widget-modal-overlay';
|
|
2561
2752
|
this.applyThemeToModal();
|
|
2562
|
-
const toggleControlsHtml = toggles.map(toggle => `
|
|
2563
|
-
<div class="cv-toggle-card">
|
|
2564
|
-
<div class="cv-toggle-content">
|
|
2565
|
-
<div>
|
|
2566
|
-
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2567
|
-
</div>
|
|
2568
|
-
<label class="cv-toggle-label">
|
|
2569
|
-
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2570
|
-
<span class="cv-toggle-slider"></span>
|
|
2571
|
-
</label>
|
|
2572
|
-
</div>
|
|
2573
|
-
</div>
|
|
2753
|
+
const toggleControlsHtml = toggles.map(toggle => `
|
|
2754
|
+
<div class="cv-toggle-card">
|
|
2755
|
+
<div class="cv-toggle-content">
|
|
2756
|
+
<div>
|
|
2757
|
+
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2758
|
+
</div>
|
|
2759
|
+
<label class="cv-toggle-label">
|
|
2760
|
+
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2761
|
+
<span class="cv-toggle-slider"></span>
|
|
2762
|
+
</label>
|
|
2763
|
+
</div>
|
|
2764
|
+
</div>
|
|
2574
2765
|
`).join('');
|
|
2575
2766
|
// Todo: Re-add description if needed (Line 168, add label field to toggles if needed change structure)
|
|
2576
2767
|
// <p class="cv-toggle-description">Show or hide the ${this.formatToggleName(toggle).toLowerCase()} area </p>
|
|
@@ -2578,82 +2769,89 @@ class CustomViewsWidget {
|
|
|
2578
2769
|
const tabGroups = this.core.getTabGroups();
|
|
2579
2770
|
let tabGroupControlsHTML = '';
|
|
2580
2771
|
if (this.options.showTabGroups && tabGroups && tabGroups.length > 0) {
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
<
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
<
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2772
|
+
// Determine initial nav visibility state
|
|
2773
|
+
const initialNavsVisible = TabManager.areNavsVisible(document.body);
|
|
2774
|
+
tabGroupControlsHTML = `
|
|
2775
|
+
<div class="cv-tabgroup-card cv-tabgroup-header">
|
|
2776
|
+
<div class="cv-tabgroup-row">
|
|
2777
|
+
<div class="cv-tabgroup-logo-box" id="cv-nav-icon-box">
|
|
2778
|
+
<div class="cv-nav-icon" id="cv-nav-icon">${initialNavsVisible ? getNavHeadingOnIcon() : getNavHeadingOffIcon()}</div>
|
|
2779
|
+
</div>
|
|
2780
|
+
<div class="cv-tabgroup-info">
|
|
2781
|
+
<div class="cv-tabgroup-title-container">
|
|
2782
|
+
<p class="cv-tabgroup-title">Navigation Headers</p>
|
|
2783
|
+
</div>
|
|
2784
|
+
<p class="cv-tabgroup-description">Show or hide navigation headers</p>
|
|
2785
|
+
</div>
|
|
2786
|
+
<label class="cv-toggle-switch cv-nav-toggle">
|
|
2787
|
+
<input class="cv-nav-pref-input" type="checkbox" ${initialNavsVisible ? 'checked' : ''} aria-label="Show or hide navigation headers" />
|
|
2788
|
+
<span class="cv-switch-bg"></span>
|
|
2789
|
+
<span class="cv-switch-knob"></span>
|
|
2790
|
+
</label>
|
|
2791
|
+
</div>
|
|
2792
|
+
</div>
|
|
2793
|
+
<div class="cv-tab-groups-list">
|
|
2794
|
+
${tabGroups.map(group => `
|
|
2795
|
+
<div class="cv-tabgroup-card cv-tabgroup-item">
|
|
2796
|
+
<label class="cv-tabgroup-label" for="tab-group-${group.id}">
|
|
2797
|
+
${group.label || group.id}
|
|
2798
|
+
</label>
|
|
2799
|
+
<select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
|
|
2800
|
+
${group.tabs.map(tab => `<option value="${tab.id}">${tab.label || tab.id}</option>`).join('')}
|
|
2801
|
+
</select>
|
|
2802
|
+
</div>
|
|
2803
|
+
`).join('')}
|
|
2804
|
+
</div>
|
|
2607
2805
|
`;
|
|
2608
2806
|
}
|
|
2609
|
-
this.modal.innerHTML = `
|
|
2610
|
-
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2611
|
-
<header class="cv-modal-header">
|
|
2612
|
-
<div class="cv-modal-header-content">
|
|
2613
|
-
<div class="cv-modal-icon">
|
|
2614
|
-
${getGearIcon()}
|
|
2615
|
-
</div>
|
|
2616
|
-
<div class="cv-modal-title">${this.options.title}</div>
|
|
2617
|
-
</div>
|
|
2618
|
-
<button class="cv-modal-close" aria-label="Close modal">
|
|
2619
|
-
${getCloseIcon()}
|
|
2620
|
-
</button>
|
|
2621
|
-
</header>
|
|
2622
|
-
<main class="cv-modal-main">
|
|
2623
|
-
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2624
|
-
|
|
2625
|
-
${toggles.length ? `
|
|
2626
|
-
<div class="cv-content-section">
|
|
2627
|
-
<div class="cv-section-heading">Toggles</div>
|
|
2628
|
-
<div class="cv-toggles-container">
|
|
2629
|
-
${toggleControlsHtml}
|
|
2630
|
-
</div>
|
|
2631
|
-
</div>
|
|
2632
|
-
` : ''}
|
|
2633
|
-
|
|
2634
|
-
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2635
|
-
<div class="cv-content-section">
|
|
2636
|
-
<div class="cv-section-heading">Tab Groups</div>
|
|
2637
|
-
<div class="cv-tabgroups-container">
|
|
2638
|
-
${tabGroupControlsHTML}
|
|
2639
|
-
</div>
|
|
2640
|
-
</div>
|
|
2641
|
-
` : ''}
|
|
2642
|
-
</main>
|
|
2643
|
-
|
|
2644
|
-
<footer class="cv-modal-footer">
|
|
2645
|
-
${this.options.showReset ? `
|
|
2646
|
-
<button class="cv-reset-btn">
|
|
2647
|
-
|
|
2648
|
-
<span>Reset to Default</span>
|
|
2649
|
-
</button>
|
|
2650
|
-
` : ''}
|
|
2651
|
-
<button class="cv-share-btn">
|
|
2652
|
-
|
|
2653
|
-
<span
|
|
2654
|
-
</button>
|
|
2655
|
-
</footer>
|
|
2656
|
-
</div>
|
|
2807
|
+
this.modal.innerHTML = `
|
|
2808
|
+
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2809
|
+
<header class="cv-modal-header">
|
|
2810
|
+
<div class="cv-modal-header-content">
|
|
2811
|
+
<div class="cv-modal-icon">
|
|
2812
|
+
${getGearIcon()}
|
|
2813
|
+
</div>
|
|
2814
|
+
<div class="cv-modal-title">${this.options.title}</div>
|
|
2815
|
+
</div>
|
|
2816
|
+
<button class="cv-modal-close" aria-label="Close modal">
|
|
2817
|
+
${getCloseIcon()}
|
|
2818
|
+
</button>
|
|
2819
|
+
</header>
|
|
2820
|
+
<main class="cv-modal-main">
|
|
2821
|
+
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2822
|
+
|
|
2823
|
+
${toggles.length ? `
|
|
2824
|
+
<div class="cv-content-section">
|
|
2825
|
+
<div class="cv-section-heading">Toggles</div>
|
|
2826
|
+
<div class="cv-toggles-container">
|
|
2827
|
+
${toggleControlsHtml}
|
|
2828
|
+
</div>
|
|
2829
|
+
</div>
|
|
2830
|
+
` : ''}
|
|
2831
|
+
|
|
2832
|
+
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2833
|
+
<div class="cv-content-section">
|
|
2834
|
+
<div class="cv-section-heading">Tab Groups</div>
|
|
2835
|
+
<div class="cv-tabgroups-container">
|
|
2836
|
+
${tabGroupControlsHTML}
|
|
2837
|
+
</div>
|
|
2838
|
+
</div>
|
|
2839
|
+
` : ''}
|
|
2840
|
+
</main>
|
|
2841
|
+
|
|
2842
|
+
<footer class="cv-modal-footer">
|
|
2843
|
+
${this.options.showReset ? `
|
|
2844
|
+
<button class="cv-reset-btn">
|
|
2845
|
+
<span class="cv-reset-btn-icon">${getResetIcon()}</span>
|
|
2846
|
+
<span>Reset to Default</span>
|
|
2847
|
+
</button>
|
|
2848
|
+
` : ''}
|
|
2849
|
+
<button class="cv-share-btn">
|
|
2850
|
+
<span>Copy Shareable URL</span>
|
|
2851
|
+
<span class="cv-share-btn-icon">${getCopyIcon()}</span>
|
|
2852
|
+
</button>
|
|
2853
|
+
</footer>
|
|
2854
|
+
</div>
|
|
2657
2855
|
`;
|
|
2658
2856
|
document.body.appendChild(this.modal);
|
|
2659
2857
|
this.attachStateModalEventListeners();
|
|
@@ -2678,14 +2876,35 @@ class CustomViewsWidget {
|
|
|
2678
2876
|
if (copyUrlBtn) {
|
|
2679
2877
|
copyUrlBtn.addEventListener('click', () => {
|
|
2680
2878
|
this.copyShareableURL();
|
|
2879
|
+
// Visual feedback: change icon to tick for 3 seconds
|
|
2880
|
+
const iconContainer = copyUrlBtn.querySelector('.cv-share-btn-icon');
|
|
2881
|
+
if (iconContainer) {
|
|
2882
|
+
const originalIcon = iconContainer.innerHTML;
|
|
2883
|
+
iconContainer.innerHTML = getTickIcon();
|
|
2884
|
+
// Revert after 3 seconds
|
|
2885
|
+
setTimeout(() => {
|
|
2886
|
+
iconContainer.innerHTML = originalIcon;
|
|
2887
|
+
}, 3000);
|
|
2888
|
+
}
|
|
2681
2889
|
});
|
|
2682
2890
|
}
|
|
2683
2891
|
// Reset to default button
|
|
2684
2892
|
const resetBtn = this.modal.querySelector('.cv-reset-btn');
|
|
2685
2893
|
if (resetBtn) {
|
|
2686
2894
|
resetBtn.addEventListener('click', () => {
|
|
2895
|
+
// Add spinning animation to icon
|
|
2896
|
+
const resetIcon = resetBtn.querySelector('.cv-reset-btn-icon');
|
|
2897
|
+
if (resetIcon) {
|
|
2898
|
+
resetIcon.classList.add('cv-spinning');
|
|
2899
|
+
}
|
|
2687
2900
|
this.core.resetToDefault();
|
|
2688
2901
|
this.loadCurrentStateIntoForm();
|
|
2902
|
+
// Remove spinning animation after it completes
|
|
2903
|
+
setTimeout(() => {
|
|
2904
|
+
if (resetIcon) {
|
|
2905
|
+
resetIcon.classList.remove('cv-spinning');
|
|
2906
|
+
}
|
|
2907
|
+
}, 600); // 600ms matches the animation duration
|
|
2689
2908
|
});
|
|
2690
2909
|
}
|
|
2691
2910
|
// Listen to toggle switches
|
|
@@ -2719,14 +2938,34 @@ class CustomViewsWidget {
|
|
|
2719
2938
|
});
|
|
2720
2939
|
// Listener for show/hide tab navs
|
|
2721
2940
|
const tabNavToggle = this.modal.querySelector('.cv-nav-pref-input');
|
|
2722
|
-
|
|
2941
|
+
const navIcon = this.modal?.querySelector('#cv-nav-icon');
|
|
2942
|
+
const navHeaderCard = this.modal?.querySelector('.cv-tabgroup-card.cv-tabgroup-header');
|
|
2943
|
+
if (tabNavToggle && navIcon && navHeaderCard) {
|
|
2944
|
+
// Helper to update icon based on state
|
|
2945
|
+
const updateIcon = (isVisible, isHovering = false) => {
|
|
2946
|
+
if (isHovering) {
|
|
2947
|
+
// On hover, show the transition icon
|
|
2948
|
+
navIcon.innerHTML = getNavDashed();
|
|
2949
|
+
}
|
|
2950
|
+
else {
|
|
2951
|
+
// Normal state, show the status icon (on if visible, off if hidden)
|
|
2952
|
+
navIcon.innerHTML = isVisible ? getNavHeadingOnIcon() : getNavHeadingOffIcon();
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2955
|
+
// Add hover listeners to entire header card
|
|
2956
|
+
navHeaderCard.addEventListener('mouseenter', () => {
|
|
2957
|
+
updateIcon(tabNavToggle.checked, true);
|
|
2958
|
+
});
|
|
2959
|
+
navHeaderCard.addEventListener('mouseleave', () => {
|
|
2960
|
+
updateIcon(tabNavToggle.checked, false);
|
|
2961
|
+
});
|
|
2962
|
+
// Add change listener
|
|
2723
2963
|
tabNavToggle.addEventListener('change', () => {
|
|
2724
2964
|
const visible = tabNavToggle.checked;
|
|
2725
|
-
//
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
catch (e) { /* ignore */ }
|
|
2965
|
+
// Update the icon based on new state (not hovering)
|
|
2966
|
+
updateIcon(visible, false);
|
|
2967
|
+
// Persist preference via core
|
|
2968
|
+
this.core.persistTabNavVisibility(visible);
|
|
2730
2969
|
// Apply to DOM using TabManager via core
|
|
2731
2970
|
try {
|
|
2732
2971
|
const rootEl = document.body;
|
|
@@ -2838,21 +3077,22 @@ class CustomViewsWidget {
|
|
|
2838
3077
|
});
|
|
2839
3078
|
// Load tab nav visibility preference
|
|
2840
3079
|
const navPref = (() => {
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
return TabManager.areNavsVisible(document.body);
|
|
2845
|
-
return raw === 'true';
|
|
2846
|
-
}
|
|
2847
|
-
catch (e) {
|
|
2848
|
-
return TabManager.areNavsVisible(document.body);
|
|
3080
|
+
const persisted = this.core.getPersistedTabNavVisibility();
|
|
3081
|
+
if (persisted !== null) {
|
|
3082
|
+
return persisted;
|
|
2849
3083
|
}
|
|
3084
|
+
return TabManager.areNavsVisible(document.body);
|
|
2850
3085
|
})();
|
|
2851
3086
|
const tabNavToggle = this.modal.querySelector('.cv-nav-pref-input');
|
|
3087
|
+
const navIcon = this.modal?.querySelector('#cv-nav-icon');
|
|
2852
3088
|
if (tabNavToggle) {
|
|
2853
3089
|
tabNavToggle.checked = navPref;
|
|
2854
3090
|
// Ensure UI matches actual visibility
|
|
2855
3091
|
TabManager.setNavsVisibility(document.body, navPref);
|
|
3092
|
+
// Update the nav icon to reflect the current state
|
|
3093
|
+
if (navIcon) {
|
|
3094
|
+
navIcon.innerHTML = navPref ? getNavHeadingOnIcon() : getNavHeadingOffIcon();
|
|
3095
|
+
}
|
|
2856
3096
|
}
|
|
2857
3097
|
}
|
|
2858
3098
|
/**
|
|
@@ -2869,12 +3109,19 @@ class CustomViewsWidget {
|
|
|
2869
3109
|
// Check if welcome has been shown before
|
|
2870
3110
|
const hasSeenWelcome = localStorage.getItem(STORAGE_KEY);
|
|
2871
3111
|
if (!hasSeenWelcome) {
|
|
2872
|
-
//
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
3112
|
+
// Check if this page has any custom views elements
|
|
3113
|
+
const hasCustomViewElements = document.querySelector('cv-tabgroup') !== null ||
|
|
3114
|
+
document.querySelector('cv-tab') !== null ||
|
|
3115
|
+
document.querySelector('cv-toggle') !== null ||
|
|
3116
|
+
document.querySelector('[data-cv-toggle]') !== null;
|
|
3117
|
+
if (hasCustomViewElements) {
|
|
3118
|
+
// Show welcome modal after a short delay to let the page settle
|
|
3119
|
+
setTimeout(() => {
|
|
3120
|
+
this.createWelcomeModal();
|
|
3121
|
+
}, 500);
|
|
3122
|
+
// Mark as shown
|
|
3123
|
+
localStorage.setItem(STORAGE_KEY, 'true');
|
|
3124
|
+
}
|
|
2878
3125
|
}
|
|
2879
3126
|
}
|
|
2880
3127
|
/**
|
|
@@ -2887,29 +3134,29 @@ class CustomViewsWidget {
|
|
|
2887
3134
|
this.modal = document.createElement('div');
|
|
2888
3135
|
this.modal.className = 'cv-widget-modal-overlay cv-welcome-modal-overlay';
|
|
2889
3136
|
this.applyThemeToModal();
|
|
2890
|
-
this.modal.innerHTML = `
|
|
2891
|
-
<div class="cv-widget-modal cv-welcome-modal">
|
|
2892
|
-
<header class="cv-modal-header">
|
|
2893
|
-
<div class="cv-modal-header-content">
|
|
2894
|
-
<div class="cv-modal-icon">
|
|
2895
|
-
${getGearIcon()}
|
|
2896
|
-
</div>
|
|
2897
|
-
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
2898
|
-
</div>
|
|
2899
|
-
</header>
|
|
2900
|
-
<div class="cv-modal-main">
|
|
2901
|
-
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
2902
|
-
|
|
2903
|
-
<div class="cv-welcome-widget-preview">
|
|
2904
|
-
<div class="cv-welcome-widget-icon">
|
|
2905
|
-
${getGearIcon()}
|
|
2906
|
-
</div>
|
|
2907
|
-
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
2908
|
-
</div>
|
|
2909
|
-
|
|
2910
|
-
<button class="cv-welcome-got-it">Got it!</button>
|
|
2911
|
-
</div>
|
|
2912
|
-
</div>
|
|
3137
|
+
this.modal.innerHTML = `
|
|
3138
|
+
<div class="cv-widget-modal cv-welcome-modal">
|
|
3139
|
+
<header class="cv-modal-header">
|
|
3140
|
+
<div class="cv-modal-header-content">
|
|
3141
|
+
<div class="cv-modal-icon">
|
|
3142
|
+
${getGearIcon()}
|
|
3143
|
+
</div>
|
|
3144
|
+
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
3145
|
+
</div>
|
|
3146
|
+
</header>
|
|
3147
|
+
<div class="cv-modal-main">
|
|
3148
|
+
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
3149
|
+
|
|
3150
|
+
<div class="cv-welcome-widget-preview">
|
|
3151
|
+
<div class="cv-welcome-widget-icon">
|
|
3152
|
+
${getGearIcon()}
|
|
3153
|
+
</div>
|
|
3154
|
+
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
3155
|
+
</div>
|
|
3156
|
+
|
|
3157
|
+
<button class="cv-welcome-got-it">Got it!</button>
|
|
3158
|
+
</div>
|
|
3159
|
+
</div>
|
|
2913
3160
|
`;
|
|
2914
3161
|
document.body.appendChild(this.modal);
|
|
2915
3162
|
this.attachWelcomeModalEventListeners();
|