ublo-lib 1.38.11 → 1.38.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/future/components/msem-preset-editor/components/form.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/form.js +1 -1
- package/es/future/components/msem-preset-editor/components/form.module.css +59 -7
- package/es/future/components/msem-preset-editor/components/widget-list-item.js +4 -4
- package/es/future/components/msem-preset-editor/components/widget-list-item.module.css +32 -15
- package/es/future/components/msem-preset-editor/components/widget-list.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/widget-list.js +4 -1
- package/es/future/components/msem-preset-editor/components/widget-list.module.css +5 -5
- package/es/future/components/msem-preset-editor/editors/elloha.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/editors/elloha.js +4 -2
- package/es/future/components/msem-preset-editor/msem-preset-editor.js +1 -2
- package/es/future/components/msem-preset-editor/msem-preset-editor.module.css +9 -0
- package/es/future/components/msem-preset-linker/msem-logo.d.ts +6 -0
- package/es/future/components/msem-preset-linker/msem-logo.d.ts.map +1 -0
- package/es/future/components/msem-preset-linker/msem-logo.js +4 -0
- package/es/future/components/msem-preset-linker/msem-preset-linker.d.ts.map +1 -1
- package/es/future/components/msem-preset-linker/msem-preset-linker.js +16 -10
- package/es/future/components/msem-preset-linker/msem-preset-linker.module.css +124 -0
- package/package.json +1 -1
- package/es/future/components/msem-preset-editor/editor-dialog.d.ts +0 -18
- package/es/future/components/msem-preset-editor/editor-dialog.d.ts.map +0 -1
- package/es/future/components/msem-preset-editor/editor-dialog.js +0 -14
- package/es/future/components/msem-preset-editor/editor-dialog.module.css +0 -72
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,QAAQ,GACT;;;;;;CAAA,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,QAAQ,GACT;;;;;;CAAA,2CA0CA"}
|
|
@@ -5,5 +5,5 @@ import * as Icons from "dt-design-system/es/icons";
|
|
|
5
5
|
import css from "./form.module.css";
|
|
6
6
|
export default function Form({ title, width, preset, buttonsActions, children, }) {
|
|
7
7
|
const { testPreset, cancelPreset, confirmPreset } = buttonsActions;
|
|
8
|
-
return (_jsxs("div", { className: css.form, style: { width }, children: [_jsxs("div", { className: css.title, children: [_jsx(Icons.Tune, {}), title] }), _jsx("div", { className: css.inner, children: children }), _jsxs("div", { className: css.buttons, children: [_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(Icons.OpenInBrowser, {}) }) }), _jsx(Button, { type: "submit", variant: "secondary", className: css.button, onClick: cancelPreset, children: "Annuler" }), _jsx(Button, { type: "submit", variant: "primary", className: css.button, onClick: confirmPreset, disabled: !confirmPreset, children: "Confirmer" })] })] }));
|
|
8
|
+
return (_jsxs("div", { className: css.form, style: { width }, children: [_jsxs("div", { className: css.title, children: [_jsx(Icons.Tune, {}), title] }), _jsx("div", { className: css.content, children: _jsx("div", { className: css.inner, children: children }) }), _jsxs("div", { className: css.buttons, children: [_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(Icons.OpenInBrowser, {}) }) }), _jsx(Button, { type: "submit", variant: "secondary", className: css.button, onClick: cancelPreset, children: "Annuler" }), _jsx(Button, { type: "submit", variant: "primary", className: css.button, onClick: confirmPreset, disabled: !confirmPreset, children: "Confirmer" })] })] }));
|
|
9
9
|
}
|
|
@@ -32,14 +32,57 @@
|
|
|
32
32
|
monospace
|
|
33
33
|
);
|
|
34
34
|
|
|
35
|
+
--ds-button-padding: 10px;
|
|
36
|
+
|
|
37
|
+
--ds-grey-800: #000;
|
|
38
|
+
--ds-grey-700: #262626;
|
|
39
|
+
--ds-grey-600: var(--ublo-grey-600, #1b1b1b);
|
|
40
|
+
--ds-grey-500: var(--ublo-grey-500, #383838);
|
|
41
|
+
--ds-grey-400: var(--ublo-grey-400, #7c7b7b);
|
|
42
|
+
--ds-grey-300: var(--ublo-grey-300, #d3d3d3);
|
|
43
|
+
--ds-grey-200: var(--ublo-grey-200, #ededed);
|
|
44
|
+
--ds-grey-100: var(--ublo-grey-100, #f5f5f5);
|
|
45
|
+
--ds-grey-000: var(--ublo-grey-000, #ffffff);
|
|
46
|
+
|
|
47
|
+
--ds-grey-gradient: linear-gradient(
|
|
48
|
+
100deg,
|
|
49
|
+
var(--ds-grey-200, #ededed) 0%,
|
|
50
|
+
var(--ds-grey-300, #d7d7d7) 100%
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
--ds-blue-600: #002299;
|
|
54
|
+
--ds-blue-500: var(--ublo-blue-500, #004cc2);
|
|
55
|
+
--ds-blue-400: var(--ublo-blue-400, #4177f6);
|
|
56
|
+
--ds-blue-300: var(--ublo-blue-300, #adc5ea);
|
|
57
|
+
--ds-blue-200: var(--ublo-blue-200, #d4e4fc);
|
|
58
|
+
--ds-blue-100: var(--ublo-blue-100, #e8f0fc);
|
|
59
|
+
--ds-blue-000: #e8f0fc;
|
|
60
|
+
|
|
61
|
+
--ds-blue-gradient: var(
|
|
62
|
+
--ublo-blue-gradient,
|
|
63
|
+
linear-gradient(
|
|
64
|
+
175deg,
|
|
65
|
+
var(--ublo-blue-400, #4177f6),
|
|
66
|
+
var(--ublo-blue-500, #004cc2)
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
|
|
35
70
|
--ds-primary: var(--ublo-primary-color, #073ff8);
|
|
36
71
|
--ds-secondary: var(--ublo-secondary-color, #4177f6);
|
|
37
72
|
|
|
73
|
+
--ds-radius-100: var(--ublo-radius-100, 3px);
|
|
74
|
+
--ds-radius-200: var(--ublo-radius-200, 8px);
|
|
75
|
+
--ds-radius-300: var(--ublo-radius-300, 14px);
|
|
76
|
+
--ds-radius-400: var(--ublo-radius-400, 20px);
|
|
77
|
+
|
|
78
|
+
--ds-shadow-100: var(--ublo-shadow-100, 0 5px 10px rgba(0, 0, 0, 0.12));
|
|
79
|
+
--ds-shadow-200: var(--ublo-shadow-100, 0 5px 10px rgba(0, 0, 0, 0.12));
|
|
80
|
+
--ds-shadow-300: var(--ublo-shadow-300, 0 5px 10px rgba(0, 0, 0, 0.24));
|
|
81
|
+
--ds-shadow-400: var(--ublo-shadow-300, 0 5px 10px rgba(0, 0, 0, 0.24));
|
|
82
|
+
|
|
38
83
|
max-width: 100%;
|
|
39
84
|
display: flex;
|
|
40
85
|
flex-direction: column;
|
|
41
|
-
gap: 12px;
|
|
42
|
-
padding: 20px;
|
|
43
86
|
font-family: var(--ds-sans-serif-font);
|
|
44
87
|
}
|
|
45
88
|
|
|
@@ -50,11 +93,11 @@
|
|
|
50
93
|
.title {
|
|
51
94
|
display: flex;
|
|
52
95
|
align-items: center;
|
|
53
|
-
|
|
54
|
-
gap:
|
|
55
|
-
font-size:
|
|
96
|
+
padding: 14px 70px 14px 10px;
|
|
97
|
+
gap: 10px;
|
|
98
|
+
font-size: 19px;
|
|
99
|
+
line-height: 1;
|
|
56
100
|
font-weight: 700;
|
|
57
|
-
text-align: center;
|
|
58
101
|
}
|
|
59
102
|
|
|
60
103
|
.title > svg {
|
|
@@ -63,16 +106,25 @@
|
|
|
63
106
|
fill: currentColor;
|
|
64
107
|
}
|
|
65
108
|
|
|
109
|
+
.content {
|
|
110
|
+
padding: 10px;
|
|
111
|
+
background-color: var(--ublo-grey-100, #f5f5f5);
|
|
112
|
+
}
|
|
113
|
+
|
|
66
114
|
.inner {
|
|
67
115
|
display: flex;
|
|
68
116
|
flex-direction: column;
|
|
69
117
|
gap: 8px;
|
|
118
|
+
padding: 10px;
|
|
119
|
+
background-color: var(--ublo-grey-000, #ffffff);
|
|
120
|
+
border-radius: var(--ublo-radius-200, 8px);
|
|
70
121
|
}
|
|
71
122
|
|
|
72
123
|
.buttons {
|
|
73
124
|
display: flex;
|
|
74
125
|
justify-content: flex-end;
|
|
75
|
-
gap:
|
|
126
|
+
gap: 8px;
|
|
127
|
+
padding: 10px;
|
|
76
128
|
}
|
|
77
129
|
|
|
78
130
|
.testButton {
|
|
@@ -33,7 +33,7 @@ export default function WidgetListItem({ item, preset, updatePreset, removePrese
|
|
|
33
33
|
updatePreset(item);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
return (_jsxs("div", { className: classes, children: [_jsxs(Button, { variant: "transparent", className: css.button, onClick: handleItemClick, children: [_jsx("div", { className: css.logo, children: _jsx("img", { src: logo, alt: name }) }), _jsx("div", { className: css.name, children: name })] }), (hasSubs || showEditButton || showRemoveButton) && (_jsxs("div", { className: css.actions, children: [showEditButton && (_jsx(Tooltip, { content: "Modifier", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(Icons.Edit, {}) }) })), showRemoveButton && (_jsx(Tooltip, { content: "Supprimer", children: _jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, compact: true, children: _jsx(Icons.Trash, {}) }) })), hasSubs && (_jsx(Tooltip, { content: "Afficher les
|
|
36
|
+
return (_jsxs("div", { className: classes, children: [_jsxs(Button, { variant: "transparent", className: css.button, onClick: handleItemClick, children: [_jsx("div", { className: css.logo, children: _jsx("img", { src: logo, alt: name }) }), _jsx("div", { className: css.name, children: name })] }), (hasSubs || showEditButton || showRemoveButton) && (_jsxs("div", { className: css.actions, children: [showEditButton && (_jsx(Tooltip, { content: "Modifier", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(Icons.Edit, {}) }) })), showRemoveButton && (_jsx(Tooltip, { content: "Supprimer", children: _jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, compact: true, children: _jsx(Icons.Trash, {}) }) })), hasSubs && (_jsx(Tooltip, { content: "Afficher les marchands", children: _jsx(Button, { variant: "secondary", className: css.action, onClick: toggleItem, compact: true, children: _jsx(ToggleIcon, {}) }) }))] })), opened && subs && (_jsx("div", { className: css.list, children: subs.map((sub) => {
|
|
37
37
|
const isSelected = preset?.name === sub.name;
|
|
38
38
|
const allowedWidgets = [
|
|
39
39
|
"otherProducts",
|
|
@@ -42,14 +42,14 @@ export default function WidgetListItem({ item, preset, updatePreset, removePrese
|
|
|
42
42
|
const allowAdvancedPresets = allowedWidgets.includes(sub.widget);
|
|
43
43
|
const showEditButton = isSelected && allowAdvancedPresets;
|
|
44
44
|
const showButtons = showEditButton || isSelected;
|
|
45
|
-
const classes = classNames(css.
|
|
46
|
-
[css.
|
|
45
|
+
const classes = classNames(css.sub, {
|
|
46
|
+
[css.subSelected]: isSelected,
|
|
47
47
|
});
|
|
48
48
|
const handleSubClick = () => {
|
|
49
49
|
if (!isSelected) {
|
|
50
50
|
updatePreset(item, sub);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
return (_jsxs("div", { className:
|
|
53
|
+
return (_jsxs("div", { className: classes, children: [_jsx(Button, { variant: "transparent", className: css.subButton, onClick: handleSubClick, children: sub.name }), showButtons && (_jsxs("div", { className: css.subActions, children: [showEditButton && (_jsx(Tooltip, { content: "Affiner le preset", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(Icons.Edit, {}) }) })), isSelected && (_jsx(Tooltip, { content: "Supprimer le preset", children: _jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, compact: true, children: _jsx(Icons.Trash, {}) }) }))] }))] }, sub.name));
|
|
54
54
|
}) }))] }));
|
|
55
55
|
}
|
|
@@ -11,14 +11,20 @@
|
|
|
11
11
|
font-weight: 400;
|
|
12
12
|
text-align: left;
|
|
13
13
|
padding-right: 100px;
|
|
14
|
-
background-color: var(--ublo-grey-
|
|
14
|
+
background-color: var(--ublo-grey-000, #ffffff);
|
|
15
15
|
border-radius: var(--ublo-radius-200, 8px);
|
|
16
|
+
transition: 160ms background-color
|
|
17
|
+
var(--ublo-transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
.selected .button
|
|
20
|
+
.selected .button,
|
|
21
|
+
.selected .button:hover {
|
|
19
22
|
color: var(--ublo-secondary-color, #4177f6);
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
background-color: var(--ublo-grey-200, #ededed);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.item:not(.selected) .button:hover {
|
|
27
|
+
background-color: var(--ublo-grey-100, #f5f5f5);
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
.opened .button {
|
|
@@ -32,7 +38,14 @@
|
|
|
32
38
|
display: flex;
|
|
33
39
|
align-items: center;
|
|
34
40
|
justify-content: center;
|
|
35
|
-
background
|
|
41
|
+
background: var(
|
|
42
|
+
--ublo-blue-gradient,
|
|
43
|
+
linear-gradient(
|
|
44
|
+
175deg,
|
|
45
|
+
var(--ublo-blue-400, #4177f6),
|
|
46
|
+
var(--ublo-blue-500, #004cc2)
|
|
47
|
+
)
|
|
48
|
+
);
|
|
36
49
|
border-radius: var(--ublo-radius-200, 8px);
|
|
37
50
|
}
|
|
38
51
|
|
|
@@ -52,7 +65,7 @@
|
|
|
52
65
|
|
|
53
66
|
.actions {
|
|
54
67
|
position: absolute;
|
|
55
|
-
top:
|
|
68
|
+
top: 16px;
|
|
56
69
|
right: 12px;
|
|
57
70
|
display: flex;
|
|
58
71
|
gap: 4px;
|
|
@@ -63,20 +76,21 @@
|
|
|
63
76
|
}
|
|
64
77
|
|
|
65
78
|
.list {
|
|
66
|
-
width: calc(100% -
|
|
79
|
+
width: calc(100% - 26px);
|
|
67
80
|
max-height: 140px;
|
|
68
81
|
display: flex;
|
|
69
82
|
flex-direction: column;
|
|
70
83
|
margin-left: auto;
|
|
71
|
-
padding: 6px;
|
|
72
|
-
border-
|
|
84
|
+
padding: 0 6px;
|
|
85
|
+
border-left: 3px solid var(--ublo-grey-200, #ededed);
|
|
73
86
|
overflow: auto;
|
|
74
87
|
overscroll-behavior: contain;
|
|
88
|
+
scrollbar-width: thin;
|
|
75
89
|
background: linear-gradient(
|
|
76
|
-
var(--ublo-grey-
|
|
90
|
+
var(--ublo-grey-000, #ffffff) 30%,
|
|
77
91
|
hsla(0, 0%, 100%, 0)
|
|
78
92
|
),
|
|
79
|
-
linear-gradient(hsla(0, 0%, 100%, 0), var(--ublo-grey-
|
|
93
|
+
linear-gradient(hsla(0, 0%, 100%, 0), var(--ublo-grey-000, #ffffff) 70%) 0
|
|
80
94
|
100%,
|
|
81
95
|
radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), transparent),
|
|
82
96
|
radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), transparent)
|
|
@@ -84,7 +98,7 @@
|
|
|
84
98
|
background-repeat: no-repeat;
|
|
85
99
|
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
86
100
|
background-attachment: local, local, scroll, scroll;
|
|
87
|
-
background-color: var(--ublo-grey-
|
|
101
|
+
background-color: var(--ublo-grey-000, #ffffff);
|
|
88
102
|
}
|
|
89
103
|
|
|
90
104
|
.sub {
|
|
@@ -99,12 +113,15 @@
|
|
|
99
113
|
text-align: left;
|
|
100
114
|
}
|
|
101
115
|
|
|
102
|
-
.
|
|
116
|
+
.subSelected .subButton,
|
|
117
|
+
.subSelected .subButton:hover {
|
|
103
118
|
color: var(--ublo-secondary-color, #4177f6);
|
|
104
|
-
|
|
105
|
-
background-color: var(--ublo-grey-300, #d3d3d3);
|
|
119
|
+
background-color: var(--ublo-grey-200, #ededed);
|
|
106
120
|
}
|
|
107
121
|
|
|
122
|
+
.item:not(.subSelected) .subButton:hover {
|
|
123
|
+
background-color: var(--ublo-grey-100, #f5f5f5);
|
|
124
|
+
}
|
|
108
125
|
.subActions {
|
|
109
126
|
position: absolute;
|
|
110
127
|
top: 50%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-list.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/widget-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9D,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,eAAe,EACf,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,mBAAmB,GACpB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"widget-list.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/widget-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9D,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,eAAe,EACf,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,mBAAmB,GACpB,EAAE,KAAK,2CAqDP"}
|
|
@@ -28,7 +28,10 @@ export default function WidgetList({ lang, msemServicesUrl, channel, resort, fac
|
|
|
28
28
|
};
|
|
29
29
|
runEffect();
|
|
30
30
|
}, [channel, facet, lang, msemServicesUrl, resort, setError]);
|
|
31
|
-
return (_jsxs("div", { className: css.list, children: [loading &&
|
|
31
|
+
return (_jsxs("div", { className: css.list, children: [loading &&
|
|
32
|
+
[...new Array(3)].map((_, i) => {
|
|
33
|
+
return _jsx(Loader, { className: css.loader, variant: "overlay" }, i);
|
|
34
|
+
}), offers?.length === 0 && !loading && (_jsx("div", { className: css.empty, children: "Aucun widget disponible" })), offers?.map((offer, i) => {
|
|
32
35
|
return (_jsx(WidgetListItem, { item: offer, preset: preset, updatePreset: updatePreset, removePreset: removePreset, setShowPresetDialog: setShowPresetDialog }, i));
|
|
33
36
|
})] }));
|
|
34
37
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
gap: 4px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.loader {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
div.loader {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 56px;
|
|
11
|
+
border-radius: var(--ublo-radius-200, 8px);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.empty {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elloha.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/editors/elloha.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,KAAK,GAAG;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC5E,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAWF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,eAAe,EACf,MAAM,EACN,SAAS,EACT,IAAI,EACJ,mBAAmB,EACnB,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"elloha.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/editors/elloha.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,KAAK,GAAG;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC5E,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAWF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,eAAe,EACf,MAAM,EACN,SAAS,EACT,IAAI,EACJ,mBAAmB,EACnB,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,2CAuHP"}
|
|
@@ -32,7 +32,9 @@ export default function Elloha({ msemServicesUrl, preset, setPreset, stay, setSh
|
|
|
32
32
|
try {
|
|
33
33
|
setLoading(true);
|
|
34
34
|
const { kinds } = await API.getEllohaGroups(msemServicesUrl, merchant, stay.from);
|
|
35
|
-
const allGroups = kinds
|
|
35
|
+
const allGroups = kinds
|
|
36
|
+
.map((k) => k.group)
|
|
37
|
+
.filter(Boolean);
|
|
36
38
|
const groups = [...new Set(allGroups)];
|
|
37
39
|
setGroupNames(groups);
|
|
38
40
|
}
|
|
@@ -69,7 +71,7 @@ export default function Elloha({ msemServicesUrl, preset, setPreset, stay, setSh
|
|
|
69
71
|
: confirmPreset,
|
|
70
72
|
}, children: [!stayIsUndefined && (_jsx(MultipleSelect, { label: "Groupes", options: groupNames, values: selectedGroups, onChange: setSelectedGroups, placeholder: "S\u00E9lectionnez un ou plusieurs groupes", loading: loading, disabled: groupNames.length === 0, error: !loading &&
|
|
71
73
|
groupNames.length === 0 &&
|
|
72
|
-
"Aucun groupe disponible à ces dates" })), stayIsUndefined && (_jsxs(_Fragment, { children: [_jsx("div", { className: css.error, children: "Vous devez renseigner des dates de s\u00E9jour pour afficher dynamiquement les groupes" }), _jsx(Input, { label: "Groupe", placeholder: "", value: selectedGroups.join(";"), onValueChange: manualSelectedGroupUpdate }), _jsx("div", { className: css.helper, children: "Vous pouvez manuellement renseigner un ou plusieurs groupe(s) (les s\
|
|
74
|
+
"Aucun groupe disponible à ces dates" })), stayIsUndefined && (_jsxs(_Fragment, { children: [_jsx("div", { className: css.error, children: "Vous devez renseigner des dates de s\u00E9jour pour afficher dynamiquement les groupes" }), _jsx(Input, { label: "Groupe", placeholder: "", value: selectedGroups.join(";"), onValueChange: manualSelectedGroupUpdate }), _jsx("div", { className: css.helper, children: "Vous pouvez manuellement renseigner un ou plusieurs groupe(s) (les s\u00E9parer par un \";\")" })] }))] }));
|
|
73
75
|
}
|
|
74
76
|
function getDefaultData(preset) {
|
|
75
77
|
if (!preset?.presets)
|
|
@@ -25,7 +25,6 @@ export default function MseMPresetEditor({ lang, channel, resort, msemServicesUr
|
|
|
25
25
|
const [showPresetDialog, setShowPresetDialog] = React.useState(false);
|
|
26
26
|
const [presetUrl, setPresetUrl] = React.useState("");
|
|
27
27
|
const showWidgetList = selectedResort && facet !== "";
|
|
28
|
-
console.log("msem-preset-editor", preset);
|
|
29
28
|
const updatePreset = React.useCallback((item, subPreset) => {
|
|
30
29
|
let { name, options: itemOptions, presets: itemPresets } = item;
|
|
31
30
|
const widget = subPreset?.widget || item.widget;
|
|
@@ -112,5 +111,5 @@ export default function MseMPresetEditor({ lang, channel, resort, msemServicesUr
|
|
|
112
111
|
});
|
|
113
112
|
return (_jsxs("div", { className: css.editor, children: [resorts && (_jsx(ResortSelector, { resorts: resorts, resort: selectedResort, setResort: setSelectedResort, removePreset: removePreset })), _jsx(FacetSelector, { facet: facet, setFacet: setFacet, setPreset: setPreset }), _jsx(StayPicker, { stay: stay, setStay: setStay, setPreset: setPreset }), showWidgetList && (_jsx(WidgetList, { lang: lang, msemServicesUrl: msemServicesUrl, resort: selectedResort, channel: channel, facet: facet, preset: preset, updatePreset: updatePreset, removePreset: removePreset, error: error, setError: setError, setShowPresetDialog: setShowPresetDialog })), error && _jsx("div", { className: css.error, children: error }), _jsxs("div", { className: footerClasses, children: [showPresetUrl ? (_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(Icons.OpenInBrowser, {}) }) })) : (_jsxs(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: [_jsx(Icons.OpenInBrowser, {}), "Tester dans le widget MseM"] })), showPresetUrl && (_jsx(Input, { type: "text", className: css.url, value: presetUrl, onClick: copyUrl, placeholder: !preset
|
|
114
113
|
? "Aucun preset sélectionné"
|
|
115
|
-
: "Preset incompatible au format URL", readOnly: true }))] }), _jsx(Dialog, { isOpened: showPresetDialog, close: () => setShowPresetDialog(false), showAsModal: false, children: showPresetDialog && (_jsx(CurrentEditor, { msemServicesUrl: msemServicesUrl, stay: stay, facet: facet, preset: preset, setPreset: setPreset, setShowPresetDialog: setShowPresetDialog, testPreset: testPreset, onChange: onChange, urlOverride: urlOverride })) })] }));
|
|
114
|
+
: "Preset incompatible au format URL", readOnly: true }))] }), _jsx(Dialog, { isOpened: showPresetDialog, close: () => setShowPresetDialog(false), closeButtonVariant: "transparent", showAsModal: false, children: showPresetDialog && (_jsx(CurrentEditor, { msemServicesUrl: msemServicesUrl, stay: stay, facet: facet, preset: preset, setPreset: setPreset, setShowPresetDialog: setShowPresetDialog, testPreset: testPreset, onChange: onChange, urlOverride: urlOverride })) })] }));
|
|
116
115
|
}
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: 12px;
|
|
6
6
|
margin: 0 auto;
|
|
7
|
+
padding: 10px;
|
|
8
|
+
background-color: var(--ublo-grey-000, #ffffff);
|
|
9
|
+
border-radius: var(--ublo-radius-200, 8px);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.editor *,
|
|
13
|
+
.editor *::before,
|
|
14
|
+
.editor *::after {
|
|
15
|
+
box-sizing: border-box;
|
|
7
16
|
}
|
|
8
17
|
|
|
9
18
|
.editor * {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msem-logo.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-logo.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,2CAgCpD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export default function MseMLogo({ className }) {
|
|
3
|
+
return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [_jsx("path", { d: "M21.44 9.37c.14.07.2.19.27.3.05.08.1.16.16.21.17.14.27.3.29.51v.11c0 .08-.03.17.06.24.02.01.03.04.03.07v.49l.02.37v.08c-.14.12-.05.27-.08.4-.03.12-.1.22-.12.33-.04.22-.28.3-.34.51-.05.2-.2.32-.35.44-.16.13-.33.24-.5.36-.1.07-.18.15-.29.2-.09.04-.2.05-.29.08-.14.04-.28.1-.43.12-.15.03-.3.03-.44.05l-.18.05v.02l-.44-.1c-.11-.02-.23-.03-.35-.07-.03 0-.06-.06-.1-.09l-.32-.17-.15-.12-.02-.02c-.11 0-.15-.13-.23-.15-.14-.03-.21-.14-.27-.23-.07-.1-.2-.18-.2-.33 0-.03-.02-.05-.05-.07a.4.4 0 0 1-.11-.22.93.93 0 0 0-.18-.34c-.07-.1-.08-.2-.07-.3l.01-.39c0-.2-.03-.4-.02-.6a5.13 5.13 0 0 1 .4-1.15c.13-.22.3-.4.45-.6.17-.22.42-.33.6-.51.08-.07.21-.1.32-.14l.15-.07c.17-.08.35-.1.53-.1.09 0 .18.02.26 0 .19-.02.35.03.5.15l.06.02c.27.01.52.1.74.25l.03.01c.19-.03.3.13.44.2.09.04.13.16.21.2Zm-.82-1.03c-.18-.08-.34-.22-.55-.2l-.15-.01c-.15-.03-.27-.13-.44-.1-.15.03-.3.02-.45.05-.2.03-.4.08-.58.14-.17.04-.33.08-.49.16-.14.07-.27.17-.4.27-.08.05-.14.13-.2.19-.06.05-.14.09-.18.15l-.28.46-.1.11-.17.33c-.09.17-.18.33-.25.5-.05.12-.02.28-.08.39-.14.26-.04.54-.08.8 0 .04 0 .1-.03.13-.1.11-.03.24 0 .35.03.15.1.29.16.43l.16.45.04.04c.1.04.11.14.13.24l.04.1.24.38c.02.04.04.09.07.12l.46.35.4.22.27.16.33.16c.08-.08.16-.05.24 0 .08.05.2.02.27.12h.02c.1-.05.17.02.26.04.08.03.18.05.24.02.09-.05.18-.05.27-.06a.4.4 0 0 0 .13-.02l.4-.17.18-.09c.18-.04.36-.07.5-.22a.13.13 0 0 1 .07-.04c.09 0 .15-.01.18-.12.01-.05.1-.08.14-.12.08-.05.15-.1.22-.17l.42-.4c-.02-.12.07-.2.17-.27a.8.8 0 0 0 .17-.24c.05-.09.07-.2.14-.29.07-.1.12-.19.12-.3 0-.05 0-.1.02-.13l.14-.5v-.08c0-.23-.03-.46 0-.69.02-.18-.1-.3-.13-.45l-.08-.23a3.79 3.79 0 0 0-.13-.42.74.74 0 0 0-.19-.27c-.1-.11-.19-.25-.28-.38l-.06-.08c-.05-.06-.1-.12-.17-.17-.05-.05-.12-.09-.18-.13-.13-.09-.26-.2-.4-.27-.18-.1-.37-.15-.55-.24Z", fill: "#E30202" }), _jsx("path", { d: "M20.53 12.25c-.01.03-.06.07-.05.1.02.13-.07.18-.15.23-.17.11-.36.2-.57.22-.1 0-.18.06-.28.06-.07 0-.15-.04-.22-.06l-.19-.03c-.05 0-.12 0-.15-.03-.15-.17-.36-.3-.43-.53a.69.69 0 0 1-.04-.2c-.01-.29 0-.58-.02-.87 0-.08 0-.13.07-.18.05-.05.07-.14.1-.21.15-.26.34-.5.61-.63.13-.06.29-.03.43.04.23.1.43.26.57.47.1.15.22.26.3.4l.04.15h.01c.02.07.05.13.05.19l.04.48h.01l-.13.4Zm-.02-2.18-.05-.08-.05-.06-.37-.17c-.05-.02-.09-.06-.14-.07-.14-.03-.28-.08-.43-.03l-.1-.03c-.12-.04-.23-.09-.33.02-.02.03-.07.02-.1.04-.12.05-.24.1-.35.17-.08.05-.15.13-.22.2-.04.03-.08.06-.1.1-.1.12-.18.24-.26.37a4.76 4.76 0 0 0-.24.68.69.69 0 0 0-.01.23c0 .1.05.18.06.27v.24c0 .27.2.45.33.67.08.14.24.24.36.36.3.26.63.4 1.04.38l.28-.01c.1-.02.18-.06.26-.09l.02.05c.1-.05.22-.09.31-.15.2-.12.4-.23.5-.46l.17-.45c.03-.1 0-.2.08-.3.02-.01.02-.06.01-.1l-.02-.25c-.02-.21.04-.43-.07-.62l-.12-.24c-.12-.25-.24-.5-.46-.67ZM2.77 9.17c.14-.07.25-.23.44-.2h.03c.22-.16.47-.25.74-.26l.06-.02a.67.67 0 0 1 .5-.14h.26c.18 0 .36 0 .53.1a3 3 0 0 0 .15.06c.1.05.24.07.31.14.2.18.44.3.61.51.16.2.32.38.44.6a5.15 5.15 0 0 1 .4 1.14c.02.2 0 .4-.01.61l.01.4c0 .1 0 .2-.07.29a.92.92 0 0 0-.18.34.4.4 0 0 1-.11.22c-.03.02-.06.04-.06.07 0 .15-.12.23-.2.33-.05.09-.12.2-.26.23-.08.02-.12.15-.23.15l-.02.02-.15.12-.33.17c-.03.03-.06.08-.1.1l-.34.07-.43.09v-.02l-.19-.05c-.15-.02-.3-.02-.44-.05-.15-.03-.29-.08-.43-.12-.1-.03-.2-.04-.3-.08-.1-.05-.19-.13-.29-.2l-.5-.36c-.14-.12-.29-.25-.34-.44-.06-.2-.3-.29-.34-.51-.02-.11-.09-.21-.12-.32-.03-.14.06-.3-.08-.4-.02-.02 0-.06 0-.09l.02-.37v-.5c0-.02.01-.05.03-.06.09-.07.06-.16.06-.24v-.1a.71.71 0 0 1 .29-.52c.06-.05.11-.13.16-.2.08-.12.13-.24.27-.3.08-.05.12-.17.2-.21Zm.07-.6c-.15.08-.28.2-.41.28-.06.04-.13.08-.18.13-.06.05-.12.1-.17.17l-.06.08c-.09.13-.17.27-.28.38a.75.75 0 0 0-.2.27l-.12.42c-.02.08-.06.16-.07.23-.04.15-.16.27-.14.45.03.23 0 .46 0 .7v.06l.14.5.02.13c0 .12.05.22.12.31.07.09.09.2.14.3.04.08.1.17.17.23.1.08.2.15.17.27l.42.4.22.17c.05.04.13.07.14.12.03.1.1.11.18.12.03 0 .06.02.08.04.13.15.3.18.49.22.06.02.12.07.18.1l.4.16a.4.4 0 0 0 .13.02c.1 0 .18.01.27.06.06.03.16 0 .24-.02.09-.02.16-.1.26-.04H5c.07-.1.19-.07.27-.12.08-.05.16-.08.24 0l.33-.16.27-.16.4-.22.46-.35c.03-.03.05-.08.07-.12l.24-.38a.4.4 0 0 0 .04-.1c.02-.1.02-.2.13-.24.02 0 .04-.03.04-.04l.16-.45c.05-.14.13-.28.17-.43.02-.11.08-.24-.01-.35-.02-.03-.02-.09-.03-.13-.04-.26.06-.54-.08-.8-.06-.11-.03-.27-.08-.39-.07-.17-.16-.33-.25-.5l-.17-.33-.1-.11-.28-.46c-.04-.06-.12-.1-.17-.15l-.2-.2c-.14-.1-.27-.2-.41-.26a6.7 6.7 0 0 0-1.06-.3c-.16-.03-.31-.02-.46-.05-.17-.03-.3.07-.44.1-.05 0-.1.02-.15.01-.21-.02-.37.12-.55.2-.18.1-.37.15-.54.24", fill: "#E30202" }), _jsx("path", { d: "M3.34 11.86v-.01l.05-.48c0-.06.03-.12.05-.18h.01l.04-.15c.08-.15.2-.26.3-.4.14-.22.34-.38.57-.48.14-.07.3-.1.43-.04.27.13.45.37.6.63.04.07.06.16.11.2.06.06.07.11.07.19l-.02.88a.7.7 0 0 1-.04.19c-.07.23-.28.36-.43.53-.03.03-.1.02-.15.03l-.19.03c-.07.02-.15.06-.22.06-.1 0-.19-.05-.28-.06-.21-.03-.4-.1-.57-.22-.08-.05-.17-.1-.15-.23 0-.03-.04-.07-.05-.1l-.13-.4Zm-.31-1.12-.12.24c-.11.2-.05.41-.07.62l-.02.25v.1c.09.1.06.2.1.3.04.15.1.3.17.45.1.23.3.34.49.46l.3.15.03-.05c.08.03.17.07.26.09.1.02.19 0 .28.01.4.03.75-.12 1.04-.38.12-.12.28-.22.36-.36.13-.22.32-.4.33-.67v-.24c.01-.1.05-.18.06-.27.01-.07 0-.15-.01-.23a4.8 4.8 0 0 0-.24-.68 5.76 5.76 0 0 0-.25-.37l-.11-.1c-.07-.07-.14-.15-.22-.2-.1-.07-.23-.12-.34-.17-.04-.02-.09-.01-.11-.04-.1-.1-.21-.06-.32-.02-.04 0-.08.04-.1.03-.16-.05-.3 0-.44.03-.05 0-.1.05-.14.07l-.37.17c-.02 0-.03.04-.05.06l-.05.08c-.22.18-.34.42-.46.67Z", fill: "#E30202" }), _jsx("path", { d: "M23.04 22.04a.22.22 0 0 1-.14.07c-.17 0-.33-.03-.49 0-.14.02-.28 0-.43.06-.18.06-.39.04-.58.04-.15 0-.3-.05-.44-.07l-.03-.01c-.13.07-.25-.04-.38-.03l-.54.05c-.04 0-.09.03-.1.01-.1-.1-.21-.04-.32-.04l-.85-.02h-1.13c-.2 0-.41 0-.61.02-.03 0-.07 0-.1.02-.09.06-.18.06-.27-.01-.02-.02-.05-.02-.07 0-.07.04-.13.04-.2 0-.02-.02-.06 0-.08 0a.21.21 0 0 1-.25 0c-.03-.03-.1-.02-.13 0-.08.07-.15.05-.24.03-.1-.03-.2-.08-.32 0-.04.02-.11 0-.17 0h-.25c-.2.02-.38.1-.56-.03-.02-.01-.07-.02-.08 0-.08.08-.12 0-.17-.03l-.24.1a.21.21 0 0 1-.16-.04c-.14-.1-.28-.08-.43-.03-.05.02-.12-.01-.18-.01-.05 0-.11 0-.14.02-.09.09-.18.05-.26 0-.12-.05-.23-.1-.34.02-.03.02-.08.03-.12.03h-.48c-.04 0-.1 0-.12-.03-.11-.11-.22-.07-.34-.02-.08.05-.17.09-.26 0-.03-.03-.1-.03-.14-.02-.06 0-.13.03-.18.01-.15-.05-.3-.08-.43.03a.21.21 0 0 1-.16.03c-.08-.02-.16-.06-.24-.1-.05.04-.1.12-.17.04-.01-.02-.06-.01-.08 0-.18.12-.37.05-.56.03h-.25c-.06 0-.13.02-.17 0-.11-.08-.22-.03-.32 0-.1.02-.16.04-.24-.03-.03-.02-.1-.03-.13 0a.21.21 0 0 1-.25 0c-.02 0-.06-.02-.08 0-.07.04-.13.04-.2 0-.02-.02-.05-.02-.07 0-.09.07-.18.07-.28.01a.21.21 0 0 0-.09-.02l-.6-.02H5.25l-.85.02c-.1 0-.22-.06-.32.04-.01.02-.06 0-.1-.01l-.54-.05c-.13 0-.25.1-.38.03h-.03c-.15.03-.3.07-.44.08-.2 0-.4.02-.58-.04-.15-.06-.3-.04-.43-.07-.16-.02-.32.02-.49.01a.22.22 0 0 1-.14-.07c-.02-.02 0-.1.03-.13.09-.14.28-.2.3-.38l.05-.03c.17-.12.35-.23.45-.44.04-.1.12-.2.21-.23.1-.04.17-.08.22-.17l.04-.03.3-.28c.08-.08.12-.19.18-.29.1-.14.24-.26.37-.38.16-.16.33-.3.49-.47.12-.13.22-.28.33-.41.09-.11.17-.23.27-.33l.4-.37c.1-.08.2-.17.28-.26l.32-.35.37-.36c.15-.15.29-.31.45-.44.2-.15.3-.39.52-.5 0-.12.09-.17.16-.23.09-.09.15-.2.24-.28l.62-.6.24-.24.29-.39.08-.1c.18-.16.36-.3.48-.54.07-.14.23-.23.34-.35l.25-.28c.09-.1.16-.22.25-.34.06-.07.15-.12.18-.2.1-.2.25-.36.42-.5.2-.15.28-.2.41-.44l.16-.25c.05-.08.03-.22-.04-.24-.09-.02-.1-.08-.1-.15l-.07-.1c-.08-.07-.17-.15-.24-.24l-.33-.38-.34-.4-.2-.28a13.2 13.2 0 0 0-.22-.26l-.07-.07c-.06-.05-.13-.1-.17-.17-.1-.14-.16-.3-.26-.42-.12-.16-.26-.3-.4-.43a.22.22 0 0 0-.09-.06c-.1-.03-.16-.08-.18-.2a.2.2 0 0 0-.06-.1l-.4-.37c-.27-.3-.53-.6-.82-.87-.1-.1-.17-.21-.24-.33-.05-.06-.07-.14-.12-.2l-.35-.37c-.01-.02-.03-.04-.05-.04-.16 0-.2-.12-.25-.23a.42.42 0 0 0-.08-.12c-.14-.14-.28-.27-.4-.41l-.37-.4c-.13-.15-.26-.3-.4-.43-.2-.2-.37-.45-.62-.6l-.05-.06c-.14-.2-.28-.4-.43-.58-.07-.09-.09-.18-.03-.27.04-.06.12-.11.18-.16l.06-.01a.93.93 0 0 0 .1-.06c.13-.07.2-.23.36-.23.05 0 .1-.07.14-.11.04-.06.07-.11.14-.03.06.07.12.13.19.18l.2.16c.03.03.08.06.1.1.04.1.1.18.2.23.05.02.08.05.1.08.13.14.24.3.37.43l.57.59c.06.06.1.14.17.2.13.15.28.28.42.41.13.13.2.31.35.43l.03.03.14.23.18.2c.07.1.12.2.2.29l.29.3c.15.18.32.36.43.58.03.07.09.13.14.18.04.03.1.02.13.04.07.06.12.12.17.19l.14.16.1.17.19.21c.05.07.08.18.14.21.1.04.13.12.18.2.11.12.25.23.34.37l.36.47.02.05c.06.1.1.2.18.28.22.21.46.4.68.62l.04.11c.03 0 .05 0 .08-.02l.07.01-.01-.05.14-.2v-.05c-.1-.1-.06-.2-.02-.29.07-.17 0-.34 0-.5l-.01-.23-.03-.42.01-.08V7.64l-.05-.39c0-.12.06-.22.05-.35-.02-.25.02-.5.01-.76 0-.27-.04-.54-.05-.8V4.8l-.01-.46c-.01-.16.07-.36-.04-.48-.14-.17.03-.44-.05-.65l.02-.08.02-.09c-.01-.16.02-.32-.03-.48a.79.79 0 0 1-.04-.31c.01-.13-.02-.3.11-.37l.15-.1c.24.03.58.05.64.03l.16.09c.14.06.12.23.14.36.02.1 0 .21-.02.31-.04.17 0 .32 0 .48l.03.1.02.07a1.4 1.4 0 0 0 0 .65c.02.16-.01.32 0 .48v.47l.05.53v.8c.01.26.06.51.06.76 0 .13.07.23.07.35.01.13-.01.26-.02.4v.08l.02.21.02.08v.64c.01.17-.04.34.04.5.04.1.1.2 0 .3v.04c.07.08.13.2.22.24.07.04.17 0 .25-.07l.7-.64c.08-.08.12-.19.18-.28l.02-.05c.13-.16.25-.3.36-.47.09-.14.23-.25.34-.38.05-.07.08-.15.18-.19.06-.03.09-.14.14-.2l.2-.22c.03-.05.05-.12.09-.17l.14-.16c.05-.07.1-.13.17-.19.03-.02.1-.01.13-.04a.58.58 0 0 0 .14-.18c.1-.22.27-.4.43-.58l.3-.3c.07-.1.12-.2.2-.29l.17-.2.14-.23.03-.03c.15-.12.22-.3.35-.43.14-.13.29-.26.42-.4.07-.07.1-.15.17-.21l.57-.59c.13-.13.24-.29.36-.43a.33.33 0 0 1 .1-.08c.1-.05.17-.13.21-.23.02-.04.07-.07.1-.1l.2-.16c.07-.05.13-.11.19-.18.07-.08.1-.03.14.03.04.04.09.11.14.11.17 0 .23.16.36.23l.1.06h.06c.06.06.14.1.18.17.06.1.04.18-.03.27l-.43.58-.05.06c-.25.15-.41.4-.61.6-.15.13-.28.28-.41.43l-.36.4-.4.41a.42.42 0 0 0-.09.12c-.05.11-.1.23-.25.23-.02 0-.04.02-.05.04l-.35.37c-.05.06-.07.14-.12.2-.07.12-.13.23-.24.33-.3.27-.55.58-.83.87-.12.13-.26.24-.39.37a.2.2 0 0 0-.06.1c-.02.12-.08.17-.18.2a.22.22 0 0 0-.1.06c-.13.14-.27.27-.4.43-.1.13-.16.28-.25.42-.04.07-.11.12-.17.17l-.07.07-.21.26-.2.27-.35.41-.33.38c-.07.09-.16.17-.24.25-.03.02-.06.06-.06.09-.01.07-.02.13-.11.15-.07.02-.09.16-.04.24l.16.25c.13.24.2.29.4.45.18.13.33.29.43.5.03.07.12.12.18.2.09.1.16.22.25.33a4 4 0 0 0 .25.28c.11.12.28.21.34.35.12.24.3.38.48.54l.08.1.3.39c.06.08.15.15.23.23l.62.6c.09.1.15.2.24.29.07.06.16.11.16.23.22.11.32.35.52.5.16.13.3.29.45.43l.37.37.32.35.27.26c.14.12.28.24.4.37.1.1.2.22.28.33.11.13.21.28.33.4l.49.48c.13.12.28.24.37.38.06.1.1.21.18.3l.3.27.04.03c.05.09.12.13.22.17.09.03.17.13.21.23.1.2.28.32.46.44l.03.03c.03.19.22.24.3.38.03.04.06.1.04.13m.95.27c-.11-.24-.33-.39-.45-.63-.07-.15-.23-.25-.36-.37l-.57-.56c-.07-.07-.1-.18-.17-.22-.1-.06-.14-.15-.2-.23-.15-.2-.35-.36-.52-.53l-.12-.15-.35-.32c-.05-.05-.07-.13-.12-.16a.82.82 0 0 1-.37-.39c-.03-.06-.1-.12-.16-.17l-.56-.5c-.2-.17-.39-.36-.57-.54l-.64-.66-.15-.18c-.15-.14-.3-.26-.43-.4-.1-.1-.15-.22-.24-.31-.22-.24-.45-.46-.68-.69-.12-.12-.25-.23-.36-.36l-.43-.55a.55.55 0 0 0-.06-.07c-.17-.16-.34-.3-.5-.47-.08-.09-.14-.2-.21-.3-.05-.07-.12-.12-.17-.18l-.09-.15c-.04-.06-.09-.1-.12-.17a1.27 1.27 0 0 0-.24-.31c-.21-.21-.45-.4-.59-.7-.07-.15-.22-.27-.33-.41-.04-.05-.12-.1-.12-.16 0-.1 0-.22.06-.3.06-.12.08-.26.2-.35.03-.02.04-.07.06-.1l.08-.11c.12-.14.25-.27.35-.42.07-.1.14-.2.24-.29a.53.53 0 0 0 .18-.2c.08-.2.23-.34.4-.45.06-.04.1-.1.15-.15.08-.11.16-.23.25-.33.18-.22.43-.37.55-.63.01-.03.03-.06.05-.07.12-.05.15-.17.23-.26.11-.12.22-.25.35-.37.12-.11.26-.22.32-.4.01-.03.06-.06.1-.09.06-.05.14-.08.2-.14.12-.13.27-.27.35-.43.09-.18.24-.3.36-.44.05-.05.13-.08.17-.13l.37-.43c.08-.1.17-.17.23-.27.04-.06.07-.1.12-.14a.73.73 0 0 0 .23-.25c.04-.1.1-.17.18-.23.04-.02.07-.04.08-.07.04-.11.11-.17.2-.22a.3.3 0 0 0 .11-.1c.13-.2.28-.38.46-.54l.37-.37c.1-.1.17-.23.17-.38 0-.07-.01-.16-.05-.2l-.46-.42c-.11-.1-.25-.14-.32-.29-.06-.11-.18-.2-.28-.28-.04-.04-.09-.1-.14-.1-.12-.03-.25-.03-.37-.04l-.07.04-.23.25c-.2.2-.4.39-.58.6l-.2.19c-.06.06-.1.14-.18.2-.12.1-.25.2-.3.36a.1.1 0 0 1-.02.05c-.08.07-.15.14-.24.2-.14.08-.27.16-.34.32 0 .02-.04.03-.05.05-.08.09-.19.16-.21.26-.04.16-.19.22-.25.34l-.07.1c0 .06 0 .1-.08.08-.02 0-.06.04-.08.07l-.11.11-.34.4c-.05.07-.07.18-.14.21-.13.07-.16.22-.27.3-.18.13-.2.4-.44.47-.02.01-.04.05-.05.07-.04.12-.16.18-.2.3-.06.12-.17.21-.26.3-.1.11-.22.2-.33.3l-.1.13c-.04.08-.08.17-.15.23-.1.11-.23.2-.35.3-.2.18-.26.45-.48.61-.15.1-.26.27-.4.4-.11-.04-.13-.12-.12-.22 0-.04-.01-.1-.04-.13-.04-.06-.07-.1 0-.16a.11.11 0 0 0 .03-.09c-.02-.17.05-.36-.07-.52-.02-.02-.02-.07-.02-.1v-.88c0-.1-.05-.2-.07-.3l-.05-.28c0-.03.04-.07.04-.11l-.06-.42a34.34 34.34 0 0 1-.07-1.71v-.4l-.01-.48c-.02-.15-.05-.28 0-.43l-.01-.07-.01-.59c0-.18-.03-.37-.17-.5a.2.2 0 0 0-.23 0c-.08.05-.16.11-.26.01l-.05-.02h-.27l-.4-.03c-.02 0-.04.01-.05.03-.09.1-.17.05-.25 0a.2.2 0 0 0-.23.02c-.14.14-.15.33-.14.51l.03.59v.07c.05.14.03.28.03.42l.02.48.03.4v.83c0 .35.04.53.04.88 0 .15-.03.29-.03.43 0 .04.04.07.04.11 0 .1-.01.2-.03.29 0 .1-.04.2-.04.3l.06.87c0 .04 0 .08-.02.1-.11.17-.03.36-.03.53 0 .03.01.06.04.08.07.06.04.1 0 .16-.02.04-.04.1-.03.13v.08c-.08-.1-.17-.2-.28-.28-.22-.16-.28-.43-.48-.6l-.35-.31c-.07-.06-.1-.15-.16-.23-.03-.04-.05-.09-.09-.12l-.33-.3c-.1-.1-.2-.2-.25-.31-.05-.12-.17-.18-.2-.3l-.06-.07c-.24-.07-.26-.34-.44-.47-.1-.08-.14-.23-.27-.3-.07-.03-.09-.14-.14-.21-.1-.14-.23-.27-.34-.4l-.1-.11c-.03-.03-.07-.07-.1-.07-.07.02-.06-.02-.07-.07-.01-.04-.05-.07-.07-.11-.06-.12-.21-.18-.25-.34-.02-.1-.13-.17-.2-.26L6.5 3.7c-.07-.16-.2-.24-.34-.33-.09-.05-.16-.12-.24-.19a.1.1 0 0 1-.03-.05c-.04-.16-.17-.26-.3-.37-.06-.05-.11-.13-.17-.2-.07-.06-.14-.1-.2-.18-.18-.21-.39-.4-.58-.6l-.24-.25c-.01-.02-.04-.04-.06-.04-.12 0-.25.01-.37.04-.05 0-.1.06-.14.1-.1.09-.22.17-.28.28-.07.15-.2.2-.32.3-.15.13-.31.26-.45.4-.05.05-.06.14-.06.21 0 .15.07.28.17.38l.37.37c.18.16.33.34.46.54a.3.3 0 0 0 .1.1c.1.05.17.11.2.22.02.03.05.05.09.07.08.06.14.13.18.23.04.1.14.18.23.25.05.04.08.08.12.14.06.1.15.18.23.27l.37.43c.04.05.12.08.17.13.12.14.27.26.36.44.08.16.23.3.36.43.05.06.13.1.2.14.03.03.08.06.1.1.05.17.19.28.31.4.13.1.24.24.35.36.08.09.11.21.23.26.02 0 .04.04.05.07.12.26.37.41.55.63.1.1.17.22.25.33l.14.15c.18.1.33.24.41.45.04.08.1.15.18.2.1.08.17.18.24.29.1.15.23.28.35.42l.08.1c.02.04.03.1.06.11.12.09.14.23.2.34.05.09.07.2.06.3 0 .06-.08.12-.12.17-.11.14-.26.26-.33.42-.14.28-.38.48-.6.69-.1.1-.17.2-.23.31-.03.06-.08.11-.12.17l-.09.15c-.05.06-.12.11-.17.18-.07.1-.13.21-.21.3l-.5.47a.55.55 0 0 0-.06.07l-.43.55c-.1.13-.24.24-.36.36-.23.23-.46.45-.68.69-.09.1-.15.21-.24.3-.13.15-.28.27-.43.41l-.15.18-.64.66c-.18.18-.37.37-.57.54l-.56.5c-.06.05-.13.1-.16.17-.09.17-.2.3-.37.39-.05.03-.07.11-.12.16l-.35.32-.12.15c-.17.17-.37.33-.52.53-.06.08-.1.17-.2.23-.07.04-.1.15-.17.22l-.57.56c-.13.12-.3.22-.36.37-.12.24-.34.4-.45.63a.15.15 0 0 0 0 .1c0 .02.06.02.09.02h.08c.13.12.3.08.45.1.12 0 .24-.04.36.07.05.06.2.02.3.02H4.12c.15 0 .3-.05.47-.01.2.04.41.01.62 0 .14 0 .28-.03.42-.04l.18.03.36.04.1-.01h.15l.19-.01.56.01.39-.01.2.02h.09l.13-.02h.28c.13.1.27.01.4 0 .26-.02.51-.02.76 0 .1.02.2.02.3 0 .05 0 .1.04.15.06h.12c.05 0 .1-.03.15-.04l.48-.03c.07 0 .15.03.22.05l.07.03h.54l.31.02c.09 0 .16-.05.25-.06.09 0 .16.05.25.06l.31-.02h.54l.07-.03c.07-.02.15-.06.22-.05l.48.03c.05 0 .1.04.15.05l.12-.01c.05-.02.1-.07.14-.06.1.02.2.02.31 0 .25-.02.5-.02.75 0 .14.01.28.1.41 0h.28l.13.02h.1l.2-.02.38.01.56-.01h.35l.09.02.36-.04.18-.03c.14.01.28.04.42.04.2.01.43.04.62 0 .17-.04.32 0 .47 0h2.81c.1 0 .26.05.31 0 .12-.12.24-.08.36-.09.16 0 .32.03.45-.08.02-.02.06 0 .08 0 .03-.01.09 0 .1-.02a.15.15 0 0 0-.01-.11Z", fill: "#E30202" }), _jsx("path", { d: "M13.16 14.08c0-.04.05-.09.08-.1.04 0 .1.04.11.07.13.25.35.43.53.64.15.17.33.32.49.47l.33.33c.08.1.17.2.22.3.07.17.23.25.34.38.14.18.36.3.46.53.03.05.09.1.14.14.28.18.46.46.69.7.09.09.14.22.26.27.18.08.26.26.4.4.14.13.26.28.4.43.16.19.33.38.51.56l.47.49c.06.06.1.15.15.23l.11.13c.02.02.06.05.06.07-.01.1.05.14.1.2.06.05.1.1.06.18-.05.09-.12.1-.2.07-.07-.02-.14-.02-.2-.02h-.08a1.8 1.8 0 0 0-.7.09.22.22 0 0 1-.14 0 1 1 0 0 0-.59-.07c-.03.01-.06 0-.09-.02l-.06-.02-.46.04-.26-.02h-.71l-.59.02a19.3 19.3 0 0 1-1.23-.02c-.05 0-.1-.03-.15-.05-.05-.02-.1-.06-.16-.06-.07-.01-.1-.05-.1-.12v-.65l-.03-.06-.05-.27c-.01-.19.01-.38-.03-.55-.03-.09-.03-.14 0-.21.02-.05 0-.12-.01-.17-.02-.1-.05-.18-.05-.26l-.02-1c0-.24.02-.5.01-.74 0-.2-.03-.4-.04-.6v-.49l-.02-.09c0-.1.02-.2.04-.3v-.06c-.17-.27-.04-.53 0-.79Zm-.6-.3-.02.67.02.64v.07c.04.15.1.31.09.46-.04.25-.02.49-.02.73 0 .03 0 .07.02.08.12.08.1.2.07.31-.03.17 0 .33.01.5l.02.61c0 .12-.04.25 0 .36.09.25.07.5.07.75v.37c0 .04.04.09.04.14 0 .1.05.24 0 .33-.07.14-.02.27-.05.4-.02.09-.02.2.02.26.05.07.04.12 0 .18-.06.12-.05.24.02.34a.3.3 0 0 0 .21.11c.24 0 .47-.07.71 0 .04 0 .1-.02.13-.04.1-.08.25-.1.33-.03.18.14.33.07.48 0a.22.22 0 0 1 .23 0c.06.03.1.08.16 0l.09.02c.04.01.08.04.12.04.2-.03.38-.08.57-.1.14 0 .3-.05.4.05l.22-.05c.11-.02.23-.04.3.08.02.02.06.01.09.01H18.03c.12 0 .23.02.34 0 .17-.01.35.04.49-.09h.02l.28.02c.1 0 .18.03.29.01.16-.04.34-.02.51-.04.07 0 .15-.04.2-.09.08-.07.04-.14-.03-.21-.11-.11-.24-.22-.32-.36a1.28 1.28 0 0 0-.3-.33l-.34-.34-.4-.43c-.1-.1-.26-.2-.31-.33-.08-.18-.23-.28-.35-.41-.28-.32-.6-.6-.85-.96-.07-.1-.17-.16-.24-.25-.06-.08-.1-.18-.17-.26-.07-.08-.16-.15-.24-.21-.08-.06-.18-.1-.24-.18-.1-.1-.16-.21-.24-.32-.12-.15-.26-.26-.37-.43-.13-.19-.28-.39-.53-.46-.03-.01-.06-.05-.08-.08l-.08-.08c-.09-.08-.18-.15-.26-.24-.16-.17-.23-.41-.43-.56-.15-.12-.28-.28-.41-.42-.04-.03-.06-.08-.08-.11l-.11-.17-.19-.24-.06-.08-.38-.36c-.03-.03-.08-.06-.09-.1 0-.14-.12-.2-.2-.28-.07-.1-.16-.15-.23 0 0 .02-.04.02-.05.02-.1.04-.12.11-.06.19s.03.16-.01.23c-.06.1-.05.21-.02.32.03.12.07.23.07.35ZM10.85 14.87v.05l.04.31-.02.1v.48c-.01.2-.04.4-.04.6v.75l-.01.99c0 .08-.03.17-.05.26 0 .05-.03.12-.01.17.03.07.03.12 0 .2-.04.18-.02.37-.03.56 0 .09-.03.18-.05.27l-.02.06v.64c0 .08-.04.12-.11.13-.06 0-.1.04-.16.06-.05.02-.1.05-.15.05a17.25 17.25 0 0 1-1.23.02l-.59-.02a25 25 0 0 0-.71 0l-.26.02c-.15 0-.3-.03-.46-.04l-.06.02c-.03.01-.06.03-.09.02a1 1 0 0 0-.59.06.22.22 0 0 1-.14 0 1.8 1.8 0 0 0-.7-.08h-.07c-.07 0-.14 0-.2.02-.1.02-.16.02-.2-.07-.05-.08-.01-.13.04-.19.06-.05.12-.1.11-.2l.06-.06.11-.13c.05-.08.09-.17.15-.23l.47-.49.52-.56c.13-.15.25-.3.39-.44.14-.13.22-.3.4-.39.12-.05.17-.18.26-.27.23-.24.4-.52.7-.7a.36.36 0 0 0 .13-.14c.1-.23.32-.35.46-.53.1-.13.27-.21.34-.37.05-.12.14-.21.22-.3.1-.12.22-.23.33-.34.16-.15.34-.3.49-.47.18-.21.4-.39.53-.64.02-.03.07-.07.11-.06.03 0 .08.05.08.1.05.25.18.51.01.78Zm.66-1.43c.03-.1.04-.21-.02-.32-.04-.07-.07-.15 0-.23.05-.08.03-.15-.07-.19-.01 0-.04 0-.05-.02-.07-.15-.16-.1-.23 0-.08.08-.2.14-.2.28 0 .04-.06.07-.1.1l-.37.36-.06.08-.2.24-.1.17c-.02.03-.04.08-.08.11-.13.14-.26.3-.42.42-.2.15-.26.39-.42.56-.08.09-.17.16-.26.24l-.08.08c-.02.03-.05.07-.08.08-.25.07-.4.27-.53.46-.11.17-.25.28-.37.43-.08.1-.15.22-.24.32-.06.07-.16.12-.24.18l-.24.2c-.07.09-.1.2-.17.27-.07.1-.17.16-.24.25-.24.36-.57.64-.85.96-.12.13-.27.23-.35.41-.05.13-.2.22-.31.33l-.4.43c-.11.11-.22.23-.35.34-.11.1-.21.2-.29.33-.08.14-.2.25-.32.36-.07.07-.1.14-.03.21.05.05.13.08.2.09.17.02.35 0 .51.04.1.02.2-.01.29-.01l.28-.02h.02c.14.13.32.08.49.1l.34-.02.66.01H7.2c.08-.13.2-.1.31-.09l.22.05c.1-.1.26-.06.4-.05.19.02.38.07.57.1l.12-.04.09-.03c.05.09.1.04.16.01a.22.22 0 0 1 .23 0c.15.07.3.14.48 0 .08-.07.22-.05.33.03.04.02.1.04.13.03.24-.06.47.01.7.01a.3.3 0 0 0 .22-.11c.07-.1.08-.22.01-.34-.03-.06-.04-.1 0-.18.05-.06.05-.17.03-.25-.03-.14.02-.27-.05-.41-.05-.09 0-.22 0-.33 0-.05.03-.1.04-.14v-.37c0-.25-.02-.5.07-.75.04-.1 0-.24 0-.36l.02-.61c0-.17.04-.33 0-.5-.02-.1-.04-.23.08-.31l.02-.08c0-.24.01-.48-.02-.73-.01-.15.05-.3.08-.46a.5.5 0 0 0 0-.07l.03-.64-.02-.66c0-.12.04-.23.07-.35Z", fill: "#E30202" })] }));
|
|
4
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAOA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,EACP,KAAK,GACN,EAAE,KAAK,2CA8DP"}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import Dialog from "dt-design-system/es/dialog";
|
|
4
|
+
import Button from "dt-design-system/es/button";
|
|
5
|
+
import MseMPresetEditor from "../msem-preset-editor";
|
|
6
|
+
import css from "./msem-preset-linker.module.css";
|
|
7
|
+
import MseMLogo from "./msem-logo";
|
|
3
8
|
const PRESET_ATTRIBUTE = "data-msem-preset";
|
|
4
9
|
export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, close, }) {
|
|
5
10
|
const link = target?.querySelector(":scope > a");
|
|
6
|
-
const currentPreset = target?.getAttribute("data-msem-preset");
|
|
11
|
+
const currentPreset = target?.getAttribute("data-msem-preset") || undefined;
|
|
7
12
|
const urlOverride = link?.getAttribute("href") || undefined;
|
|
13
|
+
const [preset, setPreset] = React.useState(currentPreset ? JSON.parse(currentPreset) : null);
|
|
8
14
|
const closeEditor = () => {
|
|
9
15
|
close();
|
|
10
16
|
};
|
|
11
|
-
const updatePreset = (
|
|
12
|
-
if (
|
|
17
|
+
const updatePreset = React.useCallback(() => {
|
|
18
|
+
if (preset) {
|
|
13
19
|
const anchorHasHref = target
|
|
14
20
|
?.querySelector(":scope > a")
|
|
15
21
|
?.hasAttribute("href");
|
|
16
|
-
if (!anchorHasHref &&
|
|
17
|
-
delete
|
|
22
|
+
if (!anchorHasHref && preset?.url) {
|
|
23
|
+
delete preset.url;
|
|
18
24
|
}
|
|
19
|
-
target?.setAttribute(PRESET_ATTRIBUTE, JSON.stringify(
|
|
25
|
+
target?.setAttribute(PRESET_ATTRIBUTE, JSON.stringify(preset));
|
|
20
26
|
}
|
|
21
27
|
else {
|
|
22
28
|
target?.removeAttribute(PRESET_ATTRIBUTE);
|
|
23
29
|
}
|
|
24
30
|
closeEditor();
|
|
25
|
-
};
|
|
26
|
-
return (_jsx(
|
|
31
|
+
}, [preset]);
|
|
32
|
+
return (_jsxs(Dialog, { className: css.dialog, isOpened: true, close: closeEditor, closeButtonVariant: "transparent", closeOnBackdropClick: false, showAsModal: false, children: [_jsxs("div", { className: css.title, children: [_jsx(MseMLogo, { className: css.logo }), " \u00C9diteur de presets"] }), _jsx("div", { className: css.content, children: _jsx(MseMPresetEditor, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, urlOverride: urlOverride, resorts: resorts, currentPreset: preset, onChange: setPreset }) }), _jsxs("div", { className: css.buttons, children: [_jsx(Button, { variant: "secondary", onClick: closeEditor, children: "Annuler" }), _jsx(Button, { variant: "primary", onClick: updatePreset, children: "Valider" })] })] }));
|
|
27
33
|
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.dialog {
|
|
2
|
+
--ds-sans-serif-font: var(
|
|
3
|
+
--ublo-content-font,
|
|
4
|
+
system-ui,
|
|
5
|
+
-apple-system,
|
|
6
|
+
BlinkMacSystemFont,
|
|
7
|
+
"Segoe UI",
|
|
8
|
+
"Roboto",
|
|
9
|
+
"Oxygen",
|
|
10
|
+
"Ubuntu",
|
|
11
|
+
"Cantarell",
|
|
12
|
+
"Fira Sans",
|
|
13
|
+
"Droid Sans",
|
|
14
|
+
"Helvetica Neue",
|
|
15
|
+
Arial,
|
|
16
|
+
sans-serif
|
|
17
|
+
);
|
|
18
|
+
--ds-mono-font: var(
|
|
19
|
+
--ublo-code-font,
|
|
20
|
+
ui-monospace,
|
|
21
|
+
Menlo,
|
|
22
|
+
Monaco,
|
|
23
|
+
"Cascadia Mono",
|
|
24
|
+
"Segoe UI Mono",
|
|
25
|
+
"Roboto Mono",
|
|
26
|
+
"Oxygen Mono",
|
|
27
|
+
"Ubuntu Monospace",
|
|
28
|
+
"Source Code Pro",
|
|
29
|
+
"Fira Mono",
|
|
30
|
+
"Droid Sans Mono",
|
|
31
|
+
"Courier New",
|
|
32
|
+
monospace
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
--ds-button-padding: 10px;
|
|
36
|
+
|
|
37
|
+
--ds-grey-800: #000;
|
|
38
|
+
--ds-grey-700: #262626;
|
|
39
|
+
--ds-grey-600: var(--ublo-grey-600, #1b1b1b);
|
|
40
|
+
--ds-grey-500: var(--ublo-grey-500, #383838);
|
|
41
|
+
--ds-grey-400: var(--ublo-grey-400, #7c7b7b);
|
|
42
|
+
--ds-grey-300: var(--ublo-grey-300, #d3d3d3);
|
|
43
|
+
--ds-grey-200: var(--ublo-grey-200, #ededed);
|
|
44
|
+
--ds-grey-100: var(--ublo-grey-100, #f5f5f5);
|
|
45
|
+
--ds-grey-000: var(--ublo-grey-000, #ffffff);
|
|
46
|
+
|
|
47
|
+
--ds-grey-gradient: linear-gradient(
|
|
48
|
+
100deg,
|
|
49
|
+
var(--ds-grey-200, #ededed) 0%,
|
|
50
|
+
var(--ds-grey-300, #d7d7d7) 100%
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
--ds-blue-600: #002299;
|
|
54
|
+
--ds-blue-500: var(--ublo-blue-500, #004cc2);
|
|
55
|
+
--ds-blue-400: var(--ublo-blue-400, #4177f6);
|
|
56
|
+
--ds-blue-300: var(--ublo-blue-300, #adc5ea);
|
|
57
|
+
--ds-blue-200: var(--ublo-blue-200, #d4e4fc);
|
|
58
|
+
--ds-blue-100: var(--ublo-blue-100, #e8f0fc);
|
|
59
|
+
--ds-blue-000: #e8f0fc;
|
|
60
|
+
|
|
61
|
+
--ds-blue-gradient: var(
|
|
62
|
+
--ublo-blue-gradient,
|
|
63
|
+
linear-gradient(
|
|
64
|
+
175deg,
|
|
65
|
+
var(--ublo-blue-400, #4177f6),
|
|
66
|
+
var(--ublo-blue-500, #004cc2)
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
--ds-primary: var(--ublo-primary-color, #073ff8);
|
|
71
|
+
--ds-secondary: var(--ublo-secondary-color, #4177f6);
|
|
72
|
+
|
|
73
|
+
--ds-radius-100: var(--ublo-radius-100, 3px);
|
|
74
|
+
--ds-radius-200: var(--ublo-radius-200, 8px);
|
|
75
|
+
--ds-radius-300: var(--ublo-radius-300, 14px);
|
|
76
|
+
--ds-radius-400: var(--ublo-radius-400, 20px);
|
|
77
|
+
|
|
78
|
+
--ds-shadow-100: var(--ublo-shadow-100, 0 5px 10px rgba(0, 0, 0, 0.12));
|
|
79
|
+
--ds-shadow-200: var(--ublo-shadow-100, 0 5px 10px rgba(0, 0, 0, 0.12));
|
|
80
|
+
--ds-shadow-300: var(--ublo-shadow-300, 0 5px 10px rgba(0, 0, 0, 0.24));
|
|
81
|
+
--ds-shadow-400: var(--ublo-shadow-300, 0 5px 10px rgba(0, 0, 0, 0.24));
|
|
82
|
+
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
font-family: var(--ds-sans-serif-font);
|
|
86
|
+
pointer-events: auto;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dialog * {
|
|
90
|
+
font-family: var(--ds-sans-serif-font);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dialog *,
|
|
94
|
+
.dialog *::before,
|
|
95
|
+
.dialog *::after {
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.title {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding: 14px 70px 14px 10px;
|
|
103
|
+
gap: 10px;
|
|
104
|
+
font-size: 19px;
|
|
105
|
+
line-height: 1;
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.logo {
|
|
110
|
+
width: 22px;
|
|
111
|
+
height: 22px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.content {
|
|
115
|
+
padding: 10px;
|
|
116
|
+
background-color: var(--ublo-grey-100, #f5f5f5);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.buttons {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: flex-end;
|
|
122
|
+
gap: 8px;
|
|
123
|
+
padding: 10px;
|
|
124
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type Resort = {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
};
|
|
5
|
-
type Props = {
|
|
6
|
-
lang: "fr" | "en";
|
|
7
|
-
channel: string;
|
|
8
|
-
resort: string;
|
|
9
|
-
msemServicesUrl: string;
|
|
10
|
-
urlOverride?: string;
|
|
11
|
-
resorts?: Resort[];
|
|
12
|
-
currentPreset?: string;
|
|
13
|
-
updatePreset: (preset: any) => any;
|
|
14
|
-
closeEditor: () => void;
|
|
15
|
-
};
|
|
16
|
-
export default function EditorDialog({ lang, channel, resort, msemServicesUrl, urlOverride, resorts, currentPreset, updatePreset, closeEditor, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=editor-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-dialog.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-editor/editor-dialog.tsx"],"names":[],"mappings":"AAMA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;IACnC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,WAAW,EACX,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,GACZ,EAAE,KAAK,2CA2CP"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import Dialog from "dt-design-system/es/dialog";
|
|
4
|
-
import Button from "dt-design-system/es/button";
|
|
5
|
-
import MseMPresetEditor from "./msem-preset-editor";
|
|
6
|
-
import css from "./editor-dialog.module.css";
|
|
7
|
-
export default function EditorDialog({ lang, channel, resort, msemServicesUrl, urlOverride, resorts, currentPreset, updatePreset, closeEditor, }) {
|
|
8
|
-
const [preset, setPreset] = React.useState(currentPreset ? JSON.parse(currentPreset) : null);
|
|
9
|
-
const updateNewPreset = React.useCallback(() => {
|
|
10
|
-
updatePreset(preset);
|
|
11
|
-
}, [preset, updatePreset]);
|
|
12
|
-
console.log("editor-dialog", preset);
|
|
13
|
-
return (_jsxs(Dialog, { className: css.dialog, isOpened: true, close: closeEditor, closeOnBackdropClick: false, showAsModal: false, children: [_jsx("div", { className: css.title, children: "Choisissez un widget" }), _jsx("div", { className: css.subtitle, children: "Ce dernier s'ouvrira au clic sur l'\u00E9l\u00E9ment s\u00E9lectionn\u00E9." }), _jsx(MseMPresetEditor, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, urlOverride: urlOverride, resorts: resorts, currentPreset: preset, onChange: setPreset }), _jsxs("div", { className: css.buttons, children: [_jsx(Button, { variant: "secondary", onClick: closeEditor, children: "Annuler" }), _jsx(Button, { variant: "primary", onClick: updateNewPreset, children: "Valider" })] })] }));
|
|
14
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
.dialog {
|
|
2
|
-
--ds-sans-serif-font: var(
|
|
3
|
-
--ublo-content-font,
|
|
4
|
-
system-ui,
|
|
5
|
-
-apple-system,
|
|
6
|
-
BlinkMacSystemFont,
|
|
7
|
-
"Segoe UI",
|
|
8
|
-
"Roboto",
|
|
9
|
-
"Oxygen",
|
|
10
|
-
"Ubuntu",
|
|
11
|
-
"Cantarell",
|
|
12
|
-
"Fira Sans",
|
|
13
|
-
"Droid Sans",
|
|
14
|
-
"Helvetica Neue",
|
|
15
|
-
Arial,
|
|
16
|
-
sans-serif
|
|
17
|
-
);
|
|
18
|
-
--ds-mono-font: var(
|
|
19
|
-
--ublo-code-font,
|
|
20
|
-
ui-monospace,
|
|
21
|
-
Menlo,
|
|
22
|
-
Monaco,
|
|
23
|
-
"Cascadia Mono",
|
|
24
|
-
"Segoe UI Mono",
|
|
25
|
-
"Roboto Mono",
|
|
26
|
-
"Oxygen Mono",
|
|
27
|
-
"Ubuntu Monospace",
|
|
28
|
-
"Source Code Pro",
|
|
29
|
-
"Fira Mono",
|
|
30
|
-
"Droid Sans Mono",
|
|
31
|
-
"Courier New",
|
|
32
|
-
monospace
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
--ds-primary: var(--ublo-primary-color, #073ff8);
|
|
36
|
-
--ds-secondary: var(--ublo-secondary-color, #4177f6);
|
|
37
|
-
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
padding: 16px;
|
|
41
|
-
font-family: var(--ds-sans-serif-font);
|
|
42
|
-
pointer-events: auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.dialog * {
|
|
46
|
-
font-family: var(--ds-sans-serif-font);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.title {
|
|
50
|
-
margin-bottom: 8px;
|
|
51
|
-
font-size: 24px;
|
|
52
|
-
font-weight: 700;
|
|
53
|
-
line-height: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.subtitle {
|
|
57
|
-
margin-bottom: 16px;
|
|
58
|
-
padding-right: 48px;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
line-height: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.buttons {
|
|
64
|
-
display: flex;
|
|
65
|
-
justify-content: flex-end;
|
|
66
|
-
gap: 8px;
|
|
67
|
-
margin-top: 22px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.removeObsolete {
|
|
71
|
-
margin-right: auto;
|
|
72
|
-
}
|