@panneau/core 4.0.37 → 4.0.40-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contexts.d.ts +78 -34
- package/dist/contexts.js +1332 -621
- package/dist/hooks.d.ts +41 -0
- package/dist/hooks.js +1395 -847
- package/dist/index.d.ts +26 -9
- package/dist/index.js +485 -609
- package/dist/utils.d.ts +40 -6
- package/dist/utils.js +232 -354
- package/package.json +4 -4
package/dist/contexts.js
CHANGED
|
@@ -1,64 +1,101 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import isString from 'lodash/isString';
|
|
3
|
-
import { createContext, useContext,
|
|
3
|
+
import { createContext, useContext, useState, use, useEffect, useRef } from 'react';
|
|
4
4
|
import { ComponentsManager, FieldsManager, Tracking } from '@panneau/core';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
8
6
|
import uniqBy from 'lodash/uniqBy';
|
|
9
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
7
|
import { getJSON } from '@folklore/fetch';
|
|
11
8
|
import isObject from 'lodash/isObject';
|
|
12
9
|
import { loadGoogleApi, loadGoogleMaps } from '@folklore/services';
|
|
13
10
|
import { useIntl } from 'react-intl';
|
|
14
11
|
import { getDisplayName } from '@panneau/core/utils';
|
|
15
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
16
12
|
import { useUrlGenerator } from '@folklore/routes';
|
|
17
13
|
export { RoutesContext, RoutesProvider, useRoutes, useUrlGenerator } from '@folklore/routes';
|
|
18
|
-
import {
|
|
14
|
+
import { TrackingContext, TrackingContainer } from '@folklore/tracking';
|
|
19
15
|
export { TrackingContext } from '@folklore/tracking';
|
|
20
16
|
import { useLocation } from 'wouter';
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
const MODALS_NAMESPACE = 'modals';
|
|
19
|
+
const FIELDS_NAMESPACE = 'fields';
|
|
20
|
+
const FORMS_NAMESPACE = 'forms';
|
|
21
|
+
const FILTERS_NAMESPACE = 'filters';
|
|
22
|
+
const LISTS_NAMESPACE = 'lists';
|
|
23
|
+
const DISPLAYS_NAMESPACE = 'displays';
|
|
24
|
+
const ACTIONS_NAMESPACE = 'actions';
|
|
25
|
+
const BUTTONS_NAMESPACE = 'buttons';
|
|
26
|
+
const PAGES_NAMESPACE = 'pages';
|
|
27
|
+
const PREVIEWS_NAMESPACE = 'previews';
|
|
28
|
+
const APP_NAMESPACE = 'app';
|
|
29
|
+
const ComponentsContext = /*#__PURE__*/createContext(null);
|
|
34
30
|
|
|
35
31
|
/**
|
|
36
32
|
* Hooks
|
|
37
33
|
*/
|
|
38
|
-
function useComponentsManager() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
function useComponentsManager(t0) {
|
|
35
|
+
const $ = c(3);
|
|
36
|
+
const namespace = t0 === undefined ? null : t0;
|
|
37
|
+
const manager = useContext(ComponentsContext);
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[0] !== manager || $[1] !== namespace) {
|
|
40
|
+
t1 = namespace !== null ? new ComponentsManager(manager.getComponents(namespace)) : manager;
|
|
41
|
+
$[0] = manager;
|
|
42
|
+
$[1] = namespace;
|
|
43
|
+
$[2] = t1;
|
|
44
|
+
} else {
|
|
45
|
+
t1 = $[2];
|
|
46
|
+
}
|
|
47
|
+
const finalManager = t1;
|
|
44
48
|
return finalManager;
|
|
45
49
|
}
|
|
46
|
-
function useComponents() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
function useComponents(t0, t1) {
|
|
51
|
+
const $ = c(6);
|
|
52
|
+
const namespace = t0 === undefined ? null : t0;
|
|
53
|
+
let t2;
|
|
54
|
+
if ($[0] !== t1) {
|
|
55
|
+
t2 = t1 === undefined ? {} : t1;
|
|
56
|
+
$[0] = t1;
|
|
57
|
+
$[1] = t2;
|
|
58
|
+
} else {
|
|
59
|
+
t2 = $[1];
|
|
60
|
+
}
|
|
61
|
+
const defaultComponents = t2;
|
|
62
|
+
const manager = useComponentsManager();
|
|
63
|
+
let t3;
|
|
64
|
+
if ($[2] !== defaultComponents || $[3] !== manager || $[4] !== namespace) {
|
|
65
|
+
t3 = manager.getComponents(namespace) || defaultComponents;
|
|
66
|
+
$[2] = defaultComponents;
|
|
67
|
+
$[3] = manager;
|
|
68
|
+
$[4] = namespace;
|
|
69
|
+
$[5] = t3;
|
|
70
|
+
} else {
|
|
71
|
+
t3 = $[5];
|
|
72
|
+
}
|
|
73
|
+
return t3;
|
|
74
|
+
}
|
|
75
|
+
function useComponent(name, t0, t1) {
|
|
76
|
+
const $ = c(4);
|
|
77
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
78
|
+
const namespace = t1 === undefined ? null : t1;
|
|
79
|
+
const manager = useComponentsManager(namespace);
|
|
80
|
+
let t2;
|
|
81
|
+
bb0: {
|
|
57
82
|
if (!isString(name)) {
|
|
58
|
-
|
|
83
|
+
t2 = name || defaultComponent;
|
|
84
|
+
break bb0;
|
|
59
85
|
}
|
|
60
|
-
|
|
61
|
-
|
|
86
|
+
let t3;
|
|
87
|
+
if ($[0] !== defaultComponent || $[1] !== manager || $[2] !== name) {
|
|
88
|
+
t3 = manager.getComponent(name) || defaultComponent;
|
|
89
|
+
$[0] = defaultComponent;
|
|
90
|
+
$[1] = manager;
|
|
91
|
+
$[2] = name;
|
|
92
|
+
$[3] = t3;
|
|
93
|
+
} else {
|
|
94
|
+
t3 = $[3];
|
|
95
|
+
}
|
|
96
|
+
t2 = t3;
|
|
97
|
+
}
|
|
98
|
+
return t2;
|
|
62
99
|
}
|
|
63
100
|
|
|
64
101
|
/**
|
|
@@ -67,12 +104,21 @@ function useComponent(name) {
|
|
|
67
104
|
function useFieldsComponentsManager() {
|
|
68
105
|
return useComponentsManager(FIELDS_NAMESPACE);
|
|
69
106
|
}
|
|
70
|
-
function useFieldsComponents() {
|
|
71
|
-
|
|
107
|
+
function useFieldsComponents(t0) {
|
|
108
|
+
const $ = c(2);
|
|
109
|
+
let t1;
|
|
110
|
+
if ($[0] !== t0) {
|
|
111
|
+
t1 = t0 === undefined ? {} : t0;
|
|
112
|
+
$[0] = t0;
|
|
113
|
+
$[1] = t1;
|
|
114
|
+
} else {
|
|
115
|
+
t1 = $[1];
|
|
116
|
+
}
|
|
117
|
+
const defaultComponents = t1;
|
|
72
118
|
return useComponents(FIELDS_NAMESPACE, defaultComponents);
|
|
73
119
|
}
|
|
74
|
-
function useFieldComponent(name) {
|
|
75
|
-
|
|
120
|
+
function useFieldComponent(name, t0) {
|
|
121
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
76
122
|
return useComponent(name, defaultComponent, FIELDS_NAMESPACE);
|
|
77
123
|
}
|
|
78
124
|
|
|
@@ -82,12 +128,21 @@ function useFieldComponent(name) {
|
|
|
82
128
|
function useFormsComponentsManager() {
|
|
83
129
|
return useComponentsManager(FORMS_NAMESPACE);
|
|
84
130
|
}
|
|
85
|
-
function useFormsComponents() {
|
|
86
|
-
|
|
131
|
+
function useFormsComponents(t0) {
|
|
132
|
+
const $ = c(2);
|
|
133
|
+
let t1;
|
|
134
|
+
if ($[0] !== t0) {
|
|
135
|
+
t1 = t0 === undefined ? {} : t0;
|
|
136
|
+
$[0] = t0;
|
|
137
|
+
$[1] = t1;
|
|
138
|
+
} else {
|
|
139
|
+
t1 = $[1];
|
|
140
|
+
}
|
|
141
|
+
const defaultComponents = t1;
|
|
87
142
|
return useComponents(FORMS_NAMESPACE, defaultComponents);
|
|
88
143
|
}
|
|
89
|
-
function useFormComponent(name) {
|
|
90
|
-
|
|
144
|
+
function useFormComponent(name, t0) {
|
|
145
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
91
146
|
return useComponent(name, defaultComponent, FORMS_NAMESPACE);
|
|
92
147
|
}
|
|
93
148
|
|
|
@@ -97,12 +152,21 @@ function useFormComponent(name) {
|
|
|
97
152
|
function useModalsComponentsManager() {
|
|
98
153
|
return useComponentsManager(MODALS_NAMESPACE);
|
|
99
154
|
}
|
|
100
|
-
function useModalsComponents() {
|
|
101
|
-
|
|
155
|
+
function useModalsComponents(t0) {
|
|
156
|
+
const $ = c(2);
|
|
157
|
+
let t1;
|
|
158
|
+
if ($[0] !== t0) {
|
|
159
|
+
t1 = t0 === undefined ? {} : t0;
|
|
160
|
+
$[0] = t0;
|
|
161
|
+
$[1] = t1;
|
|
162
|
+
} else {
|
|
163
|
+
t1 = $[1];
|
|
164
|
+
}
|
|
165
|
+
const defaultComponents = t1;
|
|
102
166
|
return useComponents(MODALS_NAMESPACE, defaultComponents);
|
|
103
167
|
}
|
|
104
|
-
function useModalComponent(name) {
|
|
105
|
-
|
|
168
|
+
function useModalComponent(name, t0) {
|
|
169
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
106
170
|
return useComponent(name, defaultComponent, MODALS_NAMESPACE);
|
|
107
171
|
}
|
|
108
172
|
|
|
@@ -112,12 +176,21 @@ function useModalComponent(name) {
|
|
|
112
176
|
function useFiltersComponentsManager() {
|
|
113
177
|
return useComponentsManager(FILTERS_NAMESPACE);
|
|
114
178
|
}
|
|
115
|
-
function useFiltersComponents() {
|
|
116
|
-
|
|
179
|
+
function useFiltersComponents(t0) {
|
|
180
|
+
const $ = c(2);
|
|
181
|
+
let t1;
|
|
182
|
+
if ($[0] !== t0) {
|
|
183
|
+
t1 = t0 === undefined ? {} : t0;
|
|
184
|
+
$[0] = t0;
|
|
185
|
+
$[1] = t1;
|
|
186
|
+
} else {
|
|
187
|
+
t1 = $[1];
|
|
188
|
+
}
|
|
189
|
+
const defaultComponents = t1;
|
|
117
190
|
return useComponents(FILTERS_NAMESPACE, defaultComponents);
|
|
118
191
|
}
|
|
119
|
-
function useFilterComponent(name) {
|
|
120
|
-
|
|
192
|
+
function useFilterComponent(name, t0) {
|
|
193
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
121
194
|
return useComponent(name, defaultComponent, FILTERS_NAMESPACE);
|
|
122
195
|
}
|
|
123
196
|
|
|
@@ -127,12 +200,21 @@ function useFilterComponent(name) {
|
|
|
127
200
|
function useListsComponentsManager() {
|
|
128
201
|
return useComponentsManager(LISTS_NAMESPACE);
|
|
129
202
|
}
|
|
130
|
-
function useListsComponents() {
|
|
131
|
-
|
|
203
|
+
function useListsComponents(t0) {
|
|
204
|
+
const $ = c(2);
|
|
205
|
+
let t1;
|
|
206
|
+
if ($[0] !== t0) {
|
|
207
|
+
t1 = t0 === undefined ? {} : t0;
|
|
208
|
+
$[0] = t0;
|
|
209
|
+
$[1] = t1;
|
|
210
|
+
} else {
|
|
211
|
+
t1 = $[1];
|
|
212
|
+
}
|
|
213
|
+
const defaultComponents = t1;
|
|
132
214
|
return useComponents(LISTS_NAMESPACE, defaultComponents);
|
|
133
215
|
}
|
|
134
|
-
function useListComponent(name) {
|
|
135
|
-
|
|
216
|
+
function useListComponent(name, t0) {
|
|
217
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
136
218
|
return useComponent(name, defaultComponent, LISTS_NAMESPACE);
|
|
137
219
|
}
|
|
138
220
|
|
|
@@ -142,12 +224,21 @@ function useListComponent(name) {
|
|
|
142
224
|
function useDisplaysComponentsManager() {
|
|
143
225
|
return useComponentsManager(DISPLAYS_NAMESPACE);
|
|
144
226
|
}
|
|
145
|
-
function useDisplaysComponents() {
|
|
146
|
-
|
|
227
|
+
function useDisplaysComponents(t0) {
|
|
228
|
+
const $ = c(2);
|
|
229
|
+
let t1;
|
|
230
|
+
if ($[0] !== t0) {
|
|
231
|
+
t1 = t0 === undefined ? {} : t0;
|
|
232
|
+
$[0] = t0;
|
|
233
|
+
$[1] = t1;
|
|
234
|
+
} else {
|
|
235
|
+
t1 = $[1];
|
|
236
|
+
}
|
|
237
|
+
const defaultComponents = t1;
|
|
147
238
|
return useComponents(DISPLAYS_NAMESPACE, defaultComponents);
|
|
148
239
|
}
|
|
149
|
-
function useDisplayComponent(name) {
|
|
150
|
-
|
|
240
|
+
function useDisplayComponent(name, t0) {
|
|
241
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
151
242
|
return useComponent(name, defaultComponent, DISPLAYS_NAMESPACE);
|
|
152
243
|
}
|
|
153
244
|
|
|
@@ -157,12 +248,21 @@ function useDisplayComponent(name) {
|
|
|
157
248
|
function useActionsComponentsManager() {
|
|
158
249
|
return useComponentsManager(ACTIONS_NAMESPACE);
|
|
159
250
|
}
|
|
160
|
-
function useActionsComponents() {
|
|
161
|
-
|
|
251
|
+
function useActionsComponents(t0) {
|
|
252
|
+
const $ = c(2);
|
|
253
|
+
let t1;
|
|
254
|
+
if ($[0] !== t0) {
|
|
255
|
+
t1 = t0 === undefined ? {} : t0;
|
|
256
|
+
$[0] = t0;
|
|
257
|
+
$[1] = t1;
|
|
258
|
+
} else {
|
|
259
|
+
t1 = $[1];
|
|
260
|
+
}
|
|
261
|
+
const defaultComponents = t1;
|
|
162
262
|
return useComponents(ACTIONS_NAMESPACE, defaultComponents);
|
|
163
263
|
}
|
|
164
|
-
function useActionComponent(name) {
|
|
165
|
-
|
|
264
|
+
function useActionComponent(name, t0) {
|
|
265
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
166
266
|
return useComponent(name, defaultComponent, ACTIONS_NAMESPACE);
|
|
167
267
|
}
|
|
168
268
|
|
|
@@ -172,12 +272,21 @@ function useActionComponent(name) {
|
|
|
172
272
|
function useButtonsComponentsManager() {
|
|
173
273
|
return useComponentsManager(BUTTONS_NAMESPACE);
|
|
174
274
|
}
|
|
175
|
-
function useButtonsComponents() {
|
|
176
|
-
|
|
275
|
+
function useButtonsComponents(t0) {
|
|
276
|
+
const $ = c(2);
|
|
277
|
+
let t1;
|
|
278
|
+
if ($[0] !== t0) {
|
|
279
|
+
t1 = t0 === undefined ? {} : t0;
|
|
280
|
+
$[0] = t0;
|
|
281
|
+
$[1] = t1;
|
|
282
|
+
} else {
|
|
283
|
+
t1 = $[1];
|
|
284
|
+
}
|
|
285
|
+
const defaultComponents = t1;
|
|
177
286
|
return useComponents(BUTTONS_NAMESPACE, defaultComponents);
|
|
178
287
|
}
|
|
179
|
-
function useButtonComponent(name) {
|
|
180
|
-
|
|
288
|
+
function useButtonComponent(name, t0) {
|
|
289
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
181
290
|
return useComponent(name, defaultComponent, BUTTONS_NAMESPACE);
|
|
182
291
|
}
|
|
183
292
|
|
|
@@ -187,12 +296,21 @@ function useButtonComponent(name) {
|
|
|
187
296
|
function usePagesComponentsManager() {
|
|
188
297
|
return useComponentsManager(PAGES_NAMESPACE);
|
|
189
298
|
}
|
|
190
|
-
function usePagesComponents() {
|
|
191
|
-
|
|
299
|
+
function usePagesComponents(t0) {
|
|
300
|
+
const $ = c(2);
|
|
301
|
+
let t1;
|
|
302
|
+
if ($[0] !== t0) {
|
|
303
|
+
t1 = t0 === undefined ? {} : t0;
|
|
304
|
+
$[0] = t0;
|
|
305
|
+
$[1] = t1;
|
|
306
|
+
} else {
|
|
307
|
+
t1 = $[1];
|
|
308
|
+
}
|
|
309
|
+
const defaultComponents = t1;
|
|
192
310
|
return useComponents(PAGES_NAMESPACE, defaultComponents);
|
|
193
311
|
}
|
|
194
|
-
function usePageComponent(name) {
|
|
195
|
-
|
|
312
|
+
function usePageComponent(name, t0) {
|
|
313
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
196
314
|
return useComponent(name, defaultComponent, PAGES_NAMESPACE);
|
|
197
315
|
}
|
|
198
316
|
|
|
@@ -202,12 +320,21 @@ function usePageComponent(name) {
|
|
|
202
320
|
function usePreviewsComponentsManager() {
|
|
203
321
|
return useComponentsManager(PREVIEWS_NAMESPACE);
|
|
204
322
|
}
|
|
205
|
-
function usePreviewsComponents() {
|
|
206
|
-
|
|
323
|
+
function usePreviewsComponents(t0) {
|
|
324
|
+
const $ = c(2);
|
|
325
|
+
let t1;
|
|
326
|
+
if ($[0] !== t0) {
|
|
327
|
+
t1 = t0 === undefined ? {} : t0;
|
|
328
|
+
$[0] = t0;
|
|
329
|
+
$[1] = t1;
|
|
330
|
+
} else {
|
|
331
|
+
t1 = $[1];
|
|
332
|
+
}
|
|
333
|
+
const defaultComponents = t1;
|
|
207
334
|
return useComponents(PREVIEWS_NAMESPACE, defaultComponents);
|
|
208
335
|
}
|
|
209
|
-
function usePreviewComponent(name) {
|
|
210
|
-
|
|
336
|
+
function usePreviewComponent(name, t0) {
|
|
337
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
211
338
|
return useComponent(name, defaultComponent, PREVIEWS_NAMESPACE);
|
|
212
339
|
}
|
|
213
340
|
|
|
@@ -217,12 +344,21 @@ function usePreviewComponent(name) {
|
|
|
217
344
|
function useAppComponentsManager() {
|
|
218
345
|
return useComponentsManager(APP_NAMESPACE);
|
|
219
346
|
}
|
|
220
|
-
function useAppComponents() {
|
|
221
|
-
|
|
347
|
+
function useAppComponents(t0) {
|
|
348
|
+
const $ = c(2);
|
|
349
|
+
let t1;
|
|
350
|
+
if ($[0] !== t0) {
|
|
351
|
+
t1 = t0 === undefined ? {} : t0;
|
|
352
|
+
$[0] = t0;
|
|
353
|
+
$[1] = t1;
|
|
354
|
+
} else {
|
|
355
|
+
t1 = $[1];
|
|
356
|
+
}
|
|
357
|
+
const defaultComponents = t1;
|
|
222
358
|
return useComponents(APP_NAMESPACE, defaultComponents);
|
|
223
359
|
}
|
|
224
|
-
function useAppComponent(name) {
|
|
225
|
-
|
|
360
|
+
function useAppComponent(name, t0) {
|
|
361
|
+
const defaultComponent = t0 === undefined ? null : t0;
|
|
226
362
|
return useComponent(name, defaultComponent, APP_NAMESPACE);
|
|
227
363
|
}
|
|
228
364
|
|
|
@@ -230,714 +366,1289 @@ function useAppComponent(name) {
|
|
|
230
366
|
* Provider
|
|
231
367
|
*/
|
|
232
368
|
|
|
233
|
-
|
|
234
|
-
function ComponentsProvider(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
manager
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
369
|
+
const DEFAULT_COMPONENTS$1 = {};
|
|
370
|
+
function ComponentsProvider(t0) {
|
|
371
|
+
const $ = c(8);
|
|
372
|
+
const {
|
|
373
|
+
components: t1,
|
|
374
|
+
manager: t2,
|
|
375
|
+
namespace: t3,
|
|
376
|
+
children
|
|
377
|
+
} = t0;
|
|
378
|
+
const components = t1 === undefined ? DEFAULT_COMPONENTS$1 : t1;
|
|
379
|
+
const manager = t2 === undefined ? null : t2;
|
|
380
|
+
const namespace = t3 === undefined ? null : t3;
|
|
381
|
+
const previousManager = useComponentsManager() || null;
|
|
382
|
+
let t4;
|
|
383
|
+
if ($[0] !== components || $[1] !== manager || $[2] !== namespace || $[3] !== previousManager) {
|
|
384
|
+
t4 = new ComponentsManager({
|
|
385
|
+
...(previousManager !== null ? previousManager.getComponents() : null),
|
|
386
|
+
...(manager !== null ? manager.getComponents() : null),
|
|
387
|
+
...new ComponentsManager(components).addNamespace(namespace).getComponents()
|
|
388
|
+
});
|
|
389
|
+
$[0] = components;
|
|
390
|
+
$[1] = manager;
|
|
391
|
+
$[2] = namespace;
|
|
392
|
+
$[3] = previousManager;
|
|
393
|
+
$[4] = t4;
|
|
394
|
+
} else {
|
|
395
|
+
t4 = $[4];
|
|
396
|
+
}
|
|
397
|
+
const finalManager = t4;
|
|
398
|
+
let t5;
|
|
399
|
+
if ($[5] !== children || $[6] !== finalManager) {
|
|
400
|
+
t5 = /*#__PURE__*/jsx(ComponentsContext, {
|
|
401
|
+
value: finalManager,
|
|
402
|
+
children: children
|
|
403
|
+
});
|
|
404
|
+
$[5] = children;
|
|
405
|
+
$[6] = finalManager;
|
|
406
|
+
$[7] = t5;
|
|
407
|
+
} else {
|
|
408
|
+
t5 = $[7];
|
|
409
|
+
}
|
|
410
|
+
return t5;
|
|
250
411
|
}
|
|
251
412
|
|
|
252
|
-
|
|
413
|
+
const DefinitionContext = /*#__PURE__*/createContext(null);
|
|
253
414
|
function useDefinitionContext() {
|
|
254
415
|
return useContext(DefinitionContext);
|
|
255
416
|
}
|
|
256
417
|
function useDefinition() {
|
|
257
|
-
|
|
418
|
+
const definition = useDefinitionContext();
|
|
258
419
|
return definition || null;
|
|
259
420
|
}
|
|
260
|
-
function DefinitionProvider(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
421
|
+
function DefinitionProvider(t0) {
|
|
422
|
+
const $ = c(3);
|
|
423
|
+
const {
|
|
424
|
+
definition,
|
|
425
|
+
children
|
|
426
|
+
} = t0;
|
|
427
|
+
let t1;
|
|
428
|
+
if ($[0] !== children || $[1] !== definition) {
|
|
429
|
+
t1 = /*#__PURE__*/jsx(DefinitionContext, {
|
|
430
|
+
value: definition,
|
|
431
|
+
children: children
|
|
432
|
+
});
|
|
433
|
+
$[0] = children;
|
|
434
|
+
$[1] = definition;
|
|
435
|
+
$[2] = t1;
|
|
436
|
+
} else {
|
|
437
|
+
t1 = $[2];
|
|
438
|
+
}
|
|
439
|
+
return t1;
|
|
267
440
|
}
|
|
268
441
|
|
|
269
|
-
|
|
442
|
+
const FieldsContext = /*#__PURE__*/createContext(null);
|
|
270
443
|
function useFieldsManager() {
|
|
271
444
|
return useContext(FieldsContext);
|
|
272
445
|
}
|
|
273
446
|
function useField(id) {
|
|
274
|
-
|
|
275
|
-
|
|
447
|
+
const $ = c(3);
|
|
448
|
+
const manager = useFieldsManager();
|
|
449
|
+
let t0;
|
|
450
|
+
if ($[0] !== id || $[1] !== manager) {
|
|
451
|
+
t0 = manager.getDefinition(id);
|
|
452
|
+
$[0] = id;
|
|
453
|
+
$[1] = manager;
|
|
454
|
+
$[2] = t0;
|
|
455
|
+
} else {
|
|
456
|
+
t0 = $[2];
|
|
457
|
+
}
|
|
458
|
+
return t0;
|
|
276
459
|
}
|
|
277
460
|
function useFields() {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
461
|
+
const $ = c(2);
|
|
462
|
+
const manager = useFieldsManager();
|
|
463
|
+
let t0;
|
|
464
|
+
if ($[0] !== manager) {
|
|
465
|
+
t0 = manager.getDefinitions();
|
|
466
|
+
$[0] = manager;
|
|
467
|
+
$[1] = t0;
|
|
468
|
+
} else {
|
|
469
|
+
t0 = $[1];
|
|
470
|
+
}
|
|
471
|
+
return t0;
|
|
472
|
+
}
|
|
473
|
+
function FieldsProvider(t0) {
|
|
474
|
+
const $ = c(12);
|
|
475
|
+
const {
|
|
476
|
+
fields: t1,
|
|
477
|
+
manager: t2,
|
|
478
|
+
children
|
|
479
|
+
} = t0;
|
|
480
|
+
const fields = t1 === undefined ? null : t1;
|
|
481
|
+
const manager = t2 === undefined ? null : t2;
|
|
482
|
+
const previousManager = useFieldsManager() || null;
|
|
483
|
+
let t3;
|
|
484
|
+
if ($[0] !== fields || $[1] !== manager || $[2] !== previousManager) {
|
|
485
|
+
const newFields = uniqBy([...(fields || []), ...(manager !== null ? manager.getDefinitions() : []), ...(previousManager !== null ? previousManager.getDefinitions() : [])], _temp$1).reverse();
|
|
486
|
+
t3 = new FieldsManager(newFields);
|
|
487
|
+
$[0] = fields;
|
|
488
|
+
$[1] = manager;
|
|
489
|
+
$[2] = previousManager;
|
|
490
|
+
$[3] = t3;
|
|
491
|
+
} else {
|
|
492
|
+
t3 = $[3];
|
|
493
|
+
}
|
|
494
|
+
const finalManager = t3;
|
|
495
|
+
let t4;
|
|
496
|
+
if ($[4] !== finalManager) {
|
|
497
|
+
const newComponents = finalManager.getComponents();
|
|
498
|
+
t4 = Object.keys(newComponents).reduce((map, id_0) => {
|
|
499
|
+
const component = newComponents[id_0];
|
|
500
|
+
return isString(component) ? map : {
|
|
501
|
+
...map,
|
|
502
|
+
[id_0]: component
|
|
503
|
+
};
|
|
300
504
|
}, {});
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
505
|
+
$[4] = finalManager;
|
|
506
|
+
$[5] = t4;
|
|
507
|
+
} else {
|
|
508
|
+
t4 = $[5];
|
|
509
|
+
}
|
|
510
|
+
const components = t4;
|
|
511
|
+
let t5;
|
|
512
|
+
if ($[6] !== children || $[7] !== components) {
|
|
513
|
+
t5 = /*#__PURE__*/jsx(ComponentsProvider, {
|
|
305
514
|
namespace: FIELDS_NAMESPACE,
|
|
306
515
|
components: components,
|
|
307
516
|
children: children
|
|
308
|
-
})
|
|
309
|
-
|
|
517
|
+
});
|
|
518
|
+
$[6] = children;
|
|
519
|
+
$[7] = components;
|
|
520
|
+
$[8] = t5;
|
|
521
|
+
} else {
|
|
522
|
+
t5 = $[8];
|
|
523
|
+
}
|
|
524
|
+
let t6;
|
|
525
|
+
if ($[9] !== finalManager || $[10] !== t5) {
|
|
526
|
+
t6 = /*#__PURE__*/jsx(FieldsContext, {
|
|
527
|
+
value: finalManager,
|
|
528
|
+
children: t5
|
|
529
|
+
});
|
|
530
|
+
$[9] = finalManager;
|
|
531
|
+
$[10] = t5;
|
|
532
|
+
$[11] = t6;
|
|
533
|
+
} else {
|
|
534
|
+
t6 = $[11];
|
|
535
|
+
}
|
|
536
|
+
return t6;
|
|
537
|
+
}
|
|
538
|
+
function _temp$1(t0) {
|
|
539
|
+
const {
|
|
540
|
+
id
|
|
541
|
+
} = t0;
|
|
542
|
+
return id;
|
|
310
543
|
}
|
|
311
544
|
|
|
312
|
-
|
|
545
|
+
const GoogleKeysContext = /*#__PURE__*/createContext({
|
|
313
546
|
apiKey: null
|
|
314
547
|
});
|
|
315
548
|
function useGoogleKeys() {
|
|
316
549
|
return useContext(GoogleKeysContext);
|
|
317
550
|
}
|
|
318
|
-
function GoogleKeysProvider(
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
551
|
+
function GoogleKeysProvider(t0) {
|
|
552
|
+
const $ = c(5);
|
|
553
|
+
const {
|
|
554
|
+
children,
|
|
555
|
+
apiKey: t1
|
|
556
|
+
} = t0;
|
|
557
|
+
const apiKey = t1 === undefined ? null : t1;
|
|
558
|
+
const {
|
|
559
|
+
apiKey: previousApiKey
|
|
560
|
+
} = useGoogleKeys();
|
|
561
|
+
const t2 = apiKey || previousApiKey;
|
|
562
|
+
let t3;
|
|
563
|
+
if ($[0] !== t2) {
|
|
564
|
+
t3 = {
|
|
565
|
+
apiKey: t2
|
|
327
566
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
567
|
+
$[0] = t2;
|
|
568
|
+
$[1] = t3;
|
|
569
|
+
} else {
|
|
570
|
+
t3 = $[1];
|
|
571
|
+
}
|
|
572
|
+
const value = t3;
|
|
573
|
+
let t4;
|
|
574
|
+
if ($[2] !== children || $[3] !== value) {
|
|
575
|
+
t4 = /*#__PURE__*/jsx(GoogleKeysContext, {
|
|
576
|
+
value: value,
|
|
577
|
+
children: children
|
|
578
|
+
});
|
|
579
|
+
$[2] = children;
|
|
580
|
+
$[3] = value;
|
|
581
|
+
$[4] = t4;
|
|
582
|
+
} else {
|
|
583
|
+
t4 = $[4];
|
|
584
|
+
}
|
|
585
|
+
return t4;
|
|
333
586
|
}
|
|
334
587
|
|
|
335
|
-
|
|
588
|
+
const FontsContext = /*#__PURE__*/createContext({
|
|
336
589
|
systemFonts: null,
|
|
337
590
|
googleFonts: null,
|
|
338
591
|
customFonts: null
|
|
339
592
|
});
|
|
340
|
-
function useGoogleFonts() {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
593
|
+
function useGoogleFonts(t0) {
|
|
594
|
+
const $ = c(7);
|
|
595
|
+
let t1;
|
|
596
|
+
if ($[0] !== t0) {
|
|
597
|
+
t1 = t0 === undefined ? {} : t0;
|
|
598
|
+
$[0] = t0;
|
|
599
|
+
$[1] = t1;
|
|
600
|
+
} else {
|
|
601
|
+
t1 = $[1];
|
|
602
|
+
}
|
|
603
|
+
const {
|
|
604
|
+
disabled: t2,
|
|
605
|
+
setFonts: t3
|
|
606
|
+
} = t1;
|
|
607
|
+
const disabled = t2 === undefined ? false : t2;
|
|
608
|
+
const setFonts = t3 === undefined ? null : t3;
|
|
609
|
+
const {
|
|
610
|
+
apiKey
|
|
611
|
+
} = useGoogleKeys();
|
|
612
|
+
const [googleFonts, setGoogleFonts] = useState(null);
|
|
613
|
+
let t4;
|
|
614
|
+
let t5;
|
|
615
|
+
if ($[2] !== apiKey || $[3] !== disabled || $[4] !== setFonts) {
|
|
616
|
+
t4 = () => {
|
|
617
|
+
let canceled = false;
|
|
618
|
+
if (apiKey !== null && !disabled) {
|
|
619
|
+
getJSON(`https://www.googleapis.com/webfonts/v1/webfonts?key=${apiKey}&sort=popularity`).then(t6 => {
|
|
620
|
+
const {
|
|
621
|
+
items: t7
|
|
622
|
+
} = t6;
|
|
623
|
+
const items = t7 === undefined ? [] : t7;
|
|
624
|
+
if (!canceled) {
|
|
625
|
+
const newFonts = items.map(_temp);
|
|
626
|
+
if (setFonts !== null) {
|
|
627
|
+
setFonts(newFonts);
|
|
628
|
+
} else {
|
|
629
|
+
setGoogleFonts(newFonts);
|
|
630
|
+
}
|
|
370
631
|
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
return () => {
|
|
635
|
+
canceled = true;
|
|
636
|
+
};
|
|
376
637
|
};
|
|
377
|
-
|
|
638
|
+
t5 = [apiKey, disabled, setFonts, setGoogleFonts];
|
|
639
|
+
$[2] = apiKey;
|
|
640
|
+
$[3] = disabled;
|
|
641
|
+
$[4] = setFonts;
|
|
642
|
+
$[5] = t4;
|
|
643
|
+
$[6] = t5;
|
|
644
|
+
} else {
|
|
645
|
+
t4 = $[5];
|
|
646
|
+
t5 = $[6];
|
|
647
|
+
}
|
|
648
|
+
useEffect(t4, t5);
|
|
378
649
|
return googleFonts;
|
|
379
650
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
651
|
+
function _temp(it) {
|
|
652
|
+
return {
|
|
653
|
+
type: "google",
|
|
654
|
+
name: it.family,
|
|
655
|
+
variants: it.variants
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function useFonts(t0) {
|
|
659
|
+
const $ = c(9);
|
|
660
|
+
let t1;
|
|
661
|
+
if ($[0] !== t0) {
|
|
662
|
+
t1 = t0 === undefined ? {} : t0;
|
|
663
|
+
$[0] = t0;
|
|
664
|
+
$[1] = t1;
|
|
665
|
+
} else {
|
|
666
|
+
t1 = $[1];
|
|
667
|
+
}
|
|
668
|
+
const {
|
|
669
|
+
withoutGoogleFonts: t2
|
|
670
|
+
} = t1;
|
|
671
|
+
const withoutGoogleFonts = t2 === undefined ? false : t2;
|
|
672
|
+
const {
|
|
673
|
+
setGoogleFonts: t3,
|
|
674
|
+
systemFonts: t4,
|
|
675
|
+
googleFonts: t5,
|
|
676
|
+
customFonts: t6
|
|
677
|
+
} = use(FontsContext);
|
|
678
|
+
const setGoogleFonts = t3 === undefined ? null : t3;
|
|
679
|
+
const systemFonts = t4 === undefined ? null : t4;
|
|
680
|
+
const googleFonts = t5 === undefined ? null : t5;
|
|
681
|
+
const customFonts = t6 === undefined ? null : t6;
|
|
682
|
+
const t7 = withoutGoogleFonts || googleFonts !== null && googleFonts.length > 0;
|
|
683
|
+
let t8;
|
|
684
|
+
if ($[2] !== setGoogleFonts || $[3] !== t7) {
|
|
685
|
+
t8 = {
|
|
686
|
+
disabled: t7,
|
|
687
|
+
setFonts: setGoogleFonts
|
|
402
688
|
};
|
|
403
|
-
|
|
689
|
+
$[2] = setGoogleFonts;
|
|
690
|
+
$[3] = t7;
|
|
691
|
+
$[4] = t8;
|
|
692
|
+
} else {
|
|
693
|
+
t8 = $[4];
|
|
694
|
+
}
|
|
695
|
+
useGoogleFonts(t8);
|
|
696
|
+
let t9;
|
|
697
|
+
if ($[5] !== customFonts || $[6] !== googleFonts || $[7] !== systemFonts) {
|
|
698
|
+
t9 = {
|
|
699
|
+
systemFonts,
|
|
700
|
+
googleFonts,
|
|
701
|
+
customFonts
|
|
702
|
+
};
|
|
703
|
+
$[5] = customFonts;
|
|
704
|
+
$[6] = googleFonts;
|
|
705
|
+
$[7] = systemFonts;
|
|
706
|
+
$[8] = t9;
|
|
707
|
+
} else {
|
|
708
|
+
t9 = $[8];
|
|
709
|
+
}
|
|
710
|
+
const fonts = t9;
|
|
404
711
|
return fonts;
|
|
405
712
|
}
|
|
406
|
-
|
|
407
|
-
function FontsProvider(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
customFonts
|
|
412
|
-
children
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
713
|
+
const DEFAULT_SYSTEM_FONTS = ['Arial', 'Courier', 'Georgia', 'Times New Roman', 'Verdana'];
|
|
714
|
+
function FontsProvider(t0) {
|
|
715
|
+
const $ = c(16);
|
|
716
|
+
const {
|
|
717
|
+
systemFonts: t1,
|
|
718
|
+
customFonts: t2,
|
|
719
|
+
children
|
|
720
|
+
} = t0;
|
|
721
|
+
const systemFonts = t1 === undefined ? DEFAULT_SYSTEM_FONTS : t1;
|
|
722
|
+
const customFonts = t2 === undefined ? null : t2;
|
|
723
|
+
const {
|
|
724
|
+
systemFonts: t3,
|
|
725
|
+
googleFonts: t4,
|
|
726
|
+
customFonts: t5
|
|
727
|
+
} = useFonts();
|
|
728
|
+
const previousSystemFonts = t3 === undefined ? null : t3;
|
|
729
|
+
const previousGoogleFonts = t4 === undefined ? null : t4;
|
|
730
|
+
const previousCustomFonts = t5 === undefined ? null : t5;
|
|
731
|
+
const [googleFonts, setGoogleFonts] = useState(null);
|
|
732
|
+
let t6;
|
|
733
|
+
if ($[0] !== previousSystemFonts || $[1] !== systemFonts) {
|
|
734
|
+
t6 = uniqBy([...(previousSystemFonts || []), ...(systemFonts || [])], _temp2);
|
|
735
|
+
$[0] = previousSystemFonts;
|
|
736
|
+
$[1] = systemFonts;
|
|
737
|
+
$[2] = t6;
|
|
738
|
+
} else {
|
|
739
|
+
t6 = $[2];
|
|
740
|
+
}
|
|
741
|
+
let t7;
|
|
742
|
+
if ($[3] !== googleFonts || $[4] !== previousGoogleFonts) {
|
|
743
|
+
t7 = uniqBy([...(previousGoogleFonts || []), ...(googleFonts || [])], _temp3);
|
|
744
|
+
$[3] = googleFonts;
|
|
745
|
+
$[4] = previousGoogleFonts;
|
|
746
|
+
$[5] = t7;
|
|
747
|
+
} else {
|
|
748
|
+
t7 = $[5];
|
|
749
|
+
}
|
|
750
|
+
let t8;
|
|
751
|
+
if ($[6] !== customFonts || $[7] !== previousCustomFonts) {
|
|
752
|
+
t8 = uniqBy([...(previousCustomFonts || []), ...(customFonts || [])], _temp4);
|
|
753
|
+
$[6] = customFonts;
|
|
754
|
+
$[7] = previousCustomFonts;
|
|
755
|
+
$[8] = t8;
|
|
756
|
+
} else {
|
|
757
|
+
t8 = $[8];
|
|
758
|
+
}
|
|
759
|
+
let t9;
|
|
760
|
+
if ($[9] !== t6 || $[10] !== t7 || $[11] !== t8) {
|
|
761
|
+
t9 = {
|
|
762
|
+
systemFonts: t6,
|
|
763
|
+
googleFonts: t7,
|
|
764
|
+
customFonts: t8,
|
|
765
|
+
setGoogleFonts
|
|
436
766
|
};
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
767
|
+
$[9] = t6;
|
|
768
|
+
$[10] = t7;
|
|
769
|
+
$[11] = t8;
|
|
770
|
+
$[12] = t9;
|
|
771
|
+
} else {
|
|
772
|
+
t9 = $[12];
|
|
773
|
+
}
|
|
774
|
+
const fonts = t9;
|
|
775
|
+
let t10;
|
|
776
|
+
if ($[13] !== children || $[14] !== fonts) {
|
|
777
|
+
t10 = /*#__PURE__*/jsx(FontsContext, {
|
|
778
|
+
value: fonts,
|
|
779
|
+
children: children
|
|
780
|
+
});
|
|
781
|
+
$[13] = children;
|
|
782
|
+
$[14] = fonts;
|
|
783
|
+
$[15] = t10;
|
|
784
|
+
} else {
|
|
785
|
+
t10 = $[15];
|
|
786
|
+
}
|
|
787
|
+
return t10;
|
|
788
|
+
}
|
|
789
|
+
function _temp4(font_1) {
|
|
790
|
+
return isObject(font_1) ? font_1.name : font_1;
|
|
791
|
+
}
|
|
792
|
+
function _temp3(font_0) {
|
|
793
|
+
return isObject(font_0) ? font_0.name : font_0;
|
|
794
|
+
}
|
|
795
|
+
function _temp2(font) {
|
|
796
|
+
return isObject(font) ? font.name : font;
|
|
442
797
|
}
|
|
443
798
|
|
|
444
|
-
|
|
799
|
+
const FormContext = /*#__PURE__*/createContext(null);
|
|
445
800
|
function useFormContext() {
|
|
446
801
|
return use(FormContext);
|
|
447
802
|
}
|
|
448
803
|
function useFormValue() {
|
|
449
|
-
|
|
450
|
-
value
|
|
804
|
+
const {
|
|
805
|
+
value
|
|
806
|
+
} = useFormContext();
|
|
451
807
|
return value;
|
|
452
808
|
}
|
|
453
809
|
function useFormSetValue() {
|
|
454
|
-
|
|
455
|
-
setValue
|
|
810
|
+
const {
|
|
811
|
+
setValue
|
|
812
|
+
} = useFormContext();
|
|
456
813
|
return setValue;
|
|
457
814
|
}
|
|
458
|
-
function FormProvider(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
815
|
+
function FormProvider(t0) {
|
|
816
|
+
const $ = c(6);
|
|
817
|
+
const {
|
|
818
|
+
value,
|
|
819
|
+
setValue,
|
|
820
|
+
children
|
|
821
|
+
} = t0;
|
|
822
|
+
let t1;
|
|
823
|
+
if ($[0] !== setValue || $[1] !== value) {
|
|
824
|
+
t1 = {
|
|
825
|
+
value,
|
|
826
|
+
setValue
|
|
466
827
|
};
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
828
|
+
$[0] = setValue;
|
|
829
|
+
$[1] = value;
|
|
830
|
+
$[2] = t1;
|
|
831
|
+
} else {
|
|
832
|
+
t1 = $[2];
|
|
833
|
+
}
|
|
834
|
+
const values = t1;
|
|
835
|
+
let t2;
|
|
836
|
+
if ($[3] !== children || $[4] !== values) {
|
|
837
|
+
t2 = /*#__PURE__*/jsx(FormContext, {
|
|
838
|
+
value: values,
|
|
839
|
+
children: children
|
|
840
|
+
});
|
|
841
|
+
$[3] = children;
|
|
842
|
+
$[4] = values;
|
|
843
|
+
$[5] = t2;
|
|
844
|
+
} else {
|
|
845
|
+
t2 = $[5];
|
|
846
|
+
}
|
|
847
|
+
return t2;
|
|
472
848
|
}
|
|
473
849
|
|
|
474
|
-
|
|
850
|
+
const GoogleApiClientContext = /*#__PURE__*/createContext(null);
|
|
475
851
|
function useGoogleApiClient() {
|
|
476
852
|
return useContext(GoogleApiClientContext);
|
|
477
853
|
}
|
|
478
854
|
function withGoogleApiClient(WrappedComponent) {
|
|
479
|
-
function getDisplayName(
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
name = _ref$name === void 0 ? null : _ref$name;
|
|
855
|
+
function getDisplayName({
|
|
856
|
+
displayName = null,
|
|
857
|
+
name = null
|
|
858
|
+
}) {
|
|
484
859
|
return displayName || name || 'Component';
|
|
485
860
|
}
|
|
486
861
|
function WithGoogleApiClientComponent(props) {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
862
|
+
const $ = c(2);
|
|
863
|
+
let t0;
|
|
864
|
+
if ($[0] !== props) {
|
|
865
|
+
t0 = /*#__PURE__*/jsx(GoogleApiClientContext.Consumer, {
|
|
866
|
+
children: client => /*#__PURE__*/jsx(WrappedComponent, {
|
|
867
|
+
googleApiClient: client,
|
|
868
|
+
...props
|
|
869
|
+
})
|
|
870
|
+
});
|
|
871
|
+
$[0] = props;
|
|
872
|
+
$[1] = t0;
|
|
873
|
+
} else {
|
|
874
|
+
t0 = $[1];
|
|
875
|
+
}
|
|
876
|
+
return t0;
|
|
494
877
|
}
|
|
495
|
-
WithGoogleApiClientComponent.displayName =
|
|
878
|
+
WithGoogleApiClientComponent.displayName = `WithGoogleApiClient(${getDisplayName(WrappedComponent)})`;
|
|
496
879
|
return WithGoogleApiClientComponent;
|
|
497
880
|
}
|
|
498
|
-
function GoogleApiClientProvider(
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
881
|
+
function GoogleApiClientProvider(t0) {
|
|
882
|
+
const $ = c(6);
|
|
883
|
+
const {
|
|
884
|
+
children
|
|
885
|
+
} = t0;
|
|
886
|
+
const {
|
|
887
|
+
apiKey
|
|
888
|
+
} = useGoogleKeys();
|
|
889
|
+
const [client, setClient] = useState(null);
|
|
890
|
+
let t1;
|
|
891
|
+
let t2;
|
|
892
|
+
if ($[0] !== apiKey) {
|
|
893
|
+
t1 = () => {
|
|
894
|
+
loadGoogleApi().then(gapi => gapi.client.init({
|
|
895
|
+
apiKey
|
|
896
|
+
}).then(() => gapi)).then(gapi_0 => setClient(gapi_0));
|
|
897
|
+
};
|
|
898
|
+
t2 = [apiKey, setClient];
|
|
899
|
+
$[0] = apiKey;
|
|
900
|
+
$[1] = t1;
|
|
901
|
+
$[2] = t2;
|
|
902
|
+
} else {
|
|
903
|
+
t1 = $[1];
|
|
904
|
+
t2 = $[2];
|
|
905
|
+
}
|
|
906
|
+
useEffect(t1, t2);
|
|
907
|
+
let t3;
|
|
908
|
+
if ($[3] !== children || $[4] !== client) {
|
|
909
|
+
t3 = /*#__PURE__*/jsx(GoogleApiClientContext, {
|
|
910
|
+
value: client,
|
|
911
|
+
children: children
|
|
515
912
|
});
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
913
|
+
$[3] = children;
|
|
914
|
+
$[4] = client;
|
|
915
|
+
$[5] = t3;
|
|
916
|
+
} else {
|
|
917
|
+
t3 = $[5];
|
|
918
|
+
}
|
|
919
|
+
return t3;
|
|
521
920
|
}
|
|
522
921
|
|
|
523
|
-
|
|
922
|
+
const GoogleMapsClientContext = /*#__PURE__*/createContext(null);
|
|
524
923
|
function useGoogleMapsClient() {
|
|
525
924
|
return useContext(GoogleMapsClientContext);
|
|
526
925
|
}
|
|
527
926
|
function withGoogleMapsClient(WrappedComponent) {
|
|
528
|
-
function getDisplayName(
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
name = _ref$name === void 0 ? null : _ref$name;
|
|
927
|
+
function getDisplayName({
|
|
928
|
+
displayName = null,
|
|
929
|
+
name = null
|
|
930
|
+
}) {
|
|
533
931
|
return displayName || name || 'Component';
|
|
534
932
|
}
|
|
535
933
|
function WithGoogleMapsClientComponent(props) {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
934
|
+
const $ = c(2);
|
|
935
|
+
let t0;
|
|
936
|
+
if ($[0] !== props) {
|
|
937
|
+
t0 = /*#__PURE__*/jsx(GoogleMapsClientContext.Consumer, {
|
|
938
|
+
children: client => /*#__PURE__*/jsx(WrappedComponent, {
|
|
939
|
+
googleApiClient: client,
|
|
940
|
+
...props
|
|
941
|
+
})
|
|
942
|
+
});
|
|
943
|
+
$[0] = props;
|
|
944
|
+
$[1] = t0;
|
|
945
|
+
} else {
|
|
946
|
+
t0 = $[1];
|
|
947
|
+
}
|
|
948
|
+
return t0;
|
|
543
949
|
}
|
|
544
|
-
WithGoogleMapsClientComponent.displayName =
|
|
950
|
+
WithGoogleMapsClientComponent.displayName = `WithGoogleMapsClient(${getDisplayName(WrappedComponent)})`;
|
|
545
951
|
return WithGoogleMapsClientComponent;
|
|
546
952
|
}
|
|
547
|
-
function GoogleMapsClientProvider(
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
libraries
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
953
|
+
function GoogleMapsClientProvider(t0) {
|
|
954
|
+
const $ = c(9);
|
|
955
|
+
const {
|
|
956
|
+
children,
|
|
957
|
+
locale: t1,
|
|
958
|
+
libraries: t2
|
|
959
|
+
} = t0;
|
|
960
|
+
const locale = t1 === undefined ? "fr" : t1;
|
|
961
|
+
const libraries = t2 === undefined ? null : t2;
|
|
962
|
+
const {
|
|
963
|
+
apiKey
|
|
964
|
+
} = useGoogleKeys();
|
|
965
|
+
const exisitingClient = useGoogleMapsClient();
|
|
966
|
+
const [client, setClient] = useState(exisitingClient);
|
|
967
|
+
let t3;
|
|
968
|
+
let t4;
|
|
969
|
+
if ($[0] !== apiKey || $[1] !== exisitingClient || $[2] !== libraries || $[3] !== locale) {
|
|
970
|
+
t3 = () => {
|
|
971
|
+
if (exisitingClient === null) {
|
|
972
|
+
loadGoogleMaps({
|
|
973
|
+
apiKey,
|
|
974
|
+
locale,
|
|
975
|
+
libraries
|
|
976
|
+
}).then(newClient => {
|
|
977
|
+
setClient(newClient);
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
t4 = [apiKey, locale, libraries, setClient, exisitingClient];
|
|
982
|
+
$[0] = apiKey;
|
|
983
|
+
$[1] = exisitingClient;
|
|
984
|
+
$[2] = libraries;
|
|
985
|
+
$[3] = locale;
|
|
986
|
+
$[4] = t3;
|
|
987
|
+
$[5] = t4;
|
|
988
|
+
} else {
|
|
989
|
+
t3 = $[4];
|
|
990
|
+
t4 = $[5];
|
|
991
|
+
}
|
|
992
|
+
useEffect(t3, t4);
|
|
993
|
+
let t5;
|
|
994
|
+
if ($[6] !== children || $[7] !== client) {
|
|
995
|
+
t5 = /*#__PURE__*/jsx(GoogleMapsClientContext, {
|
|
996
|
+
value: client,
|
|
997
|
+
children: children
|
|
998
|
+
});
|
|
999
|
+
$[6] = children;
|
|
1000
|
+
$[7] = client;
|
|
1001
|
+
$[8] = t5;
|
|
1002
|
+
} else {
|
|
1003
|
+
t5 = $[8];
|
|
1004
|
+
}
|
|
1005
|
+
return t5;
|
|
575
1006
|
}
|
|
576
1007
|
|
|
577
|
-
|
|
578
|
-
|
|
1008
|
+
const defaultLocales = ['en', 'fr'];
|
|
1009
|
+
const LocalesContext = /*#__PURE__*/createContext({
|
|
579
1010
|
locales: defaultLocales
|
|
580
1011
|
});
|
|
581
1012
|
function useLocalesContext() {
|
|
582
|
-
|
|
1013
|
+
const context = useContext(LocalesContext);
|
|
583
1014
|
return context;
|
|
584
1015
|
}
|
|
585
1016
|
function useLocales() {
|
|
586
|
-
|
|
587
|
-
locales
|
|
1017
|
+
const {
|
|
1018
|
+
locales
|
|
1019
|
+
} = useLocalesContext();
|
|
588
1020
|
return locales;
|
|
589
1021
|
}
|
|
590
1022
|
function useOtherLocales() {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
1023
|
+
const $ = c(5);
|
|
1024
|
+
const {
|
|
1025
|
+
locales
|
|
1026
|
+
} = useLocalesContext();
|
|
1027
|
+
const {
|
|
1028
|
+
locale
|
|
1029
|
+
} = useIntl();
|
|
1030
|
+
let t0;
|
|
1031
|
+
if ($[0] !== locale || $[1] !== locales) {
|
|
1032
|
+
let t1;
|
|
1033
|
+
if ($[3] !== locale) {
|
|
1034
|
+
t1 = it => it !== locale;
|
|
1035
|
+
$[3] = locale;
|
|
1036
|
+
$[4] = t1;
|
|
1037
|
+
} else {
|
|
1038
|
+
t1 = $[4];
|
|
1039
|
+
}
|
|
1040
|
+
t0 = locales.filter(t1);
|
|
1041
|
+
$[0] = locale;
|
|
1042
|
+
$[1] = locales;
|
|
1043
|
+
$[2] = t0;
|
|
1044
|
+
} else {
|
|
1045
|
+
t0 = $[2];
|
|
1046
|
+
}
|
|
1047
|
+
const otherLocales = t0;
|
|
600
1048
|
return otherLocales;
|
|
601
1049
|
}
|
|
602
|
-
|
|
603
|
-
function LocalesProvider(
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
1050
|
+
const DEFAULT_LOCALES = [];
|
|
1051
|
+
function LocalesProvider(t0) {
|
|
1052
|
+
const $ = c(5);
|
|
1053
|
+
const {
|
|
1054
|
+
locales: t1,
|
|
1055
|
+
children
|
|
1056
|
+
} = t0;
|
|
1057
|
+
const locales = t1 === undefined ? DEFAULT_LOCALES : t1;
|
|
1058
|
+
let t2;
|
|
1059
|
+
if ($[0] !== locales) {
|
|
1060
|
+
t2 = {
|
|
1061
|
+
locales
|
|
610
1062
|
};
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
1063
|
+
$[0] = locales;
|
|
1064
|
+
$[1] = t2;
|
|
1065
|
+
} else {
|
|
1066
|
+
t2 = $[1];
|
|
1067
|
+
}
|
|
1068
|
+
const value = t2;
|
|
1069
|
+
let t3;
|
|
1070
|
+
if ($[2] !== children || $[3] !== value) {
|
|
1071
|
+
t3 = /*#__PURE__*/jsx(LocalesContext, {
|
|
1072
|
+
value: value,
|
|
1073
|
+
children: children
|
|
1074
|
+
});
|
|
1075
|
+
$[2] = children;
|
|
1076
|
+
$[3] = value;
|
|
1077
|
+
$[4] = t3;
|
|
1078
|
+
} else {
|
|
1079
|
+
t3 = $[4];
|
|
1080
|
+
}
|
|
1081
|
+
return t3;
|
|
616
1082
|
}
|
|
617
1083
|
|
|
618
|
-
|
|
1084
|
+
const ModalContext = /*#__PURE__*/createContext(null);
|
|
619
1085
|
function useModal() {
|
|
620
1086
|
return useContext(ModalContext) || {};
|
|
621
1087
|
}
|
|
622
|
-
|
|
623
|
-
function ModalProvider(
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}, [setModals]);
|
|
646
|
-
var unregister = useCallback(function () {
|
|
647
|
-
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
648
|
-
var _modalsRef$current2 = modalsRef.current,
|
|
649
|
-
currentModals = _modalsRef$current2 === void 0 ? [] : _modalsRef$current2;
|
|
650
|
-
var foundIndex = currentModals.findIndex(function (_ref2) {
|
|
651
|
-
var modalId = _ref2.id;
|
|
652
|
-
return modalId === id;
|
|
653
|
-
});
|
|
654
|
-
if (foundIndex !== -1) {
|
|
655
|
-
var newModals = currentModals.filter(function (_ref3) {
|
|
656
|
-
var modalId = _ref3.id;
|
|
657
|
-
return modalId !== id;
|
|
658
|
-
});
|
|
1088
|
+
const DEFAULT_MODALS = [];
|
|
1089
|
+
function ModalProvider(t0) {
|
|
1090
|
+
const $ = c(17);
|
|
1091
|
+
const {
|
|
1092
|
+
children,
|
|
1093
|
+
container: t1
|
|
1094
|
+
} = t0;
|
|
1095
|
+
const initialContainer = t1 === undefined ? null : t1;
|
|
1096
|
+
const [container, setContainer] = useState(initialContainer);
|
|
1097
|
+
const [modals, setModals] = useState(DEFAULT_MODALS);
|
|
1098
|
+
const modalsRef = useRef(modals);
|
|
1099
|
+
let t2;
|
|
1100
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1101
|
+
t2 = (id, t3) => {
|
|
1102
|
+
const data = t3 === undefined ? null : t3;
|
|
1103
|
+
const {
|
|
1104
|
+
current: t4
|
|
1105
|
+
} = modalsRef;
|
|
1106
|
+
const currentModals = t4 === undefined ? [] : t4;
|
|
1107
|
+
const newModals = [...currentModals, {
|
|
1108
|
+
id,
|
|
1109
|
+
...data
|
|
1110
|
+
}];
|
|
659
1111
|
setModals(newModals);
|
|
660
1112
|
modalsRef.current = newModals;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
1113
|
+
};
|
|
1114
|
+
$[0] = t2;
|
|
1115
|
+
} else {
|
|
1116
|
+
t2 = $[0];
|
|
1117
|
+
}
|
|
1118
|
+
const register = t2;
|
|
1119
|
+
let t3;
|
|
1120
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1121
|
+
t3 = t4 => {
|
|
1122
|
+
const id_0 = t4 === undefined ? null : t4;
|
|
1123
|
+
const {
|
|
1124
|
+
current: t5
|
|
1125
|
+
} = modalsRef;
|
|
1126
|
+
const currentModals_0 = t5 === undefined ? [] : t5;
|
|
1127
|
+
const foundIndex = currentModals_0.findIndex(t6 => {
|
|
1128
|
+
const {
|
|
1129
|
+
id: modalId
|
|
1130
|
+
} = t6;
|
|
1131
|
+
return modalId === id_0;
|
|
677
1132
|
});
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
return {
|
|
689
|
-
modals: modals,
|
|
690
|
-
container: container,
|
|
691
|
-
setContainer: setContainer,
|
|
692
|
-
register: register,
|
|
693
|
-
unregister: unregister,
|
|
694
|
-
closeLastModal: closeLastModal,
|
|
695
|
-
getModalById: getModalById
|
|
1133
|
+
if (foundIndex !== -1) {
|
|
1134
|
+
const newModals_0 = currentModals_0.filter(t7 => {
|
|
1135
|
+
const {
|
|
1136
|
+
id: modalId_0
|
|
1137
|
+
} = t7;
|
|
1138
|
+
return modalId_0 !== id_0;
|
|
1139
|
+
});
|
|
1140
|
+
setModals(newModals_0);
|
|
1141
|
+
modalsRef.current = newModals_0;
|
|
1142
|
+
}
|
|
696
1143
|
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1144
|
+
$[1] = t3;
|
|
1145
|
+
} else {
|
|
1146
|
+
t3 = $[1];
|
|
1147
|
+
}
|
|
1148
|
+
const unregister = t3;
|
|
1149
|
+
let t4;
|
|
1150
|
+
if ($[2] !== modals) {
|
|
1151
|
+
t4 = id_1 => {
|
|
1152
|
+
const {
|
|
1153
|
+
requestClose: t6
|
|
1154
|
+
} = modals.find(t5 => {
|
|
1155
|
+
const {
|
|
1156
|
+
id: modalId_1
|
|
1157
|
+
} = t5;
|
|
1158
|
+
return modalId_1 === id_1;
|
|
1159
|
+
}) || {};
|
|
1160
|
+
const requestClose = t6 === undefined ? null : t6;
|
|
1161
|
+
if (requestClose !== null) {
|
|
1162
|
+
requestClose();
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
$[2] = modals;
|
|
1166
|
+
$[3] = t4;
|
|
1167
|
+
} else {
|
|
1168
|
+
t4 = $[3];
|
|
1169
|
+
}
|
|
1170
|
+
const closeModal = t4;
|
|
1171
|
+
let t5;
|
|
1172
|
+
if ($[4] !== modals) {
|
|
1173
|
+
t5 = () => {
|
|
1174
|
+
const {
|
|
1175
|
+
requestClose: t6
|
|
1176
|
+
} = modals !== null && modals.length > 0 ? modals[modals.length - 1] || {} : {};
|
|
1177
|
+
const requestClose_0 = t6 === undefined ? null : t6;
|
|
1178
|
+
if (requestClose_0 !== null) {
|
|
1179
|
+
requestClose_0();
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
$[4] = modals;
|
|
1183
|
+
$[5] = t5;
|
|
1184
|
+
} else {
|
|
1185
|
+
t5 = $[5];
|
|
1186
|
+
}
|
|
1187
|
+
const closeLastModal = t5;
|
|
1188
|
+
let t6;
|
|
1189
|
+
if ($[6] !== modals) {
|
|
1190
|
+
t6 = modalId_2 => (modals || []).find(modal => modal?.id === modalId_2) || null;
|
|
1191
|
+
$[6] = modals;
|
|
1192
|
+
$[7] = t6;
|
|
1193
|
+
} else {
|
|
1194
|
+
t6 = $[7];
|
|
1195
|
+
}
|
|
1196
|
+
const getModalById = t6;
|
|
1197
|
+
let t7;
|
|
1198
|
+
if ($[8] !== closeLastModal || $[9] !== closeModal || $[10] !== container || $[11] !== getModalById || $[12] !== modals) {
|
|
1199
|
+
t7 = {
|
|
1200
|
+
modals,
|
|
1201
|
+
container,
|
|
1202
|
+
setContainer,
|
|
1203
|
+
register,
|
|
1204
|
+
unregister,
|
|
1205
|
+
closeModal,
|
|
1206
|
+
closeLastModal,
|
|
1207
|
+
getModalById
|
|
1208
|
+
};
|
|
1209
|
+
$[8] = closeLastModal;
|
|
1210
|
+
$[9] = closeModal;
|
|
1211
|
+
$[10] = container;
|
|
1212
|
+
$[11] = getModalById;
|
|
1213
|
+
$[12] = modals;
|
|
1214
|
+
$[13] = t7;
|
|
1215
|
+
} else {
|
|
1216
|
+
t7 = $[13];
|
|
1217
|
+
}
|
|
1218
|
+
const value = t7;
|
|
1219
|
+
let t8;
|
|
1220
|
+
if ($[14] !== children || $[15] !== value) {
|
|
1221
|
+
t8 = /*#__PURE__*/jsx(ModalContext, {
|
|
1222
|
+
value: value,
|
|
1223
|
+
children: children
|
|
1224
|
+
});
|
|
1225
|
+
$[14] = children;
|
|
1226
|
+
$[15] = value;
|
|
1227
|
+
$[16] = t8;
|
|
1228
|
+
} else {
|
|
1229
|
+
t8 = $[16];
|
|
1230
|
+
}
|
|
1231
|
+
return t8;
|
|
702
1232
|
}
|
|
703
1233
|
|
|
704
|
-
|
|
1234
|
+
const PanelsContext = /*#__PURE__*/createContext({
|
|
705
1235
|
panels: [],
|
|
706
1236
|
container: null,
|
|
707
|
-
setContainer:
|
|
708
|
-
register:
|
|
709
|
-
unregister:
|
|
1237
|
+
setContainer: () => {},
|
|
1238
|
+
register: () => {},
|
|
1239
|
+
unregister: () => {}
|
|
710
1240
|
});
|
|
711
1241
|
function usePanels() {
|
|
712
1242
|
return useContext(PanelsContext) || {};
|
|
713
1243
|
}
|
|
714
1244
|
function withPanels(WrappedComponent) {
|
|
715
1245
|
function WithPanelsComponent(props) {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
1246
|
+
const $ = c(2);
|
|
1247
|
+
let t0;
|
|
1248
|
+
if ($[0] !== props) {
|
|
1249
|
+
t0 = /*#__PURE__*/jsx(PanelsContext.Consumer, {
|
|
1250
|
+
children: t1 => {
|
|
1251
|
+
const {
|
|
1252
|
+
panels,
|
|
1253
|
+
setContainer,
|
|
1254
|
+
container,
|
|
1255
|
+
register,
|
|
1256
|
+
unregister
|
|
1257
|
+
} = t1;
|
|
1258
|
+
return /*#__PURE__*/jsx(WrappedComponent, {
|
|
1259
|
+
panelsContainer: container,
|
|
1260
|
+
setPanelsContainer: setContainer,
|
|
1261
|
+
panels: panels,
|
|
1262
|
+
registerPanel: register,
|
|
1263
|
+
unregisterPanel: unregister,
|
|
1264
|
+
...props
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
$[0] = props;
|
|
1269
|
+
$[1] = t0;
|
|
1270
|
+
} else {
|
|
1271
|
+
t0 = $[1];
|
|
1272
|
+
}
|
|
1273
|
+
return t0;
|
|
732
1274
|
}
|
|
733
|
-
WithPanelsComponent.displayName =
|
|
1275
|
+
WithPanelsComponent.displayName = `WithPanels(${getDisplayName(WrappedComponent)})`;
|
|
734
1276
|
return WithPanelsComponent;
|
|
735
1277
|
}
|
|
736
|
-
function PanelsProvider(
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
if (foundIndex !== -1) {
|
|
765
|
-
var newPanels = currentPanels.filter(function (_ref4) {
|
|
766
|
-
var modalId = _ref4.id;
|
|
767
|
-
return modalId !== id;
|
|
768
|
-
});
|
|
1278
|
+
function PanelsProvider(t0) {
|
|
1279
|
+
const $ = c(9);
|
|
1280
|
+
const {
|
|
1281
|
+
children,
|
|
1282
|
+
container: t1
|
|
1283
|
+
} = t0;
|
|
1284
|
+
const initialContainer = t1 === undefined ? null : t1;
|
|
1285
|
+
const [container, setContainer] = useState(initialContainer);
|
|
1286
|
+
let t2;
|
|
1287
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1288
|
+
t2 = [];
|
|
1289
|
+
$[0] = t2;
|
|
1290
|
+
} else {
|
|
1291
|
+
t2 = $[0];
|
|
1292
|
+
}
|
|
1293
|
+
const [panels, setPanels] = useState(t2);
|
|
1294
|
+
const panelsRef = useRef(panels);
|
|
1295
|
+
let t3;
|
|
1296
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1297
|
+
t3 = (id, t4) => {
|
|
1298
|
+
const data = t4 === undefined ? null : t4;
|
|
1299
|
+
const {
|
|
1300
|
+
current: currentPanels
|
|
1301
|
+
} = panelsRef;
|
|
1302
|
+
const newPanels = [...currentPanels, {
|
|
1303
|
+
id,
|
|
1304
|
+
...data
|
|
1305
|
+
}];
|
|
769
1306
|
setPanels(newPanels);
|
|
770
1307
|
panelsRef.current = newPanels;
|
|
771
|
-
}
|
|
772
|
-
}, [panels, setPanels]);
|
|
773
|
-
var value = useMemo(function () {
|
|
774
|
-
return {
|
|
775
|
-
panels: panels,
|
|
776
|
-
setContainer: setContainer,
|
|
777
|
-
container: container,
|
|
778
|
-
register: register,
|
|
779
|
-
unregister: unregister
|
|
780
1308
|
};
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
1309
|
+
$[1] = t3;
|
|
1310
|
+
} else {
|
|
1311
|
+
t3 = $[1];
|
|
1312
|
+
}
|
|
1313
|
+
const register = t3;
|
|
1314
|
+
let t4;
|
|
1315
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1316
|
+
t4 = id_0 => {
|
|
1317
|
+
const {
|
|
1318
|
+
current: currentPanels_0
|
|
1319
|
+
} = panelsRef;
|
|
1320
|
+
const foundIndex = currentPanels_0.findIndex(t5 => {
|
|
1321
|
+
const {
|
|
1322
|
+
id: modalId
|
|
1323
|
+
} = t5;
|
|
1324
|
+
return modalId === id_0;
|
|
1325
|
+
});
|
|
1326
|
+
if (foundIndex !== -1) {
|
|
1327
|
+
const newPanels_0 = currentPanels_0.filter(t6 => {
|
|
1328
|
+
const {
|
|
1329
|
+
id: modalId_0
|
|
1330
|
+
} = t6;
|
|
1331
|
+
return modalId_0 !== id_0;
|
|
1332
|
+
});
|
|
1333
|
+
setPanels(newPanels_0);
|
|
1334
|
+
panelsRef.current = newPanels_0;
|
|
1335
|
+
}
|
|
1336
|
+
};
|
|
1337
|
+
$[2] = t4;
|
|
1338
|
+
} else {
|
|
1339
|
+
t4 = $[2];
|
|
1340
|
+
}
|
|
1341
|
+
const unregister = t4;
|
|
1342
|
+
let t5;
|
|
1343
|
+
if ($[3] !== container || $[4] !== panels) {
|
|
1344
|
+
t5 = {
|
|
1345
|
+
panels,
|
|
1346
|
+
setContainer,
|
|
1347
|
+
container,
|
|
1348
|
+
register,
|
|
1349
|
+
unregister
|
|
1350
|
+
};
|
|
1351
|
+
$[3] = container;
|
|
1352
|
+
$[4] = panels;
|
|
1353
|
+
$[5] = t5;
|
|
1354
|
+
} else {
|
|
1355
|
+
t5 = $[5];
|
|
1356
|
+
}
|
|
1357
|
+
const value = t5;
|
|
1358
|
+
let t6;
|
|
1359
|
+
if ($[6] !== children || $[7] !== value) {
|
|
1360
|
+
t6 = /*#__PURE__*/jsx(PanelsContext, {
|
|
1361
|
+
value: value,
|
|
1362
|
+
children: children
|
|
1363
|
+
});
|
|
1364
|
+
$[6] = children;
|
|
1365
|
+
$[7] = value;
|
|
1366
|
+
$[8] = t6;
|
|
1367
|
+
} else {
|
|
1368
|
+
t6 = $[8];
|
|
1369
|
+
}
|
|
1370
|
+
return t6;
|
|
786
1371
|
}
|
|
787
1372
|
|
|
788
|
-
|
|
789
|
-
var PanneauContext = /*#__PURE__*/createContext(null);
|
|
1373
|
+
const PanneauContext = /*#__PURE__*/createContext(null);
|
|
790
1374
|
function usePanneau() {
|
|
791
1375
|
return useContext(PanneauContext);
|
|
792
1376
|
}
|
|
793
|
-
|
|
1377
|
+
const DEFAULT_RESOURCES = [];
|
|
794
1378
|
function usePanneauResources() {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
1379
|
+
const {
|
|
1380
|
+
resources: t0
|
|
1381
|
+
} = usePanneau() || {};
|
|
1382
|
+
const resources = t0 === undefined ? DEFAULT_RESOURCES : t0;
|
|
798
1383
|
return resources;
|
|
799
1384
|
}
|
|
800
1385
|
function usePanneauResource(id) {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1386
|
+
const $ = c(3);
|
|
1387
|
+
const resources = usePanneauResources();
|
|
1388
|
+
if (isObject(id)) {
|
|
1389
|
+
return id;
|
|
1390
|
+
}
|
|
1391
|
+
let t0;
|
|
1392
|
+
if ($[0] !== id || $[1] !== resources) {
|
|
1393
|
+
t0 = id !== null ? resources.find(it => it.id === id) || null : null;
|
|
1394
|
+
$[0] = id;
|
|
1395
|
+
$[1] = resources;
|
|
1396
|
+
$[2] = t0;
|
|
1397
|
+
} else {
|
|
1398
|
+
t0 = $[2];
|
|
1399
|
+
}
|
|
1400
|
+
return t0;
|
|
805
1401
|
}
|
|
806
1402
|
function usePanneauColorScheme() {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
theme
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
if (
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
1403
|
+
const $ = c(6);
|
|
1404
|
+
const {
|
|
1405
|
+
theme: t0
|
|
1406
|
+
} = usePanneau() || {};
|
|
1407
|
+
const theme = t0 === undefined ? null : t0;
|
|
1408
|
+
let t1;
|
|
1409
|
+
if ($[0] !== theme) {
|
|
1410
|
+
t1 = theme || {};
|
|
1411
|
+
$[0] = theme;
|
|
1412
|
+
$[1] = t1;
|
|
1413
|
+
} else {
|
|
1414
|
+
t1 = $[1];
|
|
1415
|
+
}
|
|
1416
|
+
const {
|
|
1417
|
+
colorScheme: t2
|
|
1418
|
+
} = t1;
|
|
1419
|
+
const colorScheme = t2 === undefined ? "light" : t2;
|
|
1420
|
+
if (colorScheme === null || colorScheme === "light" || colorScheme === "dark") {
|
|
1421
|
+
let t3;
|
|
1422
|
+
if ($[2] !== colorScheme) {
|
|
1423
|
+
t3 = colorScheme === "dark" ? {
|
|
1424
|
+
theme: "dark",
|
|
1425
|
+
background: "dark",
|
|
1426
|
+
text: "light"
|
|
1427
|
+
} : {
|
|
1428
|
+
theme: "light",
|
|
1429
|
+
background: "light",
|
|
1430
|
+
text: "dark"
|
|
1431
|
+
};
|
|
1432
|
+
$[2] = colorScheme;
|
|
1433
|
+
$[3] = t3;
|
|
1434
|
+
} else {
|
|
1435
|
+
t3 = $[3];
|
|
1436
|
+
}
|
|
1437
|
+
return t3;
|
|
1438
|
+
}
|
|
1439
|
+
let t3;
|
|
1440
|
+
if ($[4] !== colorScheme) {
|
|
1441
|
+
t3 = {
|
|
1442
|
+
theme: colorScheme,
|
|
1443
|
+
background: null,
|
|
1444
|
+
text: null
|
|
822
1445
|
};
|
|
1446
|
+
$[4] = colorScheme;
|
|
1447
|
+
$[5] = t3;
|
|
1448
|
+
} else {
|
|
1449
|
+
t3 = $[5];
|
|
823
1450
|
}
|
|
824
|
-
return
|
|
825
|
-
theme: colorScheme,
|
|
826
|
-
background: null,
|
|
827
|
-
text: null
|
|
828
|
-
};
|
|
1451
|
+
return t3;
|
|
829
1452
|
}
|
|
830
|
-
|
|
1453
|
+
const DEFAULT_COMPONENTS = {};
|
|
831
1454
|
function usePanneauComponents() {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
1455
|
+
const {
|
|
1456
|
+
components: t0
|
|
1457
|
+
} = usePanneau() || {};
|
|
1458
|
+
const components = t0 === undefined ? DEFAULT_COMPONENTS : t0;
|
|
835
1459
|
return components;
|
|
836
1460
|
}
|
|
837
1461
|
function usePanneauComponent(namespace, name) {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
components
|
|
841
|
-
|
|
842
|
-
|
|
1462
|
+
const $ = c(2);
|
|
1463
|
+
const {
|
|
1464
|
+
components: t0
|
|
1465
|
+
} = usePanneau() || {};
|
|
1466
|
+
let t1;
|
|
1467
|
+
if ($[0] !== t0) {
|
|
1468
|
+
t1 = t0 === undefined ? {} : t0;
|
|
1469
|
+
$[0] = t0;
|
|
1470
|
+
$[1] = t1;
|
|
1471
|
+
} else {
|
|
1472
|
+
t1 = $[1];
|
|
1473
|
+
}
|
|
1474
|
+
const components = t1;
|
|
1475
|
+
const path = namespace !== null ? `${namespace}.${name}` : name || null;
|
|
1476
|
+
const component = path !== null ? components[path] || null : null;
|
|
843
1477
|
if (isString(component)) {
|
|
844
1478
|
return component;
|
|
845
1479
|
}
|
|
846
|
-
if (isObject(component) && isString(component
|
|
847
|
-
component.component;
|
|
848
|
-
_objectWithoutProperties(component, _excluded);
|
|
1480
|
+
if (isObject(component) && isString(component?.component)) {
|
|
849
1481
|
return component.component;
|
|
850
1482
|
}
|
|
851
1483
|
return null;
|
|
852
1484
|
}
|
|
853
1485
|
function usePanneauAuth() {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
auth
|
|
1486
|
+
const $ = c(2);
|
|
1487
|
+
const {
|
|
1488
|
+
auth: t0
|
|
1489
|
+
} = usePanneau() || {};
|
|
1490
|
+
let t1;
|
|
1491
|
+
if ($[0] !== t0) {
|
|
1492
|
+
t1 = t0 === undefined ? {} : t0;
|
|
1493
|
+
$[0] = t0;
|
|
1494
|
+
$[1] = t1;
|
|
1495
|
+
} else {
|
|
1496
|
+
t1 = $[1];
|
|
1497
|
+
}
|
|
1498
|
+
const auth = t1;
|
|
857
1499
|
return auth;
|
|
858
1500
|
}
|
|
859
1501
|
function usePanneauSettings() {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
settings
|
|
1502
|
+
const $ = c(2);
|
|
1503
|
+
const {
|
|
1504
|
+
settings: t0
|
|
1505
|
+
} = usePanneau() || {};
|
|
1506
|
+
let t1;
|
|
1507
|
+
if ($[0] !== t0) {
|
|
1508
|
+
t1 = t0 === undefined ? {} : t0;
|
|
1509
|
+
$[0] = t0;
|
|
1510
|
+
$[1] = t1;
|
|
1511
|
+
} else {
|
|
1512
|
+
t1 = $[1];
|
|
1513
|
+
}
|
|
1514
|
+
const settings = t1;
|
|
863
1515
|
return settings;
|
|
864
1516
|
}
|
|
865
|
-
function PanneauProvider(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
1517
|
+
function PanneauProvider(t0) {
|
|
1518
|
+
const $ = c(3);
|
|
1519
|
+
const {
|
|
1520
|
+
definition,
|
|
1521
|
+
children
|
|
1522
|
+
} = t0;
|
|
1523
|
+
let t1;
|
|
1524
|
+
if ($[0] !== children || $[1] !== definition) {
|
|
1525
|
+
t1 = /*#__PURE__*/jsx(PanneauContext, {
|
|
1526
|
+
value: definition,
|
|
1527
|
+
children: children
|
|
1528
|
+
});
|
|
1529
|
+
$[0] = children;
|
|
1530
|
+
$[1] = definition;
|
|
1531
|
+
$[2] = t1;
|
|
1532
|
+
} else {
|
|
1533
|
+
t1 = $[2];
|
|
1534
|
+
}
|
|
1535
|
+
return t1;
|
|
872
1536
|
}
|
|
873
1537
|
|
|
874
|
-
|
|
1538
|
+
const ResourceContext = /*#__PURE__*/createContext(null);
|
|
875
1539
|
function useResource() {
|
|
876
1540
|
return use(ResourceContext);
|
|
877
1541
|
}
|
|
878
|
-
function ResourceProvider(
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
1542
|
+
function ResourceProvider(t0) {
|
|
1543
|
+
const $ = c(3);
|
|
1544
|
+
const {
|
|
1545
|
+
resource,
|
|
1546
|
+
children
|
|
1547
|
+
} = t0;
|
|
1548
|
+
let t1;
|
|
1549
|
+
if ($[0] !== children || $[1] !== resource) {
|
|
1550
|
+
t1 = /*#__PURE__*/jsx(ResourceContext, {
|
|
1551
|
+
value: resource,
|
|
1552
|
+
children: children
|
|
1553
|
+
});
|
|
1554
|
+
$[0] = children;
|
|
1555
|
+
$[1] = resource;
|
|
1556
|
+
$[2] = t1;
|
|
1557
|
+
} else {
|
|
1558
|
+
t1 = $[2];
|
|
1559
|
+
}
|
|
1560
|
+
return t1;
|
|
885
1561
|
}
|
|
886
1562
|
|
|
887
1563
|
function useRoutePush() {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
args
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
search =
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
1564
|
+
const $ = c(3);
|
|
1565
|
+
const url = useUrlGenerator();
|
|
1566
|
+
const [, navigate] = useLocation();
|
|
1567
|
+
let t0;
|
|
1568
|
+
if ($[0] !== navigate || $[1] !== url) {
|
|
1569
|
+
t0 = (route, data, ...t1) => {
|
|
1570
|
+
const args = t1;
|
|
1571
|
+
if (isString(route)) {
|
|
1572
|
+
navigate(url(route, data), ...args);
|
|
1573
|
+
} else {
|
|
1574
|
+
const {
|
|
1575
|
+
pathname: t2,
|
|
1576
|
+
search: t3
|
|
1577
|
+
} = route || {};
|
|
1578
|
+
const pathname = t2 === undefined ? null : t2;
|
|
1579
|
+
const search = t3 === undefined ? null : t3;
|
|
1580
|
+
navigate(`${url(pathname, data)}${search !== null ? `?${search}` : ""}`, ...args);
|
|
1581
|
+
}
|
|
1582
|
+
};
|
|
1583
|
+
$[0] = navigate;
|
|
1584
|
+
$[1] = url;
|
|
1585
|
+
$[2] = t0;
|
|
1586
|
+
} else {
|
|
1587
|
+
t0 = $[2];
|
|
1588
|
+
}
|
|
1589
|
+
const push = t0;
|
|
907
1590
|
return push;
|
|
908
1591
|
}
|
|
909
1592
|
function useRouteBack() {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
1593
|
+
const $ = c(2);
|
|
1594
|
+
useUrlGenerator();
|
|
1595
|
+
const [, navigate] = useLocation();
|
|
1596
|
+
let t0;
|
|
1597
|
+
if ($[0] !== navigate) {
|
|
1598
|
+
t0 = () => navigate(-1);
|
|
1599
|
+
$[0] = navigate;
|
|
1600
|
+
$[1] = t0;
|
|
1601
|
+
} else {
|
|
1602
|
+
t0 = $[1];
|
|
1603
|
+
}
|
|
1604
|
+
const back = t0;
|
|
917
1605
|
return back;
|
|
918
1606
|
}
|
|
919
1607
|
|
|
920
1608
|
function useTracking() {
|
|
921
1609
|
return useContext(TrackingContext);
|
|
922
1610
|
}
|
|
923
|
-
function TrackingProvider(
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1611
|
+
function TrackingProvider(t0) {
|
|
1612
|
+
const $ = c(5);
|
|
1613
|
+
const {
|
|
1614
|
+
variables: t1,
|
|
1615
|
+
children
|
|
1616
|
+
} = t0;
|
|
1617
|
+
const variables = t1 === undefined ? null : t1;
|
|
1618
|
+
const contextTracking = useTracking() || null;
|
|
1619
|
+
let t2;
|
|
1620
|
+
bb0: {
|
|
929
1621
|
if (contextTracking !== null) {
|
|
930
1622
|
contextTracking.setVariables(variables);
|
|
931
|
-
|
|
1623
|
+
t2 = contextTracking;
|
|
1624
|
+
break bb0;
|
|
932
1625
|
}
|
|
933
|
-
|
|
934
|
-
|
|
1626
|
+
let t3;
|
|
1627
|
+
if ($[0] !== variables) {
|
|
1628
|
+
t3 = new Tracking({
|
|
1629
|
+
variables
|
|
1630
|
+
});
|
|
1631
|
+
$[0] = variables;
|
|
1632
|
+
$[1] = t3;
|
|
1633
|
+
} else {
|
|
1634
|
+
t3 = $[1];
|
|
1635
|
+
}
|
|
1636
|
+
t2 = t3;
|
|
1637
|
+
}
|
|
1638
|
+
const tracking = t2;
|
|
1639
|
+
let t3;
|
|
1640
|
+
if ($[2] !== children || $[3] !== tracking) {
|
|
1641
|
+
t3 = /*#__PURE__*/jsx(TrackingContainer, {
|
|
1642
|
+
tracking: tracking,
|
|
1643
|
+
children: children
|
|
935
1644
|
});
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
1645
|
+
$[2] = children;
|
|
1646
|
+
$[3] = tracking;
|
|
1647
|
+
$[4] = t3;
|
|
1648
|
+
} else {
|
|
1649
|
+
t3 = $[4];
|
|
1650
|
+
}
|
|
1651
|
+
return t3;
|
|
941
1652
|
}
|
|
942
1653
|
|
|
943
1654
|
export { ACTIONS_NAMESPACE, APP_NAMESPACE, BUTTONS_NAMESPACE, ComponentsContext, ComponentsProvider, DISPLAYS_NAMESPACE, DefinitionProvider, FIELDS_NAMESPACE, FILTERS_NAMESPACE, FORMS_NAMESPACE, FieldsContext, FieldsProvider, FontsContext, FontsProvider, FormProvider, GoogleApiClientContext, GoogleApiClientProvider, GoogleKeysContext, GoogleKeysProvider, GoogleMapsClientContext, GoogleMapsClientProvider, LISTS_NAMESPACE, LocalesContext, LocalesProvider, MODALS_NAMESPACE, ModalContext, ModalProvider, PAGES_NAMESPACE, PREVIEWS_NAMESPACE, PanelsContext, PanelsProvider, PanneauProvider, ResourceProvider, TrackingProvider, useActionComponent, useActionsComponents, useActionsComponentsManager, useAppComponent, useAppComponents, useAppComponentsManager, useButtonComponent, useButtonsComponents, useButtonsComponentsManager, useComponent, useComponents, useComponentsManager, useDefinition, useDefinitionContext, useDisplayComponent, useDisplaysComponents, useDisplaysComponentsManager, useField, useFieldComponent, useFields, useFieldsComponents, useFieldsComponentsManager, useFieldsManager, useFilterComponent, useFiltersComponents, useFiltersComponentsManager, useFonts, useFormComponent, useFormContext, useFormSetValue, useFormValue, useFormsComponents, useFormsComponentsManager, useGoogleApiClient, useGoogleFonts, useGoogleKeys, useGoogleMapsClient, useListComponent, useListsComponents, useListsComponentsManager, useLocales, useLocalesContext, useModal, useModalComponent, useModalsComponents, useModalsComponentsManager, useOtherLocales, usePageComponent, usePagesComponents, usePagesComponentsManager, usePanels, usePanneau, usePanneauAuth, usePanneauColorScheme, usePanneauComponent, usePanneauComponents, usePanneauResource, usePanneauResources, usePanneauSettings, usePreviewComponent, usePreviewsComponents, usePreviewsComponentsManager, useResource, useRouteBack, useRoutePush, useTracking, withGoogleApiClient, withGoogleMapsClient, withPanels };
|