@balby/booking-search 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -1
- package/dist/index.js +329 -1819
- package/package.json +11 -3
- package/src/demo.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1,1498 +1,8 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
7
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
8
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
9
|
-
for (let key of __getOwnPropNames(mod))
|
|
10
|
-
if (!__hasOwnProp.call(to, key))
|
|
11
|
-
__defProp(to, key, {
|
|
12
|
-
get: () => mod[key],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
18
|
-
|
|
19
|
-
// node_modules/react/cjs/react.development.js
|
|
20
|
-
var require_react_development = __commonJS((exports, module) => {
|
|
21
|
-
(function() {
|
|
22
|
-
function defineDeprecationWarning(methodName, info) {
|
|
23
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
24
|
-
get: function() {
|
|
25
|
-
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function getIteratorFn(maybeIterable) {
|
|
30
|
-
if (maybeIterable === null || typeof maybeIterable !== "object")
|
|
31
|
-
return null;
|
|
32
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
33
|
-
return typeof maybeIterable === "function" ? maybeIterable : null;
|
|
34
|
-
}
|
|
35
|
-
function warnNoop(publicInstance, callerName) {
|
|
36
|
-
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
37
|
-
var warningKey = publicInstance + "." + callerName;
|
|
38
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, publicInstance), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
39
|
-
}
|
|
40
|
-
function Component(props, context, updater) {
|
|
41
|
-
this.props = props;
|
|
42
|
-
this.context = context;
|
|
43
|
-
this.refs = emptyObject;
|
|
44
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
45
|
-
}
|
|
46
|
-
function ComponentDummy() {}
|
|
47
|
-
function PureComponent(props, context, updater) {
|
|
48
|
-
this.props = props;
|
|
49
|
-
this.context = context;
|
|
50
|
-
this.refs = emptyObject;
|
|
51
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
52
|
-
}
|
|
53
|
-
function noop() {}
|
|
54
|
-
function testStringCoercion(value) {
|
|
55
|
-
return "" + value;
|
|
56
|
-
}
|
|
57
|
-
function checkKeyStringCoercion(value) {
|
|
58
|
-
try {
|
|
59
|
-
testStringCoercion(value);
|
|
60
|
-
var JSCompiler_inline_result = false;
|
|
61
|
-
} catch (e) {
|
|
62
|
-
JSCompiler_inline_result = true;
|
|
63
|
-
}
|
|
64
|
-
if (JSCompiler_inline_result) {
|
|
65
|
-
JSCompiler_inline_result = console;
|
|
66
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
67
|
-
var JSCompiler_inline_result$jscomp$0 = typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
68
|
-
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
69
|
-
return testStringCoercion(value);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function getComponentNameFromType(type) {
|
|
73
|
-
if (type == null)
|
|
74
|
-
return null;
|
|
75
|
-
if (typeof type === "function")
|
|
76
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
77
|
-
if (typeof type === "string")
|
|
78
|
-
return type;
|
|
79
|
-
switch (type) {
|
|
80
|
-
case REACT_FRAGMENT_TYPE:
|
|
81
|
-
return "Fragment";
|
|
82
|
-
case REACT_PROFILER_TYPE:
|
|
83
|
-
return "Profiler";
|
|
84
|
-
case REACT_STRICT_MODE_TYPE:
|
|
85
|
-
return "StrictMode";
|
|
86
|
-
case REACT_SUSPENSE_TYPE:
|
|
87
|
-
return "Suspense";
|
|
88
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
89
|
-
return "SuspenseList";
|
|
90
|
-
case REACT_ACTIVITY_TYPE:
|
|
91
|
-
return "Activity";
|
|
92
|
-
}
|
|
93
|
-
if (typeof type === "object")
|
|
94
|
-
switch (typeof type.tag === "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
95
|
-
case REACT_PORTAL_TYPE:
|
|
96
|
-
return "Portal";
|
|
97
|
-
case REACT_CONTEXT_TYPE:
|
|
98
|
-
return type.displayName || "Context";
|
|
99
|
-
case REACT_CONSUMER_TYPE:
|
|
100
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
101
|
-
case REACT_FORWARD_REF_TYPE:
|
|
102
|
-
var innerType = type.render;
|
|
103
|
-
type = type.displayName;
|
|
104
|
-
type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
105
|
-
return type;
|
|
106
|
-
case REACT_MEMO_TYPE:
|
|
107
|
-
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
108
|
-
case REACT_LAZY_TYPE:
|
|
109
|
-
innerType = type._payload;
|
|
110
|
-
type = type._init;
|
|
111
|
-
try {
|
|
112
|
-
return getComponentNameFromType(type(innerType));
|
|
113
|
-
} catch (x) {}
|
|
114
|
-
}
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
function getTaskName(type) {
|
|
118
|
-
if (type === REACT_FRAGMENT_TYPE)
|
|
119
|
-
return "<>";
|
|
120
|
-
if (typeof type === "object" && type !== null && type.$$typeof === REACT_LAZY_TYPE)
|
|
121
|
-
return "<...>";
|
|
122
|
-
try {
|
|
123
|
-
var name = getComponentNameFromType(type);
|
|
124
|
-
return name ? "<" + name + ">" : "<...>";
|
|
125
|
-
} catch (x) {
|
|
126
|
-
return "<...>";
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function getOwner() {
|
|
130
|
-
var dispatcher = ReactSharedInternals.A;
|
|
131
|
-
return dispatcher === null ? null : dispatcher.getOwner();
|
|
132
|
-
}
|
|
133
|
-
function UnknownOwner() {
|
|
134
|
-
return Error("react-stack-top-frame");
|
|
135
|
-
}
|
|
136
|
-
function hasValidKey(config) {
|
|
137
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
138
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
139
|
-
if (getter && getter.isReactWarning)
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
return config.key !== undefined;
|
|
143
|
-
}
|
|
144
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
145
|
-
function warnAboutAccessingKey() {
|
|
146
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
147
|
-
}
|
|
148
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
149
|
-
Object.defineProperty(props, "key", {
|
|
150
|
-
get: warnAboutAccessingKey,
|
|
151
|
-
configurable: true
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
155
|
-
var componentName = getComponentNameFromType(this.type);
|
|
156
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
157
|
-
componentName = this.props.ref;
|
|
158
|
-
return componentName !== undefined ? componentName : null;
|
|
159
|
-
}
|
|
160
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
161
|
-
var refProp = props.ref;
|
|
162
|
-
type = {
|
|
163
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
164
|
-
type,
|
|
165
|
-
key,
|
|
166
|
-
props,
|
|
167
|
-
_owner: owner
|
|
168
|
-
};
|
|
169
|
-
(refProp !== undefined ? refProp : null) !== null ? Object.defineProperty(type, "ref", {
|
|
170
|
-
enumerable: false,
|
|
171
|
-
get: elementRefGetterWithDeprecationWarning
|
|
172
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
173
|
-
type._store = {};
|
|
174
|
-
Object.defineProperty(type._store, "validated", {
|
|
175
|
-
configurable: false,
|
|
176
|
-
enumerable: false,
|
|
177
|
-
writable: true,
|
|
178
|
-
value: 0
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
181
|
-
configurable: false,
|
|
182
|
-
enumerable: false,
|
|
183
|
-
writable: true,
|
|
184
|
-
value: null
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(type, "_debugStack", {
|
|
187
|
-
configurable: false,
|
|
188
|
-
enumerable: false,
|
|
189
|
-
writable: true,
|
|
190
|
-
value: debugStack
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(type, "_debugTask", {
|
|
193
|
-
configurable: false,
|
|
194
|
-
enumerable: false,
|
|
195
|
-
writable: true,
|
|
196
|
-
value: debugTask
|
|
197
|
-
});
|
|
198
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
199
|
-
return type;
|
|
200
|
-
}
|
|
201
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
202
|
-
newKey = ReactElement(oldElement.type, newKey, oldElement.props, oldElement._owner, oldElement._debugStack, oldElement._debugTask);
|
|
203
|
-
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
204
|
-
return newKey;
|
|
205
|
-
}
|
|
206
|
-
function validateChildKeys(node) {
|
|
207
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : typeof node === "object" && node !== null && node.$$typeof === REACT_LAZY_TYPE && (node._payload.status === "fulfilled" ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
208
|
-
}
|
|
209
|
-
function isValidElement(object) {
|
|
210
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
211
|
-
}
|
|
212
|
-
function escape(key) {
|
|
213
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
214
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
215
|
-
return escaperLookup[match];
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
function getElementKey(element, index) {
|
|
219
|
-
return typeof element === "object" && element !== null && element.key != null ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
220
|
-
}
|
|
221
|
-
function resolveThenable(thenable) {
|
|
222
|
-
switch (thenable.status) {
|
|
223
|
-
case "fulfilled":
|
|
224
|
-
return thenable.value;
|
|
225
|
-
case "rejected":
|
|
226
|
-
throw thenable.reason;
|
|
227
|
-
default:
|
|
228
|
-
switch (typeof thenable.status === "string" ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
229
|
-
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
230
|
-
}, function(error) {
|
|
231
|
-
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
|
|
232
|
-
})), thenable.status) {
|
|
233
|
-
case "fulfilled":
|
|
234
|
-
return thenable.value;
|
|
235
|
-
case "rejected":
|
|
236
|
-
throw thenable.reason;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
throw thenable;
|
|
240
|
-
}
|
|
241
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
242
|
-
var type = typeof children;
|
|
243
|
-
if (type === "undefined" || type === "boolean")
|
|
244
|
-
children = null;
|
|
245
|
-
var invokeCallback = false;
|
|
246
|
-
if (children === null)
|
|
247
|
-
invokeCallback = true;
|
|
248
|
-
else
|
|
249
|
-
switch (type) {
|
|
250
|
-
case "bigint":
|
|
251
|
-
case "string":
|
|
252
|
-
case "number":
|
|
253
|
-
invokeCallback = true;
|
|
254
|
-
break;
|
|
255
|
-
case "object":
|
|
256
|
-
switch (children.$$typeof) {
|
|
257
|
-
case REACT_ELEMENT_TYPE:
|
|
258
|
-
case REACT_PORTAL_TYPE:
|
|
259
|
-
invokeCallback = true;
|
|
260
|
-
break;
|
|
261
|
-
case REACT_LAZY_TYPE:
|
|
262
|
-
return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
if (invokeCallback) {
|
|
266
|
-
invokeCallback = children;
|
|
267
|
-
callback = callback(invokeCallback);
|
|
268
|
-
var childKey = nameSoFar === "" ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
269
|
-
isArrayImpl(callback) ? (escapedPrefix = "", childKey != null && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
270
|
-
return c;
|
|
271
|
-
})) : callback != null && (isValidElement(callback) && (callback.key != null && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(callback, escapedPrefix + (callback.key == null || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + childKey), nameSoFar !== "" && invokeCallback != null && isValidElement(invokeCallback) && invokeCallback.key == null && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
272
|
-
return 1;
|
|
273
|
-
}
|
|
274
|
-
invokeCallback = 0;
|
|
275
|
-
childKey = nameSoFar === "" ? "." : nameSoFar + ":";
|
|
276
|
-
if (isArrayImpl(children))
|
|
277
|
-
for (var i = 0;i < children.length; i++)
|
|
278
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
279
|
-
else if (i = getIteratorFn(children), typeof i === "function")
|
|
280
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = true), children = i.call(children), i = 0;!(nameSoFar = children.next()).done; )
|
|
281
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
282
|
-
else if (type === "object") {
|
|
283
|
-
if (typeof children.then === "function")
|
|
284
|
-
return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
285
|
-
array = String(children);
|
|
286
|
-
throw Error("Objects are not valid as a React child (found: " + (array === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
287
|
-
}
|
|
288
|
-
return invokeCallback;
|
|
289
|
-
}
|
|
290
|
-
function mapChildren(children, func, context) {
|
|
291
|
-
if (children == null)
|
|
292
|
-
return children;
|
|
293
|
-
var result = [], count = 0;
|
|
294
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
295
|
-
return func.call(context, child, count++);
|
|
296
|
-
});
|
|
297
|
-
return result;
|
|
298
|
-
}
|
|
299
|
-
function lazyInitializer(payload) {
|
|
300
|
-
if (payload._status === -1) {
|
|
301
|
-
var ioInfo = payload._ioInfo;
|
|
302
|
-
ioInfo != null && (ioInfo.start = ioInfo.end = performance.now());
|
|
303
|
-
ioInfo = payload._result;
|
|
304
|
-
var thenable = ioInfo();
|
|
305
|
-
thenable.then(function(moduleObject) {
|
|
306
|
-
if (payload._status === 0 || payload._status === -1) {
|
|
307
|
-
payload._status = 1;
|
|
308
|
-
payload._result = moduleObject;
|
|
309
|
-
var _ioInfo = payload._ioInfo;
|
|
310
|
-
_ioInfo != null && (_ioInfo.end = performance.now());
|
|
311
|
-
thenable.status === undefined && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
312
|
-
}
|
|
313
|
-
}, function(error) {
|
|
314
|
-
if (payload._status === 0 || payload._status === -1) {
|
|
315
|
-
payload._status = 2;
|
|
316
|
-
payload._result = error;
|
|
317
|
-
var _ioInfo2 = payload._ioInfo;
|
|
318
|
-
_ioInfo2 != null && (_ioInfo2.end = performance.now());
|
|
319
|
-
thenable.status === undefined && (thenable.status = "rejected", thenable.reason = error);
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
ioInfo = payload._ioInfo;
|
|
323
|
-
if (ioInfo != null) {
|
|
324
|
-
ioInfo.value = thenable;
|
|
325
|
-
var displayName = thenable.displayName;
|
|
326
|
-
typeof displayName === "string" && (ioInfo.name = displayName);
|
|
327
|
-
}
|
|
328
|
-
payload._status === -1 && (payload._status = 0, payload._result = thenable);
|
|
329
|
-
}
|
|
330
|
-
if (payload._status === 1)
|
|
331
|
-
return ioInfo = payload._result, ioInfo === undefined && console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
332
|
-
|
|
333
|
-
Your code should look like:
|
|
334
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
335
|
-
|
|
336
|
-
Did you accidentally put curly braces around the import?`, ioInfo), "default" in ioInfo || console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
337
|
-
|
|
338
|
-
Your code should look like:
|
|
339
|
-
const MyComponent = lazy(() => import('./MyComponent'))`, ioInfo), ioInfo.default;
|
|
340
|
-
throw payload._result;
|
|
341
|
-
}
|
|
342
|
-
function resolveDispatcher() {
|
|
343
|
-
var dispatcher = ReactSharedInternals.H;
|
|
344
|
-
dispatcher === null && console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
345
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
346
|
-
2. You might be breaking the Rules of Hooks
|
|
347
|
-
3. You might have more than one copy of React in the same app
|
|
348
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);
|
|
349
|
-
return dispatcher;
|
|
350
|
-
}
|
|
351
|
-
function releaseAsyncTransition() {
|
|
352
|
-
ReactSharedInternals.asyncTransitions--;
|
|
353
|
-
}
|
|
354
|
-
function enqueueTask(task) {
|
|
355
|
-
if (enqueueTaskImpl === null)
|
|
356
|
-
try {
|
|
357
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
358
|
-
enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
|
|
359
|
-
} catch (_err) {
|
|
360
|
-
enqueueTaskImpl = function(callback) {
|
|
361
|
-
didWarnAboutMessageChannel === false && (didWarnAboutMessageChannel = true, typeof MessageChannel === "undefined" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
362
|
-
var channel = new MessageChannel;
|
|
363
|
-
channel.port1.onmessage = callback;
|
|
364
|
-
channel.port2.postMessage(undefined);
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
return enqueueTaskImpl(task);
|
|
368
|
-
}
|
|
369
|
-
function aggregateErrors(errors) {
|
|
370
|
-
return 1 < errors.length && typeof AggregateError === "function" ? new AggregateError(errors) : errors[0];
|
|
371
|
-
}
|
|
372
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
373
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
374
|
-
actScopeDepth = prevActScopeDepth;
|
|
375
|
-
}
|
|
376
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
377
|
-
var queue = ReactSharedInternals.actQueue;
|
|
378
|
-
if (queue !== null)
|
|
379
|
-
if (queue.length !== 0)
|
|
380
|
-
try {
|
|
381
|
-
flushActQueue(queue);
|
|
382
|
-
enqueueTask(function() {
|
|
383
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
384
|
-
});
|
|
385
|
-
return;
|
|
386
|
-
} catch (error) {
|
|
387
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
388
|
-
}
|
|
389
|
-
else
|
|
390
|
-
ReactSharedInternals.actQueue = null;
|
|
391
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
392
|
-
}
|
|
393
|
-
function flushActQueue(queue) {
|
|
394
|
-
if (!isFlushing) {
|
|
395
|
-
isFlushing = true;
|
|
396
|
-
var i = 0;
|
|
397
|
-
try {
|
|
398
|
-
for (;i < queue.length; i++) {
|
|
399
|
-
var callback = queue[i];
|
|
400
|
-
do {
|
|
401
|
-
ReactSharedInternals.didUsePromise = false;
|
|
402
|
-
var continuation = callback(false);
|
|
403
|
-
if (continuation !== null) {
|
|
404
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
405
|
-
queue[i] = callback;
|
|
406
|
-
queue.splice(0, i);
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
callback = continuation;
|
|
410
|
-
} else
|
|
411
|
-
break;
|
|
412
|
-
} while (1);
|
|
413
|
-
}
|
|
414
|
-
queue.length = 0;
|
|
415
|
-
} catch (error) {
|
|
416
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
417
|
-
} finally {
|
|
418
|
-
isFlushing = false;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
423
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
424
|
-
isMounted: function() {
|
|
425
|
-
return false;
|
|
426
|
-
},
|
|
427
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
428
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
429
|
-
},
|
|
430
|
-
enqueueReplaceState: function(publicInstance) {
|
|
431
|
-
warnNoop(publicInstance, "replaceState");
|
|
432
|
-
},
|
|
433
|
-
enqueueSetState: function(publicInstance) {
|
|
434
|
-
warnNoop(publicInstance, "setState");
|
|
435
|
-
}
|
|
436
|
-
}, assign = Object.assign, emptyObject = {};
|
|
437
|
-
Object.freeze(emptyObject);
|
|
438
|
-
Component.prototype.isReactComponent = {};
|
|
439
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
440
|
-
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null)
|
|
441
|
-
throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
442
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
443
|
-
};
|
|
444
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
445
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
446
|
-
};
|
|
447
|
-
var deprecatedAPIs = {
|
|
448
|
-
isMounted: [
|
|
449
|
-
"isMounted",
|
|
450
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
451
|
-
],
|
|
452
|
-
replaceState: [
|
|
453
|
-
"replaceState",
|
|
454
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
455
|
-
]
|
|
456
|
-
};
|
|
457
|
-
for (fnName in deprecatedAPIs)
|
|
458
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
459
|
-
ComponentDummy.prototype = Component.prototype;
|
|
460
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy;
|
|
461
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
462
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
463
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
464
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
465
|
-
H: null,
|
|
466
|
-
A: null,
|
|
467
|
-
T: null,
|
|
468
|
-
S: null,
|
|
469
|
-
actQueue: null,
|
|
470
|
-
asyncTransitions: 0,
|
|
471
|
-
isBatchingLegacy: false,
|
|
472
|
-
didScheduleLegacyUpdate: false,
|
|
473
|
-
didUsePromise: false,
|
|
474
|
-
thrownErrors: [],
|
|
475
|
-
getCurrentStack: null,
|
|
476
|
-
recentlyCreatedOwnerStacks: 0
|
|
477
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
478
|
-
return null;
|
|
479
|
-
};
|
|
480
|
-
deprecatedAPIs = {
|
|
481
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
482
|
-
return callStackForError();
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
486
|
-
var didWarnAboutElementRef = {};
|
|
487
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(deprecatedAPIs, UnknownOwner)();
|
|
488
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
489
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = typeof reportError === "function" ? reportError : function(error) {
|
|
490
|
-
if (typeof window === "object" && typeof window.ErrorEvent === "function") {
|
|
491
|
-
var event = new window.ErrorEvent("error", {
|
|
492
|
-
bubbles: true,
|
|
493
|
-
cancelable: true,
|
|
494
|
-
message: typeof error === "object" && error !== null && typeof error.message === "string" ? String(error.message) : String(error),
|
|
495
|
-
error
|
|
496
|
-
});
|
|
497
|
-
if (!window.dispatchEvent(event))
|
|
498
|
-
return;
|
|
499
|
-
} else if (typeof process === "object" && typeof process.emit === "function") {
|
|
500
|
-
process.emit("uncaughtException", error);
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
console.error(error);
|
|
504
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = typeof queueMicrotask === "function" ? function(callback) {
|
|
505
|
-
queueMicrotask(function() {
|
|
506
|
-
return queueMicrotask(callback);
|
|
507
|
-
});
|
|
508
|
-
} : enqueueTask;
|
|
509
|
-
deprecatedAPIs = Object.freeze({
|
|
510
|
-
__proto__: null,
|
|
511
|
-
c: function(size) {
|
|
512
|
-
return resolveDispatcher().useMemoCache(size);
|
|
513
|
-
}
|
|
514
|
-
});
|
|
515
|
-
var fnName = {
|
|
516
|
-
map: mapChildren,
|
|
517
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
518
|
-
mapChildren(children, function() {
|
|
519
|
-
forEachFunc.apply(this, arguments);
|
|
520
|
-
}, forEachContext);
|
|
521
|
-
},
|
|
522
|
-
count: function(children) {
|
|
523
|
-
var n = 0;
|
|
524
|
-
mapChildren(children, function() {
|
|
525
|
-
n++;
|
|
526
|
-
});
|
|
527
|
-
return n;
|
|
528
|
-
},
|
|
529
|
-
toArray: function(children) {
|
|
530
|
-
return mapChildren(children, function(child) {
|
|
531
|
-
return child;
|
|
532
|
-
}) || [];
|
|
533
|
-
},
|
|
534
|
-
only: function(children) {
|
|
535
|
-
if (!isValidElement(children))
|
|
536
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
537
|
-
return children;
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
541
|
-
exports.Children = fnName;
|
|
542
|
-
exports.Component = Component;
|
|
543
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
544
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
545
|
-
exports.PureComponent = PureComponent;
|
|
546
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
547
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
548
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
549
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
550
|
-
exports.act = function(callback) {
|
|
551
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
552
|
-
actScopeDepth++;
|
|
553
|
-
var queue = ReactSharedInternals.actQueue = prevActQueue !== null ? prevActQueue : [], didAwaitActCall = false;
|
|
554
|
-
try {
|
|
555
|
-
var result = callback();
|
|
556
|
-
} catch (error) {
|
|
557
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
558
|
-
}
|
|
559
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
560
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
561
|
-
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
562
|
-
var thenable = result;
|
|
563
|
-
queueSeveralMicrotasks(function() {
|
|
564
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
565
|
-
});
|
|
566
|
-
return {
|
|
567
|
-
then: function(resolve, reject) {
|
|
568
|
-
didAwaitActCall = true;
|
|
569
|
-
thenable.then(function(returnValue) {
|
|
570
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
571
|
-
if (prevActScopeDepth === 0) {
|
|
572
|
-
try {
|
|
573
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
574
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
575
|
-
});
|
|
576
|
-
} catch (error$0) {
|
|
577
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
578
|
-
}
|
|
579
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
580
|
-
var _thrownError = aggregateErrors(ReactSharedInternals.thrownErrors);
|
|
581
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
582
|
-
reject(_thrownError);
|
|
583
|
-
}
|
|
584
|
-
} else
|
|
585
|
-
resolve(returnValue);
|
|
586
|
-
}, function(error) {
|
|
587
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
588
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
var returnValue$jscomp$0 = result;
|
|
594
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
595
|
-
prevActScopeDepth === 0 && (flushActQueue(queue), queue.length !== 0 && queueSeveralMicrotasks(function() {
|
|
596
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
597
|
-
}), ReactSharedInternals.actQueue = null);
|
|
598
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
599
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
600
|
-
return {
|
|
601
|
-
then: function(resolve, reject) {
|
|
602
|
-
didAwaitActCall = true;
|
|
603
|
-
prevActScopeDepth === 0 ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
604
|
-
return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
|
|
605
|
-
})) : resolve(returnValue$jscomp$0);
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
};
|
|
609
|
-
exports.cache = function(fn) {
|
|
610
|
-
return function() {
|
|
611
|
-
return fn.apply(null, arguments);
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
exports.cacheSignal = function() {
|
|
615
|
-
return null;
|
|
616
|
-
};
|
|
617
|
-
exports.captureOwnerStack = function() {
|
|
618
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
619
|
-
return getCurrentStack === null ? null : getCurrentStack();
|
|
620
|
-
};
|
|
621
|
-
exports.cloneElement = function(element, config, children) {
|
|
622
|
-
if (element === null || element === undefined)
|
|
623
|
-
throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
624
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
625
|
-
if (config != null) {
|
|
626
|
-
var JSCompiler_inline_result;
|
|
627
|
-
a: {
|
|
628
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
629
|
-
JSCompiler_inline_result = false;
|
|
630
|
-
break a;
|
|
631
|
-
}
|
|
632
|
-
JSCompiler_inline_result = config.ref !== undefined;
|
|
633
|
-
}
|
|
634
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
635
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
636
|
-
for (propName in config)
|
|
637
|
-
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === undefined || (props[propName] = config[propName]);
|
|
638
|
-
}
|
|
639
|
-
var propName = arguments.length - 2;
|
|
640
|
-
if (propName === 1)
|
|
641
|
-
props.children = children;
|
|
642
|
-
else if (1 < propName) {
|
|
643
|
-
JSCompiler_inline_result = Array(propName);
|
|
644
|
-
for (var i = 0;i < propName; i++)
|
|
645
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
646
|
-
props.children = JSCompiler_inline_result;
|
|
647
|
-
}
|
|
648
|
-
props = ReactElement(element.type, key, props, owner, element._debugStack, element._debugTask);
|
|
649
|
-
for (key = 2;key < arguments.length; key++)
|
|
650
|
-
validateChildKeys(arguments[key]);
|
|
651
|
-
return props;
|
|
652
|
-
};
|
|
653
|
-
exports.createContext = function(defaultValue) {
|
|
654
|
-
defaultValue = {
|
|
655
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
656
|
-
_currentValue: defaultValue,
|
|
657
|
-
_currentValue2: defaultValue,
|
|
658
|
-
_threadCount: 0,
|
|
659
|
-
Provider: null,
|
|
660
|
-
Consumer: null
|
|
661
|
-
};
|
|
662
|
-
defaultValue.Provider = defaultValue;
|
|
663
|
-
defaultValue.Consumer = {
|
|
664
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
665
|
-
_context: defaultValue
|
|
666
|
-
};
|
|
667
|
-
defaultValue._currentRenderer = null;
|
|
668
|
-
defaultValue._currentRenderer2 = null;
|
|
669
|
-
return defaultValue;
|
|
670
|
-
};
|
|
671
|
-
exports.createElement = function(type, config, children) {
|
|
672
|
-
for (var i = 2;i < arguments.length; i++)
|
|
673
|
-
validateChildKeys(arguments[i]);
|
|
674
|
-
i = {};
|
|
675
|
-
var key = null;
|
|
676
|
-
if (config != null)
|
|
677
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
678
|
-
hasOwnProperty.call(config, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (i[propName] = config[propName]);
|
|
679
|
-
var childrenLength = arguments.length - 2;
|
|
680
|
-
if (childrenLength === 1)
|
|
681
|
-
i.children = children;
|
|
682
|
-
else if (1 < childrenLength) {
|
|
683
|
-
for (var childArray = Array(childrenLength), _i = 0;_i < childrenLength; _i++)
|
|
684
|
-
childArray[_i] = arguments[_i + 2];
|
|
685
|
-
Object.freeze && Object.freeze(childArray);
|
|
686
|
-
i.children = childArray;
|
|
687
|
-
}
|
|
688
|
-
if (type && type.defaultProps)
|
|
689
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
690
|
-
i[propName] === undefined && (i[propName] = childrenLength[propName]);
|
|
691
|
-
key && defineKeyPropWarningGetter(i, typeof type === "function" ? type.displayName || type.name || "Unknown" : type);
|
|
692
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
693
|
-
return ReactElement(type, key, i, getOwner(), propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
694
|
-
};
|
|
695
|
-
exports.createRef = function() {
|
|
696
|
-
var refObject = { current: null };
|
|
697
|
-
Object.seal(refObject);
|
|
698
|
-
return refObject;
|
|
699
|
-
};
|
|
700
|
-
exports.forwardRef = function(render) {
|
|
701
|
-
render != null && render.$$typeof === REACT_MEMO_TYPE ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof render !== "function" ? console.error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render) : render.length !== 0 && render.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
702
|
-
render != null && render.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
703
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
704
|
-
Object.defineProperty(elementType, "displayName", {
|
|
705
|
-
enumerable: false,
|
|
706
|
-
configurable: true,
|
|
707
|
-
get: function() {
|
|
708
|
-
return ownName;
|
|
709
|
-
},
|
|
710
|
-
set: function(name) {
|
|
711
|
-
ownName = name;
|
|
712
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
return elementType;
|
|
716
|
-
};
|
|
717
|
-
exports.isValidElement = isValidElement;
|
|
718
|
-
exports.lazy = function(ctor) {
|
|
719
|
-
ctor = { _status: -1, _result: ctor };
|
|
720
|
-
var lazyType = {
|
|
721
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
722
|
-
_payload: ctor,
|
|
723
|
-
_init: lazyInitializer
|
|
724
|
-
}, ioInfo = {
|
|
725
|
-
name: "lazy",
|
|
726
|
-
start: -1,
|
|
727
|
-
end: -1,
|
|
728
|
-
value: null,
|
|
729
|
-
owner: null,
|
|
730
|
-
debugStack: Error("react-stack-top-frame"),
|
|
731
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
732
|
-
};
|
|
733
|
-
ctor._ioInfo = ioInfo;
|
|
734
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
735
|
-
return lazyType;
|
|
736
|
-
};
|
|
737
|
-
exports.memo = function(type, compare) {
|
|
738
|
-
type == null && console.error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
739
|
-
compare = {
|
|
740
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
741
|
-
type,
|
|
742
|
-
compare: compare === undefined ? null : compare
|
|
743
|
-
};
|
|
744
|
-
var ownName;
|
|
745
|
-
Object.defineProperty(compare, "displayName", {
|
|
746
|
-
enumerable: false,
|
|
747
|
-
configurable: true,
|
|
748
|
-
get: function() {
|
|
749
|
-
return ownName;
|
|
750
|
-
},
|
|
751
|
-
set: function(name) {
|
|
752
|
-
ownName = name;
|
|
753
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
return compare;
|
|
757
|
-
};
|
|
758
|
-
exports.startTransition = function(scope) {
|
|
759
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
760
|
-
currentTransition._updatedFibers = new Set;
|
|
761
|
-
ReactSharedInternals.T = currentTransition;
|
|
762
|
-
try {
|
|
763
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
764
|
-
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
765
|
-
typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function" && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
766
|
-
} catch (error) {
|
|
767
|
-
reportGlobalError(error);
|
|
768
|
-
} finally {
|
|
769
|
-
prevTransition === null && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), prevTransition !== null && currentTransition.types !== null && (prevTransition.types !== null && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
exports.unstable_useCacheRefresh = function() {
|
|
773
|
-
return resolveDispatcher().useCacheRefresh();
|
|
774
|
-
};
|
|
775
|
-
exports.use = function(usable) {
|
|
776
|
-
return resolveDispatcher().use(usable);
|
|
777
|
-
};
|
|
778
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
779
|
-
return resolveDispatcher().useActionState(action, initialState, permalink);
|
|
780
|
-
};
|
|
781
|
-
exports.useCallback = function(callback, deps) {
|
|
782
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
783
|
-
};
|
|
784
|
-
exports.useContext = function(Context) {
|
|
785
|
-
var dispatcher = resolveDispatcher();
|
|
786
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
|
|
787
|
-
return dispatcher.useContext(Context);
|
|
788
|
-
};
|
|
789
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
790
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
791
|
-
};
|
|
792
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
793
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
794
|
-
};
|
|
795
|
-
exports.useEffect = function(create, deps) {
|
|
796
|
-
create == null && console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
797
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
798
|
-
};
|
|
799
|
-
exports.useEffectEvent = function(callback) {
|
|
800
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
801
|
-
};
|
|
802
|
-
exports.useId = function() {
|
|
803
|
-
return resolveDispatcher().useId();
|
|
804
|
-
};
|
|
805
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
806
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
807
|
-
};
|
|
808
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
809
|
-
create == null && console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
810
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
811
|
-
};
|
|
812
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
813
|
-
create == null && console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
814
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
815
|
-
};
|
|
816
|
-
exports.useMemo = function(create, deps) {
|
|
817
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
818
|
-
};
|
|
819
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
820
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
821
|
-
};
|
|
822
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
823
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
824
|
-
};
|
|
825
|
-
exports.useRef = function(initialValue) {
|
|
826
|
-
return resolveDispatcher().useRef(initialValue);
|
|
827
|
-
};
|
|
828
|
-
exports.useState = function(initialState) {
|
|
829
|
-
return resolveDispatcher().useState(initialState);
|
|
830
|
-
};
|
|
831
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
832
|
-
return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
833
|
-
};
|
|
834
|
-
exports.useTransition = function() {
|
|
835
|
-
return resolveDispatcher().useTransition();
|
|
836
|
-
};
|
|
837
|
-
exports.version = "19.2.3";
|
|
838
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
839
|
-
})();
|
|
840
|
-
});
|
|
841
|
-
|
|
842
|
-
// node_modules/react/index.js
|
|
843
|
-
var require_react = __commonJS((exports, module) => {
|
|
844
|
-
var react_development = __toESM(require_react_development(), 1);
|
|
845
|
-
if (false) {} else {
|
|
846
|
-
module.exports = react_development;
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
|
|
850
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
851
|
-
var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
852
|
-
var React2 = __toESM(require_react(), 1);
|
|
853
|
-
(function() {
|
|
854
|
-
function getComponentNameFromType(type) {
|
|
855
|
-
if (type == null)
|
|
856
|
-
return null;
|
|
857
|
-
if (typeof type === "function")
|
|
858
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
859
|
-
if (typeof type === "string")
|
|
860
|
-
return type;
|
|
861
|
-
switch (type) {
|
|
862
|
-
case REACT_FRAGMENT_TYPE:
|
|
863
|
-
return "Fragment";
|
|
864
|
-
case REACT_PROFILER_TYPE:
|
|
865
|
-
return "Profiler";
|
|
866
|
-
case REACT_STRICT_MODE_TYPE:
|
|
867
|
-
return "StrictMode";
|
|
868
|
-
case REACT_SUSPENSE_TYPE:
|
|
869
|
-
return "Suspense";
|
|
870
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
871
|
-
return "SuspenseList";
|
|
872
|
-
case REACT_ACTIVITY_TYPE:
|
|
873
|
-
return "Activity";
|
|
874
|
-
}
|
|
875
|
-
if (typeof type === "object")
|
|
876
|
-
switch (typeof type.tag === "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
877
|
-
case REACT_PORTAL_TYPE:
|
|
878
|
-
return "Portal";
|
|
879
|
-
case REACT_CONTEXT_TYPE:
|
|
880
|
-
return type.displayName || "Context";
|
|
881
|
-
case REACT_CONSUMER_TYPE:
|
|
882
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
883
|
-
case REACT_FORWARD_REF_TYPE:
|
|
884
|
-
var innerType = type.render;
|
|
885
|
-
type = type.displayName;
|
|
886
|
-
type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
887
|
-
return type;
|
|
888
|
-
case REACT_MEMO_TYPE:
|
|
889
|
-
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
890
|
-
case REACT_LAZY_TYPE:
|
|
891
|
-
innerType = type._payload;
|
|
892
|
-
type = type._init;
|
|
893
|
-
try {
|
|
894
|
-
return getComponentNameFromType(type(innerType));
|
|
895
|
-
} catch (x) {}
|
|
896
|
-
}
|
|
897
|
-
return null;
|
|
898
|
-
}
|
|
899
|
-
function testStringCoercion(value) {
|
|
900
|
-
return "" + value;
|
|
901
|
-
}
|
|
902
|
-
function checkKeyStringCoercion(value) {
|
|
903
|
-
try {
|
|
904
|
-
testStringCoercion(value);
|
|
905
|
-
var JSCompiler_inline_result = false;
|
|
906
|
-
} catch (e) {
|
|
907
|
-
JSCompiler_inline_result = true;
|
|
908
|
-
}
|
|
909
|
-
if (JSCompiler_inline_result) {
|
|
910
|
-
JSCompiler_inline_result = console;
|
|
911
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
912
|
-
var JSCompiler_inline_result$jscomp$0 = typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
913
|
-
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
914
|
-
return testStringCoercion(value);
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
function getTaskName(type) {
|
|
918
|
-
if (type === REACT_FRAGMENT_TYPE)
|
|
919
|
-
return "<>";
|
|
920
|
-
if (typeof type === "object" && type !== null && type.$$typeof === REACT_LAZY_TYPE)
|
|
921
|
-
return "<...>";
|
|
922
|
-
try {
|
|
923
|
-
var name = getComponentNameFromType(type);
|
|
924
|
-
return name ? "<" + name + ">" : "<...>";
|
|
925
|
-
} catch (x) {
|
|
926
|
-
return "<...>";
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
function getOwner() {
|
|
930
|
-
var dispatcher = ReactSharedInternals.A;
|
|
931
|
-
return dispatcher === null ? null : dispatcher.getOwner();
|
|
932
|
-
}
|
|
933
|
-
function UnknownOwner() {
|
|
934
|
-
return Error("react-stack-top-frame");
|
|
935
|
-
}
|
|
936
|
-
function hasValidKey(config) {
|
|
937
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
938
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
939
|
-
if (getter && getter.isReactWarning)
|
|
940
|
-
return false;
|
|
941
|
-
}
|
|
942
|
-
return config.key !== undefined;
|
|
943
|
-
}
|
|
944
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
945
|
-
function warnAboutAccessingKey() {
|
|
946
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
947
|
-
}
|
|
948
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
949
|
-
Object.defineProperty(props, "key", {
|
|
950
|
-
get: warnAboutAccessingKey,
|
|
951
|
-
configurable: true
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
955
|
-
var componentName = getComponentNameFromType(this.type);
|
|
956
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
957
|
-
componentName = this.props.ref;
|
|
958
|
-
return componentName !== undefined ? componentName : null;
|
|
959
|
-
}
|
|
960
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
961
|
-
var refProp = props.ref;
|
|
962
|
-
type = {
|
|
963
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
964
|
-
type,
|
|
965
|
-
key,
|
|
966
|
-
props,
|
|
967
|
-
_owner: owner
|
|
968
|
-
};
|
|
969
|
-
(refProp !== undefined ? refProp : null) !== null ? Object.defineProperty(type, "ref", {
|
|
970
|
-
enumerable: false,
|
|
971
|
-
get: elementRefGetterWithDeprecationWarning
|
|
972
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
973
|
-
type._store = {};
|
|
974
|
-
Object.defineProperty(type._store, "validated", {
|
|
975
|
-
configurable: false,
|
|
976
|
-
enumerable: false,
|
|
977
|
-
writable: true,
|
|
978
|
-
value: 0
|
|
979
|
-
});
|
|
980
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
981
|
-
configurable: false,
|
|
982
|
-
enumerable: false,
|
|
983
|
-
writable: true,
|
|
984
|
-
value: null
|
|
985
|
-
});
|
|
986
|
-
Object.defineProperty(type, "_debugStack", {
|
|
987
|
-
configurable: false,
|
|
988
|
-
enumerable: false,
|
|
989
|
-
writable: true,
|
|
990
|
-
value: debugStack
|
|
991
|
-
});
|
|
992
|
-
Object.defineProperty(type, "_debugTask", {
|
|
993
|
-
configurable: false,
|
|
994
|
-
enumerable: false,
|
|
995
|
-
writable: true,
|
|
996
|
-
value: debugTask
|
|
997
|
-
});
|
|
998
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
999
|
-
return type;
|
|
1000
|
-
}
|
|
1001
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1002
|
-
var children = config.children;
|
|
1003
|
-
if (children !== undefined)
|
|
1004
|
-
if (isStaticChildren)
|
|
1005
|
-
if (isArrayImpl(children)) {
|
|
1006
|
-
for (isStaticChildren = 0;isStaticChildren < children.length; isStaticChildren++)
|
|
1007
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1008
|
-
Object.freeze && Object.freeze(children);
|
|
1009
|
-
} else
|
|
1010
|
-
console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1011
|
-
else
|
|
1012
|
-
validateChildKeys(children);
|
|
1013
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1014
|
-
children = getComponentNameFromType(type);
|
|
1015
|
-
var keys = Object.keys(config).filter(function(k2) {
|
|
1016
|
-
return k2 !== "key";
|
|
1017
|
-
});
|
|
1018
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1019
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1020
|
-
let props = %s;
|
|
1021
|
-
<%s {...props} />
|
|
1022
|
-
React keys must be passed directly to JSX without using spread:
|
|
1023
|
-
let props = %s;
|
|
1024
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1025
|
-
}
|
|
1026
|
-
children = null;
|
|
1027
|
-
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1028
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1029
|
-
if ("key" in config) {
|
|
1030
|
-
maybeKey = {};
|
|
1031
|
-
for (var propName in config)
|
|
1032
|
-
propName !== "key" && (maybeKey[propName] = config[propName]);
|
|
1033
|
-
} else
|
|
1034
|
-
maybeKey = config;
|
|
1035
|
-
children && defineKeyPropWarningGetter(maybeKey, typeof type === "function" ? type.displayName || type.name || "Unknown" : type);
|
|
1036
|
-
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1037
|
-
}
|
|
1038
|
-
function validateChildKeys(node) {
|
|
1039
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : typeof node === "object" && node !== null && node.$$typeof === REACT_LAZY_TYPE && (node._payload.status === "fulfilled" ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1040
|
-
}
|
|
1041
|
-
function isValidElement(object) {
|
|
1042
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1043
|
-
}
|
|
1044
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1045
|
-
return null;
|
|
1046
|
-
};
|
|
1047
|
-
React2 = {
|
|
1048
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1049
|
-
return callStackForError();
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
var specialPropKeyWarningShown;
|
|
1053
|
-
var didWarnAboutElementRef = {};
|
|
1054
|
-
var unknownOwnerDebugStack = React2.react_stack_bottom_frame.bind(React2, UnknownOwner)();
|
|
1055
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1056
|
-
var didWarnAboutKeySpread = {};
|
|
1057
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1058
|
-
exports.jsx = function(type, config, maybeKey) {
|
|
1059
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1060
|
-
return jsxDEVImpl(type, config, maybeKey, false, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1061
|
-
};
|
|
1062
|
-
exports.jsxs = function(type, config, maybeKey) {
|
|
1063
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1064
|
-
return jsxDEVImpl(type, config, maybeKey, true, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1065
|
-
};
|
|
1066
|
-
})();
|
|
1067
|
-
});
|
|
1068
|
-
|
|
1069
|
-
// node_modules/react/jsx-runtime.js
|
|
1070
|
-
var require_jsx_runtime = __commonJS((exports, module) => {
|
|
1071
|
-
var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development(), 1);
|
|
1072
|
-
if (false) {} else {
|
|
1073
|
-
module.exports = react_jsx_runtime_development;
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
|
|
1077
|
-
// node_modules/react-dom/cjs/react-dom.development.js
|
|
1078
|
-
var require_react_dom_development = __commonJS((exports) => {
|
|
1079
|
-
var React6 = __toESM(require_react(), 1);
|
|
1080
|
-
(function() {
|
|
1081
|
-
function noop() {}
|
|
1082
|
-
function testStringCoercion(value) {
|
|
1083
|
-
return "" + value;
|
|
1084
|
-
}
|
|
1085
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
1086
|
-
var key = 3 < arguments.length && arguments[3] !== undefined ? arguments[3] : null;
|
|
1087
|
-
try {
|
|
1088
|
-
testStringCoercion(key);
|
|
1089
|
-
var JSCompiler_inline_result = false;
|
|
1090
|
-
} catch (e) {
|
|
1091
|
-
JSCompiler_inline_result = true;
|
|
1092
|
-
}
|
|
1093
|
-
JSCompiler_inline_result && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol === "function" && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"), testStringCoercion(key));
|
|
1094
|
-
return {
|
|
1095
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
1096
|
-
key: key == null ? null : "" + key,
|
|
1097
|
-
children,
|
|
1098
|
-
containerInfo,
|
|
1099
|
-
implementation
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
function getCrossOriginStringAs(as, input) {
|
|
1103
|
-
if (as === "font")
|
|
1104
|
-
return "";
|
|
1105
|
-
if (typeof input === "string")
|
|
1106
|
-
return input === "use-credentials" ? input : "";
|
|
1107
|
-
}
|
|
1108
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
1109
|
-
return thing === null ? "`null`" : thing === undefined ? "`undefined`" : thing === "" ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
1110
|
-
}
|
|
1111
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
1112
|
-
return thing === null ? "`null`" : thing === undefined ? "`undefined`" : thing === "" ? "an empty string" : typeof thing === "string" ? JSON.stringify(thing) : typeof thing === "number" ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
1113
|
-
}
|
|
1114
|
-
function resolveDispatcher() {
|
|
1115
|
-
var dispatcher = ReactSharedInternals.H;
|
|
1116
|
-
dispatcher === null && console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1117
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1118
|
-
2. You might be breaking the Rules of Hooks
|
|
1119
|
-
3. You might have more than one copy of React in the same app
|
|
1120
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);
|
|
1121
|
-
return dispatcher;
|
|
1122
|
-
}
|
|
1123
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1124
|
-
var Internals = {
|
|
1125
|
-
d: {
|
|
1126
|
-
f: noop,
|
|
1127
|
-
r: function() {
|
|
1128
|
-
throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.");
|
|
1129
|
-
},
|
|
1130
|
-
D: noop,
|
|
1131
|
-
C: noop,
|
|
1132
|
-
L: noop,
|
|
1133
|
-
m: noop,
|
|
1134
|
-
X: noop,
|
|
1135
|
-
S: noop,
|
|
1136
|
-
M: noop
|
|
1137
|
-
},
|
|
1138
|
-
p: 0,
|
|
1139
|
-
findDOMNode: null
|
|
1140
|
-
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1141
|
-
typeof Map === "function" && Map.prototype != null && typeof Map.prototype.forEach === "function" && typeof Set === "function" && Set.prototype != null && typeof Set.prototype.clear === "function" && typeof Set.prototype.forEach === "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills");
|
|
1142
|
-
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
1143
|
-
exports.createPortal = function(children, container) {
|
|
1144
|
-
var key = 2 < arguments.length && arguments[2] !== undefined ? arguments[2] : null;
|
|
1145
|
-
if (!container || container.nodeType !== 1 && container.nodeType !== 9 && container.nodeType !== 11)
|
|
1146
|
-
throw Error("Target container is not a DOM element.");
|
|
1147
|
-
return createPortal$1(children, container, null, key);
|
|
1148
|
-
};
|
|
1149
|
-
exports.flushSync = function(fn) {
|
|
1150
|
-
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
1151
|
-
try {
|
|
1152
|
-
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
1153
|
-
return fn();
|
|
1154
|
-
} finally {
|
|
1155
|
-
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
exports.preconnect = function(href, options) {
|
|
1159
|
-
typeof href === "string" && href ? options != null && typeof options !== "object" ? console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", getValueDescriptorExpectingEnumForWarning(options)) : options != null && typeof options.crossOrigin !== "string" && console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", getValueDescriptorExpectingObjectForWarning(options.crossOrigin)) : console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href));
|
|
1160
|
-
typeof href === "string" && (options ? (options = options.crossOrigin, options = typeof options === "string" ? options === "use-credentials" ? options : "" : undefined) : options = null, Internals.d.C(href, options));
|
|
1161
|
-
};
|
|
1162
|
-
exports.prefetchDNS = function(href) {
|
|
1163
|
-
if (typeof href !== "string" || !href)
|
|
1164
|
-
console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href));
|
|
1165
|
-
else if (1 < arguments.length) {
|
|
1166
|
-
var options = arguments[1];
|
|
1167
|
-
typeof options === "object" && options.hasOwnProperty("crossOrigin") ? console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", getValueDescriptorExpectingEnumForWarning(options)) : console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", getValueDescriptorExpectingEnumForWarning(options));
|
|
1168
|
-
}
|
|
1169
|
-
typeof href === "string" && Internals.d.D(href);
|
|
1170
|
-
};
|
|
1171
|
-
exports.preinit = function(href, options) {
|
|
1172
|
-
typeof href === "string" && href ? options == null || typeof options !== "object" ? console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", getValueDescriptorExpectingEnumForWarning(options)) : options.as !== "style" && options.as !== "script" && console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".', getValueDescriptorExpectingEnumForWarning(options.as)) : console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", getValueDescriptorExpectingObjectForWarning(href));
|
|
1173
|
-
if (typeof href === "string" && options && typeof options.as === "string") {
|
|
1174
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = typeof options.integrity === "string" ? options.integrity : undefined, fetchPriority = typeof options.fetchPriority === "string" ? options.fetchPriority : undefined;
|
|
1175
|
-
as === "style" ? Internals.d.S(href, typeof options.precedence === "string" ? options.precedence : undefined, {
|
|
1176
|
-
crossOrigin,
|
|
1177
|
-
integrity,
|
|
1178
|
-
fetchPriority
|
|
1179
|
-
}) : as === "script" && Internals.d.X(href, {
|
|
1180
|
-
crossOrigin,
|
|
1181
|
-
integrity,
|
|
1182
|
-
fetchPriority,
|
|
1183
|
-
nonce: typeof options.nonce === "string" ? options.nonce : undefined
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
exports.preinitModule = function(href, options) {
|
|
1188
|
-
var encountered = "";
|
|
1189
|
-
typeof href === "string" && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
1190
|
-
options !== undefined && typeof options !== "object" ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && ("as" in options) && options.as !== "script" && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
1191
|
-
if (encountered)
|
|
1192
|
-
console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", encountered);
|
|
1193
|
-
else
|
|
1194
|
-
switch (encountered = options && typeof options.as === "string" ? options.as : "script", encountered) {
|
|
1195
|
-
case "script":
|
|
1196
|
-
break;
|
|
1197
|
-
default:
|
|
1198
|
-
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)', encountered, href);
|
|
1199
|
-
}
|
|
1200
|
-
if (typeof href === "string")
|
|
1201
|
-
if (typeof options === "object" && options !== null) {
|
|
1202
|
-
if (options.as == null || options.as === "script")
|
|
1203
|
-
encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.M(href, {
|
|
1204
|
-
crossOrigin: encountered,
|
|
1205
|
-
integrity: typeof options.integrity === "string" ? options.integrity : undefined,
|
|
1206
|
-
nonce: typeof options.nonce === "string" ? options.nonce : undefined
|
|
1207
|
-
});
|
|
1208
|
-
} else
|
|
1209
|
-
options == null && Internals.d.M(href);
|
|
1210
|
-
};
|
|
1211
|
-
exports.preload = function(href, options) {
|
|
1212
|
-
var encountered = "";
|
|
1213
|
-
typeof href === "string" && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
1214
|
-
options == null || typeof options !== "object" ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : typeof options.as === "string" && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
1215
|
-
encountered && console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s', encountered);
|
|
1216
|
-
if (typeof href === "string" && typeof options === "object" && options !== null && typeof options.as === "string") {
|
|
1217
|
-
encountered = options.as;
|
|
1218
|
-
var crossOrigin = getCrossOriginStringAs(encountered, options.crossOrigin);
|
|
1219
|
-
Internals.d.L(href, encountered, {
|
|
1220
|
-
crossOrigin,
|
|
1221
|
-
integrity: typeof options.integrity === "string" ? options.integrity : undefined,
|
|
1222
|
-
nonce: typeof options.nonce === "string" ? options.nonce : undefined,
|
|
1223
|
-
type: typeof options.type === "string" ? options.type : undefined,
|
|
1224
|
-
fetchPriority: typeof options.fetchPriority === "string" ? options.fetchPriority : undefined,
|
|
1225
|
-
referrerPolicy: typeof options.referrerPolicy === "string" ? options.referrerPolicy : undefined,
|
|
1226
|
-
imageSrcSet: typeof options.imageSrcSet === "string" ? options.imageSrcSet : undefined,
|
|
1227
|
-
imageSizes: typeof options.imageSizes === "string" ? options.imageSizes : undefined,
|
|
1228
|
-
media: typeof options.media === "string" ? options.media : undefined
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
exports.preloadModule = function(href, options) {
|
|
1233
|
-
var encountered = "";
|
|
1234
|
-
typeof href === "string" && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
1235
|
-
options !== undefined && typeof options !== "object" ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && ("as" in options) && typeof options.as !== "string" && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
1236
|
-
encountered && console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s', encountered);
|
|
1237
|
-
typeof href === "string" && (options ? (encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.m(href, {
|
|
1238
|
-
as: typeof options.as === "string" && options.as !== "script" ? options.as : undefined,
|
|
1239
|
-
crossOrigin: encountered,
|
|
1240
|
-
integrity: typeof options.integrity === "string" ? options.integrity : undefined
|
|
1241
|
-
})) : Internals.d.m(href));
|
|
1242
|
-
};
|
|
1243
|
-
exports.requestFormReset = function(form) {
|
|
1244
|
-
Internals.d.r(form);
|
|
1245
|
-
};
|
|
1246
|
-
exports.unstable_batchedUpdates = function(fn, a) {
|
|
1247
|
-
return fn(a);
|
|
1248
|
-
};
|
|
1249
|
-
exports.useFormState = function(action, initialState, permalink) {
|
|
1250
|
-
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
1251
|
-
};
|
|
1252
|
-
exports.useFormStatus = function() {
|
|
1253
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
1254
|
-
};
|
|
1255
|
-
exports.version = "19.2.3";
|
|
1256
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1257
|
-
})();
|
|
1258
|
-
});
|
|
1259
|
-
|
|
1260
|
-
// node_modules/react-dom/index.js
|
|
1261
|
-
var require_react_dom = __commonJS((exports, module) => {
|
|
1262
|
-
var react_dom_development = __toESM(require_react_dom_development(), 1);
|
|
1263
|
-
if (false) {} else {
|
|
1264
|
-
module.exports = react_dom_development;
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
|
|
1268
|
-
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
|
1269
|
-
var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
1270
|
-
var React25 = __toESM(require_react(), 1);
|
|
1271
|
-
(function() {
|
|
1272
|
-
function getComponentNameFromType(type) {
|
|
1273
|
-
if (type == null)
|
|
1274
|
-
return null;
|
|
1275
|
-
if (typeof type === "function")
|
|
1276
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1277
|
-
if (typeof type === "string")
|
|
1278
|
-
return type;
|
|
1279
|
-
switch (type) {
|
|
1280
|
-
case REACT_FRAGMENT_TYPE:
|
|
1281
|
-
return "Fragment";
|
|
1282
|
-
case REACT_PROFILER_TYPE:
|
|
1283
|
-
return "Profiler";
|
|
1284
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1285
|
-
return "StrictMode";
|
|
1286
|
-
case REACT_SUSPENSE_TYPE:
|
|
1287
|
-
return "Suspense";
|
|
1288
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1289
|
-
return "SuspenseList";
|
|
1290
|
-
case REACT_ACTIVITY_TYPE:
|
|
1291
|
-
return "Activity";
|
|
1292
|
-
}
|
|
1293
|
-
if (typeof type === "object")
|
|
1294
|
-
switch (typeof type.tag === "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
1295
|
-
case REACT_PORTAL_TYPE:
|
|
1296
|
-
return "Portal";
|
|
1297
|
-
case REACT_CONTEXT_TYPE:
|
|
1298
|
-
return type.displayName || "Context";
|
|
1299
|
-
case REACT_CONSUMER_TYPE:
|
|
1300
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1301
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1302
|
-
var innerType = type.render;
|
|
1303
|
-
type = type.displayName;
|
|
1304
|
-
type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1305
|
-
return type;
|
|
1306
|
-
case REACT_MEMO_TYPE:
|
|
1307
|
-
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1308
|
-
case REACT_LAZY_TYPE2:
|
|
1309
|
-
innerType = type._payload;
|
|
1310
|
-
type = type._init;
|
|
1311
|
-
try {
|
|
1312
|
-
return getComponentNameFromType(type(innerType));
|
|
1313
|
-
} catch (x) {}
|
|
1314
|
-
}
|
|
1315
|
-
return null;
|
|
1316
|
-
}
|
|
1317
|
-
function testStringCoercion(value) {
|
|
1318
|
-
return "" + value;
|
|
1319
|
-
}
|
|
1320
|
-
function checkKeyStringCoercion(value) {
|
|
1321
|
-
try {
|
|
1322
|
-
testStringCoercion(value);
|
|
1323
|
-
var JSCompiler_inline_result = false;
|
|
1324
|
-
} catch (e) {
|
|
1325
|
-
JSCompiler_inline_result = true;
|
|
1326
|
-
}
|
|
1327
|
-
if (JSCompiler_inline_result) {
|
|
1328
|
-
JSCompiler_inline_result = console;
|
|
1329
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1330
|
-
var JSCompiler_inline_result$jscomp$0 = typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1331
|
-
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
1332
|
-
return testStringCoercion(value);
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
function getTaskName(type) {
|
|
1336
|
-
if (type === REACT_FRAGMENT_TYPE)
|
|
1337
|
-
return "<>";
|
|
1338
|
-
if (typeof type === "object" && type !== null && type.$$typeof === REACT_LAZY_TYPE2)
|
|
1339
|
-
return "<...>";
|
|
1340
|
-
try {
|
|
1341
|
-
var name = getComponentNameFromType(type);
|
|
1342
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1343
|
-
} catch (x) {
|
|
1344
|
-
return "<...>";
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
function getOwner() {
|
|
1348
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1349
|
-
return dispatcher === null ? null : dispatcher.getOwner();
|
|
1350
|
-
}
|
|
1351
|
-
function UnknownOwner() {
|
|
1352
|
-
return Error("react-stack-top-frame");
|
|
1353
|
-
}
|
|
1354
|
-
function hasValidKey(config) {
|
|
1355
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1356
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1357
|
-
if (getter && getter.isReactWarning)
|
|
1358
|
-
return false;
|
|
1359
|
-
}
|
|
1360
|
-
return config.key !== undefined;
|
|
1361
|
-
}
|
|
1362
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1363
|
-
function warnAboutAccessingKey() {
|
|
1364
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
1365
|
-
}
|
|
1366
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1367
|
-
Object.defineProperty(props, "key", {
|
|
1368
|
-
get: warnAboutAccessingKey,
|
|
1369
|
-
configurable: true
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1373
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1374
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
1375
|
-
componentName = this.props.ref;
|
|
1376
|
-
return componentName !== undefined ? componentName : null;
|
|
1377
|
-
}
|
|
1378
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1379
|
-
var refProp = props.ref;
|
|
1380
|
-
type = {
|
|
1381
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1382
|
-
type,
|
|
1383
|
-
key,
|
|
1384
|
-
props,
|
|
1385
|
-
_owner: owner
|
|
1386
|
-
};
|
|
1387
|
-
(refProp !== undefined ? refProp : null) !== null ? Object.defineProperty(type, "ref", {
|
|
1388
|
-
enumerable: false,
|
|
1389
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1390
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1391
|
-
type._store = {};
|
|
1392
|
-
Object.defineProperty(type._store, "validated", {
|
|
1393
|
-
configurable: false,
|
|
1394
|
-
enumerable: false,
|
|
1395
|
-
writable: true,
|
|
1396
|
-
value: 0
|
|
1397
|
-
});
|
|
1398
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1399
|
-
configurable: false,
|
|
1400
|
-
enumerable: false,
|
|
1401
|
-
writable: true,
|
|
1402
|
-
value: null
|
|
1403
|
-
});
|
|
1404
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1405
|
-
configurable: false,
|
|
1406
|
-
enumerable: false,
|
|
1407
|
-
writable: true,
|
|
1408
|
-
value: debugStack
|
|
1409
|
-
});
|
|
1410
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1411
|
-
configurable: false,
|
|
1412
|
-
enumerable: false,
|
|
1413
|
-
writable: true,
|
|
1414
|
-
value: debugTask
|
|
1415
|
-
});
|
|
1416
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1417
|
-
return type;
|
|
1418
|
-
}
|
|
1419
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1420
|
-
var children = config.children;
|
|
1421
|
-
if (children !== undefined)
|
|
1422
|
-
if (isStaticChildren)
|
|
1423
|
-
if (isArrayImpl(children)) {
|
|
1424
|
-
for (isStaticChildren = 0;isStaticChildren < children.length; isStaticChildren++)
|
|
1425
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1426
|
-
Object.freeze && Object.freeze(children);
|
|
1427
|
-
} else
|
|
1428
|
-
console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1429
|
-
else
|
|
1430
|
-
validateChildKeys(children);
|
|
1431
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1432
|
-
children = getComponentNameFromType(type);
|
|
1433
|
-
var keys = Object.keys(config).filter(function(k3) {
|
|
1434
|
-
return k3 !== "key";
|
|
1435
|
-
});
|
|
1436
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1437
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1438
|
-
let props = %s;
|
|
1439
|
-
<%s {...props} />
|
|
1440
|
-
React keys must be passed directly to JSX without using spread:
|
|
1441
|
-
let props = %s;
|
|
1442
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1443
|
-
}
|
|
1444
|
-
children = null;
|
|
1445
|
-
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1446
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1447
|
-
if ("key" in config) {
|
|
1448
|
-
maybeKey = {};
|
|
1449
|
-
for (var propName in config)
|
|
1450
|
-
propName !== "key" && (maybeKey[propName] = config[propName]);
|
|
1451
|
-
} else
|
|
1452
|
-
maybeKey = config;
|
|
1453
|
-
children && defineKeyPropWarningGetter(maybeKey, typeof type === "function" ? type.displayName || type.name || "Unknown" : type);
|
|
1454
|
-
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1455
|
-
}
|
|
1456
|
-
function validateChildKeys(node) {
|
|
1457
|
-
isValidElement5(node) ? node._store && (node._store.validated = 1) : typeof node === "object" && node !== null && node.$$typeof === REACT_LAZY_TYPE2 && (node._payload.status === "fulfilled" ? isValidElement5(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1458
|
-
}
|
|
1459
|
-
function isValidElement5(object) {
|
|
1460
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1461
|
-
}
|
|
1462
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE2 = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React25.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1463
|
-
return null;
|
|
1464
|
-
};
|
|
1465
|
-
React25 = {
|
|
1466
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1467
|
-
return callStackForError();
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
|
-
var specialPropKeyWarningShown;
|
|
1471
|
-
var didWarnAboutElementRef = {};
|
|
1472
|
-
var unknownOwnerDebugStack = React25.react_stack_bottom_frame.bind(React25, UnknownOwner)();
|
|
1473
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1474
|
-
var didWarnAboutKeySpread = {};
|
|
1475
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1476
|
-
exports.jsxDEV = function(type, config, maybeKey, isStaticChildren) {
|
|
1477
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1478
|
-
return jsxDEVImpl(type, config, maybeKey, isStaticChildren, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1479
|
-
};
|
|
1480
|
-
})();
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
// node_modules/react/jsx-dev-runtime.js
|
|
1484
|
-
var require_jsx_dev_runtime = __commonJS((exports, module) => {
|
|
1485
|
-
var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development(), 1);
|
|
1486
|
-
if (false) {} else {
|
|
1487
|
-
module.exports = react_jsx_dev_runtime_development;
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
|
|
1491
1
|
// src/components/booking-search/index.tsx
|
|
1492
|
-
|
|
2
|
+
import * as React41 from "react";
|
|
1493
3
|
|
|
1494
4
|
// node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1495
|
-
|
|
5
|
+
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
1496
6
|
|
|
1497
7
|
// node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
1498
8
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -1513,7 +23,7 @@ var hasA11yProp = (props) => {
|
|
|
1513
23
|
};
|
|
1514
24
|
|
|
1515
25
|
// node_modules/lucide-react/dist/esm/Icon.js
|
|
1516
|
-
|
|
26
|
+
import { forwardRef, createElement } from "react";
|
|
1517
27
|
|
|
1518
28
|
// node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
1519
29
|
var defaultAttributes = {
|
|
@@ -1529,7 +39,7 @@ var defaultAttributes = {
|
|
|
1529
39
|
};
|
|
1530
40
|
|
|
1531
41
|
// node_modules/lucide-react/dist/esm/Icon.js
|
|
1532
|
-
var Icon =
|
|
42
|
+
var Icon = forwardRef(({
|
|
1533
43
|
color = "currentColor",
|
|
1534
44
|
size = 24,
|
|
1535
45
|
strokeWidth = 2,
|
|
@@ -1538,7 +48,7 @@ var Icon = import_react.forwardRef(({
|
|
|
1538
48
|
children,
|
|
1539
49
|
iconNode,
|
|
1540
50
|
...rest
|
|
1541
|
-
}, ref) =>
|
|
51
|
+
}, ref) => createElement("svg", {
|
|
1542
52
|
ref,
|
|
1543
53
|
...defaultAttributes,
|
|
1544
54
|
width: size,
|
|
@@ -1549,13 +59,13 @@ var Icon = import_react.forwardRef(({
|
|
|
1549
59
|
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
1550
60
|
...rest
|
|
1551
61
|
}, [
|
|
1552
|
-
...iconNode.map(([tag, attrs]) =>
|
|
62
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
1553
63
|
...Array.isArray(children) ? children : [children]
|
|
1554
64
|
]));
|
|
1555
65
|
|
|
1556
66
|
// node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1557
67
|
var createLucideIcon = (iconName, iconNode) => {
|
|
1558
|
-
const Component =
|
|
68
|
+
const Component = forwardRef2(({ className, ...props }, ref) => createElement2(Icon, {
|
|
1559
69
|
ref,
|
|
1560
70
|
iconNode,
|
|
1561
71
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -3354,10 +1864,10 @@ function cn(...inputs) {
|
|
|
3354
1864
|
}
|
|
3355
1865
|
|
|
3356
1866
|
// src/components/booking-search/location-combobox.tsx
|
|
3357
|
-
|
|
1867
|
+
import * as React37 from "react";
|
|
3358
1868
|
|
|
3359
1869
|
// src/components/booking-search/ui/command.tsx
|
|
3360
|
-
|
|
1870
|
+
import * as React29 from "react";
|
|
3361
1871
|
|
|
3362
1872
|
// node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
3363
1873
|
var U = 1;
|
|
@@ -3390,7 +1900,7 @@ function W(_, C, h) {
|
|
|
3390
1900
|
}
|
|
3391
1901
|
|
|
3392
1902
|
// node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
3393
|
-
|
|
1903
|
+
import * as React26 from "react";
|
|
3394
1904
|
|
|
3395
1905
|
// node_modules/@radix-ui/primitive/dist/index.mjs
|
|
3396
1906
|
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
@@ -3404,7 +1914,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
3404
1914
|
}
|
|
3405
1915
|
|
|
3406
1916
|
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3407
|
-
|
|
1917
|
+
import * as React from "react";
|
|
3408
1918
|
function setRef(ref, value) {
|
|
3409
1919
|
if (typeof ref === "function") {
|
|
3410
1920
|
return ref(value);
|
|
@@ -3441,14 +1951,14 @@ function useComposedRefs(...refs) {
|
|
|
3441
1951
|
}
|
|
3442
1952
|
|
|
3443
1953
|
// node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3444
|
-
|
|
3445
|
-
|
|
1954
|
+
import * as React2 from "react";
|
|
1955
|
+
import { jsx } from "react/jsx-runtime";
|
|
3446
1956
|
function createContext2(rootComponentName, defaultContext) {
|
|
3447
1957
|
const Context = React2.createContext(defaultContext);
|
|
3448
1958
|
const Provider = (props) => {
|
|
3449
1959
|
const { children, ...context } = props;
|
|
3450
1960
|
const value = React2.useMemo(() => context, Object.values(context));
|
|
3451
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
3452
1962
|
};
|
|
3453
1963
|
Provider.displayName = rootComponentName + "Provider";
|
|
3454
1964
|
function useContext2(consumerName) {
|
|
@@ -3471,7 +1981,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
3471
1981
|
const { scope, children, ...context } = props;
|
|
3472
1982
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
3473
1983
|
const value = React2.useMemo(() => context, Object.values(context));
|
|
3474
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
3475
1985
|
};
|
|
3476
1986
|
Provider.displayName = rootComponentName + "Provider";
|
|
3477
1987
|
function useContext2(consumerName, scope) {
|
|
@@ -3520,10 +2030,10 @@ function composeContextScopes(...scopes) {
|
|
|
3520
2030
|
}
|
|
3521
2031
|
|
|
3522
2032
|
// node_modules/@radix-ui/react-id/dist/index.mjs
|
|
3523
|
-
|
|
2033
|
+
import * as React4 from "react";
|
|
3524
2034
|
|
|
3525
2035
|
// node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3526
|
-
|
|
2036
|
+
import * as React3 from "react";
|
|
3527
2037
|
var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {};
|
|
3528
2038
|
|
|
3529
2039
|
// node_modules/@radix-ui/react-id/dist/index.mjs
|
|
@@ -3541,8 +2051,8 @@ function useId(deterministicId) {
|
|
|
3541
2051
|
}
|
|
3542
2052
|
|
|
3543
2053
|
// node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3544
|
-
|
|
3545
|
-
|
|
2054
|
+
import * as React5 from "react";
|
|
2055
|
+
import * as React22 from "react";
|
|
3546
2056
|
var useInsertionEffect = React5[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
3547
2057
|
function useControllableState({
|
|
3548
2058
|
prop,
|
|
@@ -3604,15 +2114,15 @@ function isFunction(value) {
|
|
|
3604
2114
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
3605
2115
|
|
|
3606
2116
|
// node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
3607
|
-
|
|
2117
|
+
import * as React10 from "react";
|
|
3608
2118
|
|
|
3609
2119
|
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3610
|
-
|
|
3611
|
-
|
|
2120
|
+
import * as React7 from "react";
|
|
2121
|
+
import * as ReactDOM from "react-dom";
|
|
3612
2122
|
|
|
3613
2123
|
// node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3614
|
-
|
|
3615
|
-
|
|
2124
|
+
import * as React6 from "react";
|
|
2125
|
+
import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
|
|
3616
2126
|
function createSlot(ownerName) {
|
|
3617
2127
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
3618
2128
|
const Slot2 = React6.forwardRef((props, forwardedRef) => {
|
|
@@ -3630,9 +2140,9 @@ function createSlot(ownerName) {
|
|
|
3630
2140
|
return child;
|
|
3631
2141
|
}
|
|
3632
2142
|
});
|
|
3633
|
-
return /* @__PURE__ */
|
|
2143
|
+
return /* @__PURE__ */ jsx2(SlotClone, { ...slotProps, ref: forwardedRef, children: React6.isValidElement(newElement) ? React6.cloneElement(newElement, undefined, newChildren) : null });
|
|
3634
2144
|
}
|
|
3635
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx2(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
3636
2146
|
});
|
|
3637
2147
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
3638
2148
|
return Slot2;
|
|
@@ -3696,7 +2206,7 @@ function getElementRef(element) {
|
|
|
3696
2206
|
}
|
|
3697
2207
|
|
|
3698
2208
|
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3699
|
-
|
|
2209
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
3700
2210
|
var NODES = [
|
|
3701
2211
|
"a",
|
|
3702
2212
|
"button",
|
|
@@ -3724,7 +2234,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
3724
2234
|
if (typeof window !== "undefined") {
|
|
3725
2235
|
window[Symbol.for("radix-ui")] = true;
|
|
3726
2236
|
}
|
|
3727
|
-
return /* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ jsx3(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
3728
2238
|
});
|
|
3729
2239
|
Node2.displayName = `Primitive.${node}`;
|
|
3730
2240
|
return { ...primitive, [node]: Node2 };
|
|
@@ -3735,7 +2245,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
3735
2245
|
}
|
|
3736
2246
|
|
|
3737
2247
|
// node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3738
|
-
|
|
2248
|
+
import * as React8 from "react";
|
|
3739
2249
|
function useCallbackRef(callback) {
|
|
3740
2250
|
const callbackRef = React8.useRef(callback);
|
|
3741
2251
|
React8.useEffect(() => {
|
|
@@ -3745,7 +2255,7 @@ function useCallbackRef(callback) {
|
|
|
3745
2255
|
}
|
|
3746
2256
|
|
|
3747
2257
|
// node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
3748
|
-
|
|
2258
|
+
import * as React9 from "react";
|
|
3749
2259
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
3750
2260
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
3751
2261
|
React9.useEffect(() => {
|
|
@@ -3760,7 +2270,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
3760
2270
|
}
|
|
3761
2271
|
|
|
3762
2272
|
// node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
3763
|
-
|
|
2273
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
3764
2274
|
"use client";
|
|
3765
2275
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
3766
2276
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
@@ -3855,7 +2365,7 @@ var DismissableLayer = React10.forwardRef((props, forwardedRef) => {
|
|
|
3855
2365
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
3856
2366
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
3857
2367
|
}, []);
|
|
3858
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ jsx4(Primitive.div, {
|
|
3859
2369
|
...layerProps,
|
|
3860
2370
|
ref: composedRefs,
|
|
3861
2371
|
style: {
|
|
@@ -3882,7 +2392,7 @@ var DismissableLayerBranch = React10.forwardRef((props, forwardedRef) => {
|
|
|
3882
2392
|
};
|
|
3883
2393
|
}
|
|
3884
2394
|
}, [context.branches]);
|
|
3885
|
-
return /* @__PURE__ */
|
|
2395
|
+
return /* @__PURE__ */ jsx4(Primitive.div, { ...props, ref: composedRefs });
|
|
3886
2396
|
});
|
|
3887
2397
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
3888
2398
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -3959,8 +2469,8 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
3959
2469
|
}
|
|
3960
2470
|
|
|
3961
2471
|
// node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
3962
|
-
|
|
3963
|
-
|
|
2472
|
+
import * as React11 from "react";
|
|
2473
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
3964
2474
|
"use client";
|
|
3965
2475
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
3966
2476
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
@@ -4088,7 +2598,7 @@ var FocusScope = React11.forwardRef((props, forwardedRef) => {
|
|
|
4088
2598
|
}
|
|
4089
2599
|
}
|
|
4090
2600
|
}, [loop, trapped, focusScope.paused]);
|
|
4091
|
-
return /* @__PURE__ */
|
|
2601
|
+
return /* @__PURE__ */ jsx5(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
4092
2602
|
});
|
|
4093
2603
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
4094
2604
|
function focusFirst(candidates, { select = false } = {}) {
|
|
@@ -4179,9 +2689,9 @@ function removeLinks(items) {
|
|
|
4179
2689
|
}
|
|
4180
2690
|
|
|
4181
2691
|
// node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
2692
|
+
import * as React12 from "react";
|
|
2693
|
+
import ReactDOM2 from "react-dom";
|
|
2694
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
4185
2695
|
"use client";
|
|
4186
2696
|
var PORTAL_NAME = "Portal";
|
|
4187
2697
|
var Portal = React12.forwardRef((props, forwardedRef) => {
|
|
@@ -4189,13 +2699,13 @@ var Portal = React12.forwardRef((props, forwardedRef) => {
|
|
|
4189
2699
|
const [mounted, setMounted] = React12.useState(false);
|
|
4190
2700
|
useLayoutEffect2(() => setMounted(true), []);
|
|
4191
2701
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
4192
|
-
return container ?
|
|
2702
|
+
return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx6(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
4193
2703
|
});
|
|
4194
2704
|
Portal.displayName = PORTAL_NAME;
|
|
4195
2705
|
|
|
4196
2706
|
// node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4197
|
-
|
|
4198
|
-
|
|
2707
|
+
import * as React23 from "react";
|
|
2708
|
+
import * as React13 from "react";
|
|
4199
2709
|
"use client";
|
|
4200
2710
|
function useStateMachine(initialState, machine) {
|
|
4201
2711
|
return React13.useReducer((state, event) => {
|
|
@@ -4321,7 +2831,7 @@ function getElementRef2(element) {
|
|
|
4321
2831
|
}
|
|
4322
2832
|
|
|
4323
2833
|
// node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4324
|
-
|
|
2834
|
+
import * as React14 from "react";
|
|
4325
2835
|
"use client";
|
|
4326
2836
|
var count2 = 0;
|
|
4327
2837
|
function useFocusGuards() {
|
|
@@ -4387,10 +2897,10 @@ function __spreadArray(to, from, pack) {
|
|
|
4387
2897
|
}
|
|
4388
2898
|
|
|
4389
2899
|
// node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
4390
|
-
|
|
2900
|
+
import * as React21 from "react";
|
|
4391
2901
|
|
|
4392
2902
|
// node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
4393
|
-
|
|
2903
|
+
import * as React17 from "react";
|
|
4394
2904
|
|
|
4395
2905
|
// node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
4396
2906
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
@@ -4409,9 +2919,9 @@ function assignRef(ref, value) {
|
|
|
4409
2919
|
}
|
|
4410
2920
|
|
|
4411
2921
|
// node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
4412
|
-
|
|
2922
|
+
import { useState as useState7 } from "react";
|
|
4413
2923
|
function useCallbackRef2(initialValue, callback) {
|
|
4414
|
-
var ref =
|
|
2924
|
+
var ref = useState7(function() {
|
|
4415
2925
|
return {
|
|
4416
2926
|
value: initialValue,
|
|
4417
2927
|
callback,
|
|
@@ -4434,7 +2944,7 @@ function useCallbackRef2(initialValue, callback) {
|
|
|
4434
2944
|
}
|
|
4435
2945
|
|
|
4436
2946
|
// node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
4437
|
-
|
|
2947
|
+
import * as React15 from "react";
|
|
4438
2948
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React15.useLayoutEffect : React15.useEffect;
|
|
4439
2949
|
var currentValues = new WeakMap;
|
|
4440
2950
|
function useMergeRefs(refs, defaultValue) {
|
|
@@ -4550,7 +3060,7 @@ function createSidecarMedium(options) {
|
|
|
4550
3060
|
return medium;
|
|
4551
3061
|
}
|
|
4552
3062
|
// node_modules/use-sidecar/dist/es2015/exports.js
|
|
4553
|
-
|
|
3063
|
+
import * as React16 from "react";
|
|
4554
3064
|
var SideCar = function(_a) {
|
|
4555
3065
|
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
4556
3066
|
if (!sideCar) {
|
|
@@ -4598,13 +3108,13 @@ RemoveScroll.classNames = {
|
|
|
4598
3108
|
};
|
|
4599
3109
|
|
|
4600
3110
|
// node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
4601
|
-
|
|
3111
|
+
import * as React20 from "react";
|
|
4602
3112
|
|
|
4603
3113
|
// node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
4604
|
-
|
|
3114
|
+
import * as React19 from "react";
|
|
4605
3115
|
|
|
4606
3116
|
// node_modules/react-style-singleton/dist/es2015/hook.js
|
|
4607
|
-
|
|
3117
|
+
import * as React18 from "react";
|
|
4608
3118
|
|
|
4609
3119
|
// node_modules/get-nonce/dist/es2015/index.js
|
|
4610
3120
|
var currentNonce;
|
|
@@ -5211,8 +3721,8 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
5211
3721
|
};
|
|
5212
3722
|
|
|
5213
3723
|
// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5214
|
-
|
|
5215
|
-
|
|
3724
|
+
import * as React24 from "react";
|
|
3725
|
+
import { Fragment as Fragment22, jsx as jsx7 } from "react/jsx-runtime";
|
|
5216
3726
|
function createSlot2(ownerName) {
|
|
5217
3727
|
const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
|
|
5218
3728
|
const Slot2 = React24.forwardRef((props, forwardedRef) => {
|
|
@@ -5230,9 +3740,9 @@ function createSlot2(ownerName) {
|
|
|
5230
3740
|
return child;
|
|
5231
3741
|
}
|
|
5232
3742
|
});
|
|
5233
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx7(SlotClone, { ...slotProps, ref: forwardedRef, children: React24.isValidElement(newElement) ? React24.cloneElement(newElement, undefined, newChildren) : null });
|
|
5234
3744
|
}
|
|
5235
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx7(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
5236
3746
|
});
|
|
5237
3747
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
5238
3748
|
return Slot2;
|
|
@@ -5296,7 +3806,7 @@ function getElementRef3(element) {
|
|
|
5296
3806
|
}
|
|
5297
3807
|
|
|
5298
3808
|
// node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
5299
|
-
|
|
3809
|
+
import { Fragment as Fragment7, jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
5300
3810
|
"use client";
|
|
5301
3811
|
var DIALOG_NAME = "Dialog";
|
|
5302
3812
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
@@ -5318,7 +3828,7 @@ var Dialog = (props) => {
|
|
|
5318
3828
|
onChange: onOpenChange,
|
|
5319
3829
|
caller: DIALOG_NAME
|
|
5320
3830
|
});
|
|
5321
|
-
return /* @__PURE__ */
|
|
3831
|
+
return /* @__PURE__ */ jsx8(DialogProvider, {
|
|
5322
3832
|
scope: __scopeDialog,
|
|
5323
3833
|
triggerRef,
|
|
5324
3834
|
contentRef,
|
|
@@ -5338,7 +3848,7 @@ var DialogTrigger = React26.forwardRef((props, forwardedRef) => {
|
|
|
5338
3848
|
const { __scopeDialog, ...triggerProps } = props;
|
|
5339
3849
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
|
5340
3850
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
5341
|
-
return /* @__PURE__ */
|
|
3851
|
+
return /* @__PURE__ */ jsx8(Primitive.button, {
|
|
5342
3852
|
type: "button",
|
|
5343
3853
|
"aria-haspopup": "dialog",
|
|
5344
3854
|
"aria-expanded": context.open,
|
|
@@ -5357,7 +3867,7 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
|
|
|
5357
3867
|
var DialogPortal = (props) => {
|
|
5358
3868
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
5359
3869
|
const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
|
|
5360
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsx8(PortalProvider, { scope: __scopeDialog, forceMount, children: React26.Children.map(children, (child) => /* @__PURE__ */ jsx8(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx8(Portal, { asChild: true, container, children: child }) })) });
|
|
5361
3871
|
};
|
|
5362
3872
|
DialogPortal.displayName = PORTAL_NAME2;
|
|
5363
3873
|
var OVERLAY_NAME = "DialogOverlay";
|
|
@@ -5365,14 +3875,14 @@ var DialogOverlay = React26.forwardRef((props, forwardedRef) => {
|
|
|
5365
3875
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
5366
3876
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
5367
3877
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
5368
|
-
return context.modal ? /* @__PURE__ */
|
|
3878
|
+
return context.modal ? /* @__PURE__ */ jsx8(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx8(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
5369
3879
|
});
|
|
5370
3880
|
DialogOverlay.displayName = OVERLAY_NAME;
|
|
5371
3881
|
var Slot = createSlot2("DialogOverlay.RemoveScroll");
|
|
5372
3882
|
var DialogOverlayImpl = React26.forwardRef((props, forwardedRef) => {
|
|
5373
3883
|
const { __scopeDialog, ...overlayProps } = props;
|
|
5374
3884
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
5375
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ jsx8(Combination_default, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx8(Primitive.div, {
|
|
5376
3886
|
"data-state": getState(context.open),
|
|
5377
3887
|
...overlayProps,
|
|
5378
3888
|
ref: forwardedRef,
|
|
@@ -5384,7 +3894,7 @@ var DialogContent = React26.forwardRef((props, forwardedRef) => {
|
|
|
5384
3894
|
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
|
|
5385
3895
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
5386
3896
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
|
5387
|
-
return /* @__PURE__ */
|
|
3897
|
+
return /* @__PURE__ */ jsx8(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx8(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx8(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
5388
3898
|
});
|
|
5389
3899
|
DialogContent.displayName = CONTENT_NAME;
|
|
5390
3900
|
var DialogContentModal = React26.forwardRef((props, forwardedRef) => {
|
|
@@ -5396,7 +3906,7 @@ var DialogContentModal = React26.forwardRef((props, forwardedRef) => {
|
|
|
5396
3906
|
if (content)
|
|
5397
3907
|
return hideOthers(content);
|
|
5398
3908
|
}, []);
|
|
5399
|
-
return /* @__PURE__ */
|
|
3909
|
+
return /* @__PURE__ */ jsx8(DialogContentImpl, {
|
|
5400
3910
|
...props,
|
|
5401
3911
|
ref: composedRefs,
|
|
5402
3912
|
trapFocus: context.open,
|
|
@@ -5419,7 +3929,7 @@ var DialogContentNonModal = React26.forwardRef((props, forwardedRef) => {
|
|
|
5419
3929
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
|
5420
3930
|
const hasInteractedOutsideRef = React26.useRef(false);
|
|
5421
3931
|
const hasPointerDownOutsideRef = React26.useRef(false);
|
|
5422
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ jsx8(DialogContentImpl, {
|
|
5423
3933
|
...props,
|
|
5424
3934
|
ref: forwardedRef,
|
|
5425
3935
|
trapFocus: false,
|
|
@@ -5458,14 +3968,14 @@ var DialogContentImpl = React26.forwardRef((props, forwardedRef) => {
|
|
|
5458
3968
|
const contentRef = React26.useRef(null);
|
|
5459
3969
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
5460
3970
|
useFocusGuards();
|
|
5461
|
-
return /* @__PURE__ */
|
|
5462
|
-
/* @__PURE__ */
|
|
3971
|
+
return /* @__PURE__ */ jsxs(Fragment7, { children: [
|
|
3972
|
+
/* @__PURE__ */ jsx8(FocusScope, {
|
|
5463
3973
|
asChild: true,
|
|
5464
3974
|
loop: true,
|
|
5465
3975
|
trapped: trapFocus,
|
|
5466
3976
|
onMountAutoFocus: onOpenAutoFocus,
|
|
5467
3977
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
5468
|
-
children: /* @__PURE__ */
|
|
3978
|
+
children: /* @__PURE__ */ jsx8(DismissableLayer, {
|
|
5469
3979
|
role: "dialog",
|
|
5470
3980
|
id: context.contentId,
|
|
5471
3981
|
"aria-describedby": context.descriptionId,
|
|
@@ -5476,9 +3986,9 @@ var DialogContentImpl = React26.forwardRef((props, forwardedRef) => {
|
|
|
5476
3986
|
onDismiss: () => context.onOpenChange(false)
|
|
5477
3987
|
})
|
|
5478
3988
|
}),
|
|
5479
|
-
/* @__PURE__ */
|
|
5480
|
-
/* @__PURE__ */
|
|
5481
|
-
/* @__PURE__ */
|
|
3989
|
+
/* @__PURE__ */ jsxs(Fragment7, { children: [
|
|
3990
|
+
/* @__PURE__ */ jsx8(TitleWarning, { titleId: context.titleId }),
|
|
3991
|
+
/* @__PURE__ */ jsx8(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
|
5482
3992
|
] })
|
|
5483
3993
|
] });
|
|
5484
3994
|
});
|
|
@@ -5486,21 +3996,21 @@ var TITLE_NAME = "DialogTitle";
|
|
|
5486
3996
|
var DialogTitle = React26.forwardRef((props, forwardedRef) => {
|
|
5487
3997
|
const { __scopeDialog, ...titleProps } = props;
|
|
5488
3998
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
5489
|
-
return /* @__PURE__ */
|
|
3999
|
+
return /* @__PURE__ */ jsx8(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
5490
4000
|
});
|
|
5491
4001
|
DialogTitle.displayName = TITLE_NAME;
|
|
5492
4002
|
var DESCRIPTION_NAME = "DialogDescription";
|
|
5493
4003
|
var DialogDescription = React26.forwardRef((props, forwardedRef) => {
|
|
5494
4004
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
5495
4005
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
5496
|
-
return /* @__PURE__ */
|
|
4006
|
+
return /* @__PURE__ */ jsx8(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
5497
4007
|
});
|
|
5498
4008
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
5499
4009
|
var CLOSE_NAME = "DialogClose";
|
|
5500
4010
|
var DialogClose = React26.forwardRef((props, forwardedRef) => {
|
|
5501
4011
|
const { __scopeDialog, ...closeProps } = props;
|
|
5502
4012
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
5503
|
-
return /* @__PURE__ */
|
|
4013
|
+
return /* @__PURE__ */ jsx8(Primitive.button, {
|
|
5504
4014
|
type: "button",
|
|
5505
4015
|
...closeProps,
|
|
5506
4016
|
ref: forwardedRef,
|
|
@@ -5556,15 +4066,15 @@ var Title = DialogTitle;
|
|
|
5556
4066
|
var Close = DialogClose;
|
|
5557
4067
|
|
|
5558
4068
|
// node_modules/cmdk/dist/index.mjs
|
|
5559
|
-
|
|
4069
|
+
import * as t from "react";
|
|
5560
4070
|
|
|
5561
4071
|
// node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5562
|
-
|
|
5563
|
-
|
|
4072
|
+
import * as React28 from "react";
|
|
4073
|
+
import * as ReactDOM3 from "react-dom";
|
|
5564
4074
|
|
|
5565
4075
|
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5566
|
-
|
|
5567
|
-
|
|
4076
|
+
import * as React27 from "react";
|
|
4077
|
+
import { Fragment as Fragment23, jsx as jsx9 } from "react/jsx-runtime";
|
|
5568
4078
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
5569
4079
|
var use = React27[" use ".trim().toString()];
|
|
5570
4080
|
function isPromiseLike(value) {
|
|
@@ -5593,9 +4103,9 @@ function createSlot3(ownerName) {
|
|
|
5593
4103
|
return child;
|
|
5594
4104
|
}
|
|
5595
4105
|
});
|
|
5596
|
-
return /* @__PURE__ */
|
|
4106
|
+
return /* @__PURE__ */ jsx9(SlotClone, { ...slotProps, ref: forwardedRef, children: React27.isValidElement(newElement) ? React27.cloneElement(newElement, undefined, newChildren) : null });
|
|
5597
4107
|
}
|
|
5598
|
-
return /* @__PURE__ */
|
|
4108
|
+
return /* @__PURE__ */ jsx9(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
5599
4109
|
});
|
|
5600
4110
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
5601
4111
|
return Slot2;
|
|
@@ -5662,7 +4172,7 @@ function getElementRef4(element) {
|
|
|
5662
4172
|
}
|
|
5663
4173
|
|
|
5664
4174
|
// node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5665
|
-
|
|
4175
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
5666
4176
|
var NODES2 = [
|
|
5667
4177
|
"a",
|
|
5668
4178
|
"button",
|
|
@@ -5690,7 +4200,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
5690
4200
|
if (typeof window !== "undefined") {
|
|
5691
4201
|
window[Symbol.for("radix-ui")] = true;
|
|
5692
4202
|
}
|
|
5693
|
-
return /* @__PURE__ */
|
|
4203
|
+
return /* @__PURE__ */ jsx10(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
5694
4204
|
});
|
|
5695
4205
|
Node2.displayName = `Primitive.${node}`;
|
|
5696
4206
|
return { ...primitive, [node]: Node2 };
|
|
@@ -6027,21 +4537,21 @@ function B2({ asChild: r2, children: o }, n) {
|
|
|
6027
4537
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
6028
4538
|
|
|
6029
4539
|
// src/components/booking-search/ui/command.tsx
|
|
6030
|
-
|
|
6031
|
-
var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4540
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
4541
|
+
var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(_e, {
|
|
6032
4542
|
ref,
|
|
6033
4543
|
className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-slate-950", className),
|
|
6034
4544
|
...props
|
|
6035
4545
|
}, undefined, false, undefined, this));
|
|
6036
4546
|
Command.displayName = _e.displayName;
|
|
6037
|
-
var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4547
|
+
var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV("div", {
|
|
6038
4548
|
className: "flex items-center border-b border-slate-200 px-3",
|
|
6039
4549
|
"cmdk-input-wrapper": "",
|
|
6040
4550
|
children: [
|
|
6041
|
-
/* @__PURE__ */
|
|
4551
|
+
/* @__PURE__ */ jsxDEV(Search, {
|
|
6042
4552
|
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
6043
4553
|
}, undefined, false, undefined, this),
|
|
6044
|
-
/* @__PURE__ */
|
|
4554
|
+
/* @__PURE__ */ jsxDEV(_e.Input, {
|
|
6045
4555
|
ref,
|
|
6046
4556
|
className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-slate-500 disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
6047
4557
|
...props
|
|
@@ -6049,25 +4559,25 @@ var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
6049
4559
|
]
|
|
6050
4560
|
}, undefined, true, undefined, this));
|
|
6051
4561
|
CommandInput.displayName = _e.Input.displayName;
|
|
6052
|
-
var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4562
|
+
var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(_e.List, {
|
|
6053
4563
|
ref,
|
|
6054
4564
|
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
6055
4565
|
...props
|
|
6056
4566
|
}, undefined, false, undefined, this));
|
|
6057
4567
|
CommandList.displayName = _e.List.displayName;
|
|
6058
|
-
var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */
|
|
4568
|
+
var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */ jsxDEV(_e.Empty, {
|
|
6059
4569
|
ref,
|
|
6060
4570
|
className: "py-6 text-center text-sm text-slate-500",
|
|
6061
4571
|
...props
|
|
6062
4572
|
}, undefined, false, undefined, this));
|
|
6063
4573
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
6064
|
-
var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4574
|
+
var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(_e.Group, {
|
|
6065
4575
|
ref,
|
|
6066
4576
|
className: cn("overflow-hidden p-1 text-slate-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-slate-500", className),
|
|
6067
4577
|
...props
|
|
6068
4578
|
}, undefined, false, undefined, this));
|
|
6069
4579
|
CommandGroup.displayName = _e.Group.displayName;
|
|
6070
|
-
var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4580
|
+
var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(_e.Item, {
|
|
6071
4581
|
ref,
|
|
6072
4582
|
className: cn("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-blue-50 data-[selected=true]:text-blue-900 data-[disabled=true]:opacity-50", className),
|
|
6073
4583
|
...props
|
|
@@ -6075,13 +4585,13 @@ var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
6075
4585
|
CommandItem.displayName = _e.Item.displayName;
|
|
6076
4586
|
|
|
6077
4587
|
// src/components/booking-search/ui/popover.tsx
|
|
6078
|
-
|
|
4588
|
+
import * as React36 from "react";
|
|
6079
4589
|
|
|
6080
4590
|
// node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
6081
|
-
|
|
4591
|
+
import * as React35 from "react";
|
|
6082
4592
|
|
|
6083
4593
|
// node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
6084
|
-
|
|
4594
|
+
import * as React33 from "react";
|
|
6085
4595
|
|
|
6086
4596
|
// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
6087
4597
|
var sides = ["top", "right", "bottom", "left"];
|
|
@@ -7680,12 +6190,12 @@ var computePosition2 = (reference, floating, options2) => {
|
|
|
7680
6190
|
};
|
|
7681
6191
|
|
|
7682
6192
|
// node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
6193
|
+
import * as React30 from "react";
|
|
6194
|
+
import { useLayoutEffect as useLayoutEffect6 } from "react";
|
|
6195
|
+
import * as ReactDOM4 from "react-dom";
|
|
7686
6196
|
var isClient = typeof document !== "undefined";
|
|
7687
6197
|
var noop = function noop2() {};
|
|
7688
|
-
var index = isClient ?
|
|
6198
|
+
var index = isClient ? useLayoutEffect6 : noop;
|
|
7689
6199
|
function deepEqual(a, b) {
|
|
7690
6200
|
if (a === b) {
|
|
7691
6201
|
return true;
|
|
@@ -7962,26 +6472,26 @@ var arrow3 = (options2, deps) => ({
|
|
|
7962
6472
|
});
|
|
7963
6473
|
|
|
7964
6474
|
// node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
7965
|
-
|
|
7966
|
-
|
|
6475
|
+
import * as React31 from "react";
|
|
6476
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
7967
6477
|
var NAME = "Arrow";
|
|
7968
6478
|
var Arrow = React31.forwardRef((props, forwardedRef) => {
|
|
7969
6479
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
7970
|
-
return /* @__PURE__ */
|
|
6480
|
+
return /* @__PURE__ */ jsx11(Primitive.svg, {
|
|
7971
6481
|
...arrowProps,
|
|
7972
6482
|
ref: forwardedRef,
|
|
7973
6483
|
width,
|
|
7974
6484
|
height,
|
|
7975
6485
|
viewBox: "0 0 30 10",
|
|
7976
6486
|
preserveAspectRatio: "none",
|
|
7977
|
-
children: props.asChild ? children : /* @__PURE__ */
|
|
6487
|
+
children: props.asChild ? children : /* @__PURE__ */ jsx11("polygon", { points: "0,0 30,0 15,10" })
|
|
7978
6488
|
});
|
|
7979
6489
|
});
|
|
7980
6490
|
Arrow.displayName = NAME;
|
|
7981
6491
|
var Root2 = Arrow;
|
|
7982
6492
|
|
|
7983
6493
|
// node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
7984
|
-
|
|
6494
|
+
import * as React32 from "react";
|
|
7985
6495
|
function useSize(element) {
|
|
7986
6496
|
const [size4, setSize] = React32.useState(undefined);
|
|
7987
6497
|
useLayoutEffect2(() => {
|
|
@@ -8018,7 +6528,7 @@ function useSize(element) {
|
|
|
8018
6528
|
}
|
|
8019
6529
|
|
|
8020
6530
|
// node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
8021
|
-
|
|
6531
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
8022
6532
|
"use client";
|
|
8023
6533
|
var POPPER_NAME = "Popper";
|
|
8024
6534
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
@@ -8026,7 +6536,7 @@ var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
|
8026
6536
|
var Popper = (props) => {
|
|
8027
6537
|
const { __scopePopper, children } = props;
|
|
8028
6538
|
const [anchor, setAnchor] = React33.useState(null);
|
|
8029
|
-
return /* @__PURE__ */
|
|
6539
|
+
return /* @__PURE__ */ jsx12(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
8030
6540
|
};
|
|
8031
6541
|
Popper.displayName = POPPER_NAME;
|
|
8032
6542
|
var ANCHOR_NAME = "PopperAnchor";
|
|
@@ -8043,7 +6553,7 @@ var PopperAnchor = React33.forwardRef((props, forwardedRef) => {
|
|
|
8043
6553
|
context.onAnchorChange(anchorRef.current);
|
|
8044
6554
|
}
|
|
8045
6555
|
});
|
|
8046
|
-
return virtualRef ? null : /* @__PURE__ */
|
|
6556
|
+
return virtualRef ? null : /* @__PURE__ */ jsx12(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
8047
6557
|
});
|
|
8048
6558
|
PopperAnchor.displayName = ANCHOR_NAME;
|
|
8049
6559
|
var CONTENT_NAME2 = "PopperContent";
|
|
@@ -8133,7 +6643,7 @@ var PopperContent = React33.forwardRef((props, forwardedRef) => {
|
|
|
8133
6643
|
if (content)
|
|
8134
6644
|
setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
8135
6645
|
}, [content]);
|
|
8136
|
-
return /* @__PURE__ */
|
|
6646
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
8137
6647
|
ref: refs.setFloating,
|
|
8138
6648
|
"data-radix-popper-content-wrapper": "",
|
|
8139
6649
|
style: {
|
|
@@ -8151,14 +6661,14 @@ var PopperContent = React33.forwardRef((props, forwardedRef) => {
|
|
|
8151
6661
|
}
|
|
8152
6662
|
},
|
|
8153
6663
|
dir: props.dir,
|
|
8154
|
-
children: /* @__PURE__ */
|
|
6664
|
+
children: /* @__PURE__ */ jsx12(PopperContentProvider, {
|
|
8155
6665
|
scope: __scopePopper,
|
|
8156
6666
|
placedSide,
|
|
8157
6667
|
onArrowChange: setArrow,
|
|
8158
6668
|
arrowX,
|
|
8159
6669
|
arrowY,
|
|
8160
6670
|
shouldHideArrow: cannotCenterArrow,
|
|
8161
|
-
children: /* @__PURE__ */
|
|
6671
|
+
children: /* @__PURE__ */ jsx12(Primitive.div, {
|
|
8162
6672
|
"data-side": placedSide,
|
|
8163
6673
|
"data-align": placedAlign,
|
|
8164
6674
|
...contentProps,
|
|
@@ -8183,7 +6693,7 @@ var PopperArrow = React33.forwardRef(function PopperArrow2(props, forwardedRef)
|
|
|
8183
6693
|
const { __scopePopper, ...arrowProps } = props;
|
|
8184
6694
|
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
8185
6695
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
8186
|
-
return /* @__PURE__ */
|
|
6696
|
+
return /* @__PURE__ */ jsx12("span", {
|
|
8187
6697
|
ref: contentContext.onArrowChange,
|
|
8188
6698
|
style: {
|
|
8189
6699
|
position: "absolute",
|
|
@@ -8204,7 +6714,7 @@ var PopperArrow = React33.forwardRef(function PopperArrow2(props, forwardedRef)
|
|
|
8204
6714
|
}[contentContext.placedSide],
|
|
8205
6715
|
visibility: contentContext.shouldHideArrow ? "hidden" : undefined
|
|
8206
6716
|
},
|
|
8207
|
-
children: /* @__PURE__ */
|
|
6717
|
+
children: /* @__PURE__ */ jsx12(Root2, {
|
|
8208
6718
|
...arrowProps,
|
|
8209
6719
|
ref: forwardedRef,
|
|
8210
6720
|
style: {
|
|
@@ -8259,8 +6769,8 @@ var Content2 = PopperContent;
|
|
|
8259
6769
|
var Arrow2 = PopperArrow;
|
|
8260
6770
|
|
|
8261
6771
|
// node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
8262
|
-
|
|
8263
|
-
|
|
6772
|
+
import * as React34 from "react";
|
|
6773
|
+
import { Fragment as Fragment24, jsx as jsx13 } from "react/jsx-runtime";
|
|
8264
6774
|
function createSlot4(ownerName) {
|
|
8265
6775
|
const SlotClone = /* @__PURE__ */ createSlotClone4(ownerName);
|
|
8266
6776
|
const Slot2 = React34.forwardRef((props, forwardedRef) => {
|
|
@@ -8278,9 +6788,9 @@ function createSlot4(ownerName) {
|
|
|
8278
6788
|
return child;
|
|
8279
6789
|
}
|
|
8280
6790
|
});
|
|
8281
|
-
return /* @__PURE__ */
|
|
6791
|
+
return /* @__PURE__ */ jsx13(SlotClone, { ...slotProps, ref: forwardedRef, children: React34.isValidElement(newElement) ? React34.cloneElement(newElement, undefined, newChildren) : null });
|
|
8282
6792
|
}
|
|
8283
|
-
return /* @__PURE__ */
|
|
6793
|
+
return /* @__PURE__ */ jsx13(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
8284
6794
|
});
|
|
8285
6795
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
8286
6796
|
return Slot2;
|
|
@@ -8344,7 +6854,7 @@ function getElementRef5(element) {
|
|
|
8344
6854
|
}
|
|
8345
6855
|
|
|
8346
6856
|
// node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
8347
|
-
|
|
6857
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
8348
6858
|
"use client";
|
|
8349
6859
|
var POPOVER_NAME = "Popover";
|
|
8350
6860
|
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
@@ -8370,7 +6880,7 @@ var Popover = (props) => {
|
|
|
8370
6880
|
onChange: onOpenChange,
|
|
8371
6881
|
caller: POPOVER_NAME
|
|
8372
6882
|
});
|
|
8373
|
-
return /* @__PURE__ */
|
|
6883
|
+
return /* @__PURE__ */ jsx14(Root22, { ...popperScope, children: /* @__PURE__ */ jsx14(PopoverProvider, {
|
|
8374
6884
|
scope: __scopePopover,
|
|
8375
6885
|
contentId: useId(),
|
|
8376
6886
|
triggerRef,
|
|
@@ -8395,7 +6905,7 @@ var PopoverAnchor = React35.forwardRef((props, forwardedRef) => {
|
|
|
8395
6905
|
onCustomAnchorAdd();
|
|
8396
6906
|
return () => onCustomAnchorRemove();
|
|
8397
6907
|
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
8398
|
-
return /* @__PURE__ */
|
|
6908
|
+
return /* @__PURE__ */ jsx14(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
8399
6909
|
});
|
|
8400
6910
|
PopoverAnchor.displayName = ANCHOR_NAME2;
|
|
8401
6911
|
var TRIGGER_NAME2 = "PopoverTrigger";
|
|
@@ -8404,7 +6914,7 @@ var PopoverTrigger = React35.forwardRef((props, forwardedRef) => {
|
|
|
8404
6914
|
const context = usePopoverContext(TRIGGER_NAME2, __scopePopover);
|
|
8405
6915
|
const popperScope = usePopperScope(__scopePopover);
|
|
8406
6916
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
8407
|
-
const trigger = /* @__PURE__ */
|
|
6917
|
+
const trigger = /* @__PURE__ */ jsx14(Primitive.button, {
|
|
8408
6918
|
type: "button",
|
|
8409
6919
|
"aria-haspopup": "dialog",
|
|
8410
6920
|
"aria-expanded": context.open,
|
|
@@ -8414,7 +6924,7 @@ var PopoverTrigger = React35.forwardRef((props, forwardedRef) => {
|
|
|
8414
6924
|
ref: composedTriggerRef,
|
|
8415
6925
|
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
8416
6926
|
});
|
|
8417
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
6927
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx14(Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
8418
6928
|
});
|
|
8419
6929
|
PopoverTrigger.displayName = TRIGGER_NAME2;
|
|
8420
6930
|
var PORTAL_NAME3 = "PopoverPortal";
|
|
@@ -8424,7 +6934,7 @@ var [PortalProvider2, usePortalContext2] = createPopoverContext(PORTAL_NAME3, {
|
|
|
8424
6934
|
var PopoverPortal = (props) => {
|
|
8425
6935
|
const { __scopePopover, forceMount, children, container } = props;
|
|
8426
6936
|
const context = usePopoverContext(PORTAL_NAME3, __scopePopover);
|
|
8427
|
-
return /* @__PURE__ */
|
|
6937
|
+
return /* @__PURE__ */ jsx14(PortalProvider2, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx14(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx14(Portal, { asChild: true, container, children }) }) });
|
|
8428
6938
|
};
|
|
8429
6939
|
PopoverPortal.displayName = PORTAL_NAME3;
|
|
8430
6940
|
var CONTENT_NAME3 = "PopoverContent";
|
|
@@ -8432,7 +6942,7 @@ var PopoverContent = React35.forwardRef((props, forwardedRef) => {
|
|
|
8432
6942
|
const portalContext = usePortalContext2(CONTENT_NAME3, props.__scopePopover);
|
|
8433
6943
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
8434
6944
|
const context = usePopoverContext(CONTENT_NAME3, props.__scopePopover);
|
|
8435
|
-
return /* @__PURE__ */
|
|
6945
|
+
return /* @__PURE__ */ jsx14(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx14(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx14(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
8436
6946
|
});
|
|
8437
6947
|
PopoverContent.displayName = CONTENT_NAME3;
|
|
8438
6948
|
var Slot2 = createSlot4("PopoverContent.RemoveScroll");
|
|
@@ -8446,7 +6956,7 @@ var PopoverContentModal = React35.forwardRef((props, forwardedRef) => {
|
|
|
8446
6956
|
if (content)
|
|
8447
6957
|
return hideOthers(content);
|
|
8448
6958
|
}, []);
|
|
8449
|
-
return /* @__PURE__ */
|
|
6959
|
+
return /* @__PURE__ */ jsx14(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ jsx14(PopoverContentImpl, {
|
|
8450
6960
|
...props,
|
|
8451
6961
|
ref: composedRefs,
|
|
8452
6962
|
trapFocus: context.open,
|
|
@@ -8469,7 +6979,7 @@ var PopoverContentNonModal = React35.forwardRef((props, forwardedRef) => {
|
|
|
8469
6979
|
const context = usePopoverContext(CONTENT_NAME3, props.__scopePopover);
|
|
8470
6980
|
const hasInteractedOutsideRef = React35.useRef(false);
|
|
8471
6981
|
const hasPointerDownOutsideRef = React35.useRef(false);
|
|
8472
|
-
return /* @__PURE__ */
|
|
6982
|
+
return /* @__PURE__ */ jsx14(PopoverContentImpl, {
|
|
8473
6983
|
...props,
|
|
8474
6984
|
ref: forwardedRef,
|
|
8475
6985
|
trapFocus: false,
|
|
@@ -8518,13 +7028,13 @@ var PopoverContentImpl = React35.forwardRef((props, forwardedRef) => {
|
|
|
8518
7028
|
const context = usePopoverContext(CONTENT_NAME3, __scopePopover);
|
|
8519
7029
|
const popperScope = usePopperScope(__scopePopover);
|
|
8520
7030
|
useFocusGuards();
|
|
8521
|
-
return /* @__PURE__ */
|
|
7031
|
+
return /* @__PURE__ */ jsx14(FocusScope, {
|
|
8522
7032
|
asChild: true,
|
|
8523
7033
|
loop: true,
|
|
8524
7034
|
trapped: trapFocus,
|
|
8525
7035
|
onMountAutoFocus: onOpenAutoFocus,
|
|
8526
7036
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
8527
|
-
children: /* @__PURE__ */
|
|
7037
|
+
children: /* @__PURE__ */ jsx14(DismissableLayer, {
|
|
8528
7038
|
asChild: true,
|
|
8529
7039
|
disableOutsidePointerEvents,
|
|
8530
7040
|
onInteractOutside,
|
|
@@ -8532,7 +7042,7 @@ var PopoverContentImpl = React35.forwardRef((props, forwardedRef) => {
|
|
|
8532
7042
|
onPointerDownOutside,
|
|
8533
7043
|
onFocusOutside,
|
|
8534
7044
|
onDismiss: () => context.onOpenChange(false),
|
|
8535
|
-
children: /* @__PURE__ */
|
|
7045
|
+
children: /* @__PURE__ */ jsx14(Content2, {
|
|
8536
7046
|
"data-state": getState2(context.open),
|
|
8537
7047
|
role: "dialog",
|
|
8538
7048
|
id: context.contentId,
|
|
@@ -8557,7 +7067,7 @@ var CLOSE_NAME2 = "PopoverClose";
|
|
|
8557
7067
|
var PopoverClose = React35.forwardRef((props, forwardedRef) => {
|
|
8558
7068
|
const { __scopePopover, ...closeProps } = props;
|
|
8559
7069
|
const context = usePopoverContext(CLOSE_NAME2, __scopePopover);
|
|
8560
|
-
return /* @__PURE__ */
|
|
7070
|
+
return /* @__PURE__ */ jsx14(Primitive.button, {
|
|
8561
7071
|
type: "button",
|
|
8562
7072
|
...closeProps,
|
|
8563
7073
|
ref: forwardedRef,
|
|
@@ -8569,7 +7079,7 @@ var ARROW_NAME2 = "PopoverArrow";
|
|
|
8569
7079
|
var PopoverArrow = React35.forwardRef((props, forwardedRef) => {
|
|
8570
7080
|
const { __scopePopover, ...arrowProps } = props;
|
|
8571
7081
|
const popperScope = usePopperScope(__scopePopover);
|
|
8572
|
-
return /* @__PURE__ */
|
|
7082
|
+
return /* @__PURE__ */ jsx14(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
8573
7083
|
});
|
|
8574
7084
|
PopoverArrow.displayName = ARROW_NAME2;
|
|
8575
7085
|
function getState2(open) {
|
|
@@ -8581,11 +7091,11 @@ var Portal3 = PopoverPortal;
|
|
|
8581
7091
|
var Content22 = PopoverContent;
|
|
8582
7092
|
|
|
8583
7093
|
// src/components/booking-search/ui/popover.tsx
|
|
8584
|
-
|
|
7094
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
8585
7095
|
var Popover2 = Root23;
|
|
8586
7096
|
var PopoverTrigger2 = Trigger2;
|
|
8587
|
-
var PopoverContent2 = React36.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
8588
|
-
children: /* @__PURE__ */
|
|
7097
|
+
var PopoverContent2 = React36.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxDEV2(Portal3, {
|
|
7098
|
+
children: /* @__PURE__ */ jsxDEV2(Content22, {
|
|
8589
7099
|
ref,
|
|
8590
7100
|
align,
|
|
8591
7101
|
sideOffset,
|
|
@@ -8596,7 +7106,7 @@ var PopoverContent2 = React36.forwardRef(({ className, align = "center", sideOff
|
|
|
8596
7106
|
PopoverContent2.displayName = Content22.displayName;
|
|
8597
7107
|
|
|
8598
7108
|
// src/components/booking-search/location-combobox.tsx
|
|
8599
|
-
|
|
7109
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
8600
7110
|
function LocationCombobox({
|
|
8601
7111
|
locations,
|
|
8602
7112
|
value,
|
|
@@ -8608,13 +7118,13 @@ function LocationCombobox({
|
|
|
8608
7118
|
title = "Destination"
|
|
8609
7119
|
}) {
|
|
8610
7120
|
const [open, setOpen] = React37.useState(false);
|
|
8611
|
-
return /* @__PURE__ */
|
|
7121
|
+
return /* @__PURE__ */ jsxDEV3(Popover2, {
|
|
8612
7122
|
open,
|
|
8613
7123
|
onOpenChange: setOpen,
|
|
8614
7124
|
children: [
|
|
8615
|
-
/* @__PURE__ */
|
|
7125
|
+
/* @__PURE__ */ jsxDEV3(PopoverTrigger2, {
|
|
8616
7126
|
asChild: true,
|
|
8617
|
-
children: /* @__PURE__ */
|
|
7127
|
+
children: /* @__PURE__ */ jsxDEV3("button", {
|
|
8618
7128
|
type: "button",
|
|
8619
7129
|
role: "combobox",
|
|
8620
7130
|
"aria-expanded": open,
|
|
@@ -8623,21 +7133,21 @@ function LocationCombobox({
|
|
|
8623
7133
|
tabIndex,
|
|
8624
7134
|
className: cn("flex h-14 w-full items-center gap-3 rounded-lg border border-slate-300 bg-white px-4 py-3 text-left text-sm transition-colors hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
8625
7135
|
children: [
|
|
8626
|
-
/* @__PURE__ */
|
|
7136
|
+
/* @__PURE__ */ jsxDEV3(MapPin, {
|
|
8627
7137
|
className: "h-5 w-5 text-slate-500 flex-shrink-0",
|
|
8628
7138
|
"aria-hidden": "true"
|
|
8629
7139
|
}, undefined, false, undefined, this),
|
|
8630
|
-
/* @__PURE__ */
|
|
7140
|
+
/* @__PURE__ */ jsxDEV3("div", {
|
|
8631
7141
|
className: "flex flex-col min-w-0 flex-1",
|
|
8632
7142
|
children: [
|
|
8633
|
-
/* @__PURE__ */
|
|
7143
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
8634
7144
|
className: "text-xs font-medium text-slate-500",
|
|
8635
7145
|
children: title
|
|
8636
7146
|
}, undefined, false, undefined, this),
|
|
8637
|
-
value ? /* @__PURE__ */
|
|
7147
|
+
value ? /* @__PURE__ */ jsxDEV3("span", {
|
|
8638
7148
|
className: "font-medium text-slate-900 truncate",
|
|
8639
7149
|
children: value.name
|
|
8640
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */
|
|
7150
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV3("span", {
|
|
8641
7151
|
className: "text-slate-400 truncate",
|
|
8642
7152
|
children: placeholder
|
|
8643
7153
|
}, undefined, false, undefined, this)
|
|
@@ -8646,21 +7156,21 @@ function LocationCombobox({
|
|
|
8646
7156
|
]
|
|
8647
7157
|
}, undefined, true, undefined, this)
|
|
8648
7158
|
}, undefined, false, undefined, this),
|
|
8649
|
-
/* @__PURE__ */
|
|
7159
|
+
/* @__PURE__ */ jsxDEV3(PopoverContent2, {
|
|
8650
7160
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
8651
7161
|
align: "start",
|
|
8652
|
-
children: /* @__PURE__ */
|
|
7162
|
+
children: /* @__PURE__ */ jsxDEV3(Command, {
|
|
8653
7163
|
children: [
|
|
8654
|
-
/* @__PURE__ */
|
|
7164
|
+
/* @__PURE__ */ jsxDEV3(CommandInput, {
|
|
8655
7165
|
placeholder: "Search a destination..."
|
|
8656
7166
|
}, undefined, false, undefined, this),
|
|
8657
|
-
/* @__PURE__ */
|
|
7167
|
+
/* @__PURE__ */ jsxDEV3(CommandList, {
|
|
8658
7168
|
children: [
|
|
8659
|
-
/* @__PURE__ */
|
|
7169
|
+
/* @__PURE__ */ jsxDEV3(CommandEmpty, {
|
|
8660
7170
|
children: "No location found."
|
|
8661
7171
|
}, undefined, false, undefined, this),
|
|
8662
|
-
/* @__PURE__ */
|
|
8663
|
-
children: locations.map((location) => /* @__PURE__ */
|
|
7172
|
+
/* @__PURE__ */ jsxDEV3(CommandGroup, {
|
|
7173
|
+
children: locations.map((location) => /* @__PURE__ */ jsxDEV3(CommandItem, {
|
|
8664
7174
|
value: location.name,
|
|
8665
7175
|
onSelect: () => {
|
|
8666
7176
|
onChange(location.id === value?.id ? null : location);
|
|
@@ -8668,21 +7178,21 @@ function LocationCombobox({
|
|
|
8668
7178
|
},
|
|
8669
7179
|
className: "flex items-center justify-between",
|
|
8670
7180
|
children: [
|
|
8671
|
-
/* @__PURE__ */
|
|
7181
|
+
/* @__PURE__ */ jsxDEV3("div", {
|
|
8672
7182
|
className: "flex items-center gap-2",
|
|
8673
7183
|
children: [
|
|
8674
|
-
/* @__PURE__ */
|
|
7184
|
+
/* @__PURE__ */ jsxDEV3(MapPin, {
|
|
8675
7185
|
className: "h-4 w-4 text-slate-500",
|
|
8676
7186
|
"aria-hidden": "true"
|
|
8677
7187
|
}, undefined, false, undefined, this),
|
|
8678
|
-
/* @__PURE__ */
|
|
7188
|
+
/* @__PURE__ */ jsxDEV3("div", {
|
|
8679
7189
|
className: "flex flex-col",
|
|
8680
7190
|
children: [
|
|
8681
|
-
/* @__PURE__ */
|
|
7191
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
8682
7192
|
className: "font-medium",
|
|
8683
7193
|
children: location.name
|
|
8684
7194
|
}, undefined, false, undefined, this),
|
|
8685
|
-
location.type && /* @__PURE__ */
|
|
7195
|
+
location.type && /* @__PURE__ */ jsxDEV3("span", {
|
|
8686
7196
|
className: "text-xs text-slate-500",
|
|
8687
7197
|
children: location.type
|
|
8688
7198
|
}, undefined, false, undefined, this)
|
|
@@ -8690,7 +7200,7 @@ function LocationCombobox({
|
|
|
8690
7200
|
}, undefined, true, undefined, this)
|
|
8691
7201
|
]
|
|
8692
7202
|
}, undefined, true, undefined, this),
|
|
8693
|
-
/* @__PURE__ */
|
|
7203
|
+
/* @__PURE__ */ jsxDEV3(Check, {
|
|
8694
7204
|
className: cn("h-4 w-4", value?.id === location.id ? "opacity-100" : "opacity-0"),
|
|
8695
7205
|
"aria-hidden": "true"
|
|
8696
7206
|
}, undefined, false, undefined, this)
|
|
@@ -8707,11 +7217,11 @@ function LocationCombobox({
|
|
|
8707
7217
|
}
|
|
8708
7218
|
|
|
8709
7219
|
// src/components/booking-search/date-range-picker.tsx
|
|
8710
|
-
|
|
7220
|
+
import * as React38 from "react";
|
|
8711
7221
|
|
|
8712
7222
|
// node_modules/react-day-picker/dist/index.esm.js
|
|
8713
|
-
|
|
8714
|
-
|
|
7223
|
+
import { jsx as jsx15, jsxs as jsxs2, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
7224
|
+
import { createContext as createContext6, useContext as useContext4, useState as useState16, forwardRef as forwardRef21, useEffect as useEffect17, useRef as useRef14, useLayoutEffect as useLayoutEffect7 } from "react";
|
|
8715
7225
|
|
|
8716
7226
|
// node_modules/date-fns/constants.js
|
|
8717
7227
|
var daysInYear = 365.2425;
|
|
@@ -10729,7 +9239,7 @@ function parseFromToProps(props) {
|
|
|
10729
9239
|
toDate: toDate2 ? startOfDay(toDate2) : undefined
|
|
10730
9240
|
};
|
|
10731
9241
|
}
|
|
10732
|
-
var DayPickerContext =
|
|
9242
|
+
var DayPickerContext = createContext6(undefined);
|
|
10733
9243
|
function DayPickerProvider(props) {
|
|
10734
9244
|
var _a;
|
|
10735
9245
|
var initialProps = props.initialProps;
|
|
@@ -10744,10 +9254,10 @@ function DayPickerProvider(props) {
|
|
|
10744
9254
|
onSelect = initialProps.onSelect;
|
|
10745
9255
|
}
|
|
10746
9256
|
var value = __assign2(__assign2(__assign2({}, defaultContextValues), initialProps), { captionLayout, classNames: __assign2(__assign2({}, defaultContextValues.classNames), initialProps.classNames), components: __assign2({}, initialProps.components), formatters: __assign2(__assign2({}, defaultContextValues.formatters), initialProps.formatters), fromDate, labels: __assign2(__assign2({}, defaultContextValues.labels), initialProps.labels), mode: initialProps.mode || defaultContextValues.mode, modifiers: __assign2(__assign2({}, defaultContextValues.modifiers), initialProps.modifiers), modifiersClassNames: __assign2(__assign2({}, defaultContextValues.modifiersClassNames), initialProps.modifiersClassNames), onSelect, styles: __assign2(__assign2({}, defaultContextValues.styles), initialProps.styles), toDate: toDate2 });
|
|
10747
|
-
return
|
|
9257
|
+
return jsx15(DayPickerContext.Provider, { value, children: props.children });
|
|
10748
9258
|
}
|
|
10749
9259
|
function useDayPicker() {
|
|
10750
|
-
var context =
|
|
9260
|
+
var context = useContext4(DayPickerContext);
|
|
10751
9261
|
if (!context) {
|
|
10752
9262
|
throw new Error("useDayPicker must be used within a DayPickerProvider.");
|
|
10753
9263
|
}
|
|
@@ -10755,25 +9265,25 @@ function useDayPicker() {
|
|
|
10755
9265
|
}
|
|
10756
9266
|
function CaptionLabel(props) {
|
|
10757
9267
|
var _a = useDayPicker(), locale = _a.locale, classNames = _a.classNames, styles = _a.styles, formatCaption2 = _a.formatters.formatCaption;
|
|
10758
|
-
return
|
|
9268
|
+
return jsx15("div", { className: classNames.caption_label, style: styles.caption_label, "aria-live": "polite", role: "presentation", id: props.id, children: formatCaption2(props.displayMonth, { locale }) });
|
|
10759
9269
|
}
|
|
10760
9270
|
function IconDropdown(props) {
|
|
10761
|
-
return
|
|
9271
|
+
return jsx15("svg", __assign2({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, props, { children: jsx15("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
10762
9272
|
}
|
|
10763
9273
|
function Dropdown(props) {
|
|
10764
9274
|
var _a, _b;
|
|
10765
9275
|
var { onChange, value, children, caption, className, style } = props;
|
|
10766
9276
|
var dayPicker = useDayPicker();
|
|
10767
9277
|
var IconDropdownComponent = (_b = (_a = dayPicker.components) === null || _a === undefined ? undefined : _a.IconDropdown) !== null && _b !== undefined ? _b : IconDropdown;
|
|
10768
|
-
return
|
|
9278
|
+
return jsxs2("div", { className, style, children: [jsx15("span", { className: dayPicker.classNames.vhidden, children: props["aria-label"] }), jsx15("select", { name: props.name, "aria-label": props["aria-label"], className: dayPicker.classNames.dropdown, style: dayPicker.styles.dropdown, value, onChange, children }), jsxs2("div", { className: dayPicker.classNames.caption_label, style: dayPicker.styles.caption_label, "aria-hidden": "true", children: [caption, jsx15(IconDropdownComponent, { className: dayPicker.classNames.dropdown_icon, style: dayPicker.styles.dropdown_icon })] })] });
|
|
10769
9279
|
}
|
|
10770
9280
|
function MonthsDropdown(props) {
|
|
10771
9281
|
var _a;
|
|
10772
9282
|
var _b = useDayPicker(), fromDate = _b.fromDate, toDate2 = _b.toDate, styles = _b.styles, locale = _b.locale, formatMonthCaption2 = _b.formatters.formatMonthCaption, classNames = _b.classNames, components = _b.components, labelMonthDropdown2 = _b.labels.labelMonthDropdown;
|
|
10773
9283
|
if (!fromDate)
|
|
10774
|
-
return
|
|
9284
|
+
return jsx15(Fragment10, {});
|
|
10775
9285
|
if (!toDate2)
|
|
10776
|
-
return
|
|
9286
|
+
return jsx15(Fragment10, {});
|
|
10777
9287
|
var dropdownMonths = [];
|
|
10778
9288
|
if (isSameYear(fromDate, toDate2)) {
|
|
10779
9289
|
var date = startOfMonth(fromDate);
|
|
@@ -10792,8 +9302,8 @@ function MonthsDropdown(props) {
|
|
|
10792
9302
|
props.onChange(newMonth);
|
|
10793
9303
|
};
|
|
10794
9304
|
var DropdownComponent = (_a = components === null || components === undefined ? undefined : components.Dropdown) !== null && _a !== undefined ? _a : Dropdown;
|
|
10795
|
-
return
|
|
10796
|
-
return
|
|
9305
|
+
return jsx15(DropdownComponent, { name: "months", "aria-label": labelMonthDropdown2(), className: classNames.dropdown_month, style: styles.dropdown_month, onChange: handleChange, value: props.displayMonth.getMonth(), caption: formatMonthCaption2(props.displayMonth, { locale }), children: dropdownMonths.map(function(m2) {
|
|
9306
|
+
return jsx15("option", { value: m2.getMonth(), children: formatMonthCaption2(m2, { locale }) }, m2.getMonth());
|
|
10797
9307
|
}) });
|
|
10798
9308
|
}
|
|
10799
9309
|
function YearsDropdown(props) {
|
|
@@ -10802,9 +9312,9 @@ function YearsDropdown(props) {
|
|
|
10802
9312
|
var _b = useDayPicker(), fromDate = _b.fromDate, toDate2 = _b.toDate, locale = _b.locale, styles = _b.styles, classNames = _b.classNames, components = _b.components, formatYearCaption2 = _b.formatters.formatYearCaption, labelYearDropdown2 = _b.labels.labelYearDropdown;
|
|
10803
9313
|
var years = [];
|
|
10804
9314
|
if (!fromDate)
|
|
10805
|
-
return
|
|
9315
|
+
return jsx15(Fragment10, {});
|
|
10806
9316
|
if (!toDate2)
|
|
10807
|
-
return
|
|
9317
|
+
return jsx15(Fragment10, {});
|
|
10808
9318
|
var fromYear = fromDate.getFullYear();
|
|
10809
9319
|
var toYear = toDate2.getFullYear();
|
|
10810
9320
|
for (var year = fromYear;year <= toYear; year++) {
|
|
@@ -10815,12 +9325,12 @@ function YearsDropdown(props) {
|
|
|
10815
9325
|
props.onChange(newMonth);
|
|
10816
9326
|
};
|
|
10817
9327
|
var DropdownComponent = (_a = components === null || components === undefined ? undefined : components.Dropdown) !== null && _a !== undefined ? _a : Dropdown;
|
|
10818
|
-
return
|
|
10819
|
-
return
|
|
9328
|
+
return jsx15(DropdownComponent, { name: "years", "aria-label": labelYearDropdown2(), className: classNames.dropdown_year, style: styles.dropdown_year, onChange: handleChange, value: displayMonth.getFullYear(), caption: formatYearCaption2(displayMonth, { locale }), children: years.map(function(year2) {
|
|
9329
|
+
return jsx15("option", { value: year2.getFullYear(), children: formatYearCaption2(year2, { locale }) }, year2.getFullYear());
|
|
10820
9330
|
}) });
|
|
10821
9331
|
}
|
|
10822
9332
|
function useControlledValue(defaultValue, controlledValue) {
|
|
10823
|
-
var _a =
|
|
9333
|
+
var _a = useState16(defaultValue), uncontrolledValue = _a[0], setValue = _a[1];
|
|
10824
9334
|
var value = controlledValue === undefined ? uncontrolledValue : controlledValue;
|
|
10825
9335
|
return [value, setValue];
|
|
10826
9336
|
}
|
|
@@ -10897,7 +9407,7 @@ function getPreviousMonth(startingMonth, options2) {
|
|
|
10897
9407
|
}
|
|
10898
9408
|
return addMonths(month, -offset4);
|
|
10899
9409
|
}
|
|
10900
|
-
var NavigationContext =
|
|
9410
|
+
var NavigationContext = createContext6(undefined);
|
|
10901
9411
|
function NavigationProvider(props) {
|
|
10902
9412
|
var dayPicker = useDayPicker();
|
|
10903
9413
|
var _a = useNavigationState(), currentMonth = _a[0], goToMonth = _a[1];
|
|
@@ -10928,10 +9438,10 @@ function NavigationProvider(props) {
|
|
|
10928
9438
|
nextMonth,
|
|
10929
9439
|
isDateDisplayed
|
|
10930
9440
|
};
|
|
10931
|
-
return
|
|
9441
|
+
return jsx15(NavigationContext.Provider, { value, children: props.children });
|
|
10932
9442
|
}
|
|
10933
9443
|
function useNavigation() {
|
|
10934
|
-
var context =
|
|
9444
|
+
var context = useContext4(NavigationContext);
|
|
10935
9445
|
if (!context) {
|
|
10936
9446
|
throw new Error("useNavigation must be used within a NavigationProvider");
|
|
10937
9447
|
}
|
|
@@ -10945,16 +9455,16 @@ function CaptionDropdowns(props) {
|
|
|
10945
9455
|
goToMonth(addMonths(newMonth, props.displayIndex ? -props.displayIndex : 0));
|
|
10946
9456
|
};
|
|
10947
9457
|
var CaptionLabelComponent = (_a = components === null || components === undefined ? undefined : components.CaptionLabel) !== null && _a !== undefined ? _a : CaptionLabel;
|
|
10948
|
-
var captionLabel =
|
|
10949
|
-
return
|
|
9458
|
+
var captionLabel = jsx15(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth });
|
|
9459
|
+
return jsxs2("div", { className: classNames.caption_dropdowns, style: styles.caption_dropdowns, children: [jsx15("div", { className: classNames.vhidden, children: captionLabel }), jsx15(MonthsDropdown, { onChange: handleMonthChange, displayMonth: props.displayMonth }), jsx15(YearsDropdown, { onChange: handleMonthChange, displayMonth: props.displayMonth })] });
|
|
10950
9460
|
}
|
|
10951
9461
|
function IconLeft(props) {
|
|
10952
|
-
return
|
|
9462
|
+
return jsx15("svg", __assign2({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props, { children: jsx15("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
10953
9463
|
}
|
|
10954
9464
|
function IconRight(props) {
|
|
10955
|
-
return
|
|
9465
|
+
return jsx15("svg", __assign2({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props, { children: jsx15("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
|
|
10956
9466
|
}
|
|
10957
|
-
var Button =
|
|
9467
|
+
var Button = forwardRef21(function(props, ref) {
|
|
10958
9468
|
var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;
|
|
10959
9469
|
var classNamesArr = [classNames.button_reset, classNames.button];
|
|
10960
9470
|
if (props.className) {
|
|
@@ -10965,13 +9475,13 @@ var Button = import_react5.forwardRef(function(props, ref) {
|
|
|
10965
9475
|
if (props.style) {
|
|
10966
9476
|
Object.assign(style, props.style);
|
|
10967
9477
|
}
|
|
10968
|
-
return
|
|
9478
|
+
return jsx15("button", __assign2({}, props, { ref, type: "button", className, style }));
|
|
10969
9479
|
});
|
|
10970
9480
|
function Navigation(props) {
|
|
10971
9481
|
var _a, _b;
|
|
10972
9482
|
var _c = useDayPicker(), dir = _c.dir, locale = _c.locale, classNames = _c.classNames, styles = _c.styles, _d = _c.labels, labelPrevious2 = _d.labelPrevious, labelNext2 = _d.labelNext, components = _c.components;
|
|
10973
9483
|
if (!props.nextMonth && !props.previousMonth) {
|
|
10974
|
-
return
|
|
9484
|
+
return jsx15(Fragment10, {});
|
|
10975
9485
|
}
|
|
10976
9486
|
var previousLabel = labelPrevious2(props.previousMonth, { locale });
|
|
10977
9487
|
var previousClassName = [
|
|
@@ -10985,7 +9495,7 @@ function Navigation(props) {
|
|
|
10985
9495
|
].join(" ");
|
|
10986
9496
|
var IconRightComponent = (_a = components === null || components === undefined ? undefined : components.IconRight) !== null && _a !== undefined ? _a : IconRight;
|
|
10987
9497
|
var IconLeftComponent = (_b = components === null || components === undefined ? undefined : components.IconLeft) !== null && _b !== undefined ? _b : IconLeft;
|
|
10988
|
-
return
|
|
9498
|
+
return jsxs2("div", { className: classNames.nav, style: styles.nav, children: [!props.hidePrevious && jsx15(Button, { name: "previous-month", "aria-label": previousLabel, className: previousClassName, style: styles.nav_button_previous, disabled: !props.previousMonth, onClick: props.onPreviousClick, children: dir === "rtl" ? jsx15(IconRightComponent, { className: classNames.nav_icon, style: styles.nav_icon }) : jsx15(IconLeftComponent, { className: classNames.nav_icon, style: styles.nav_icon }) }), !props.hideNext && jsx15(Button, { name: "next-month", "aria-label": nextLabel, className: nextClassName, style: styles.nav_button_next, disabled: !props.nextMonth, onClick: props.onNextClick, children: dir === "rtl" ? jsx15(IconLeftComponent, { className: classNames.nav_icon, style: styles.nav_icon }) : jsx15(IconRightComponent, { className: classNames.nav_icon, style: styles.nav_icon }) })] });
|
|
10989
9499
|
}
|
|
10990
9500
|
function CaptionNavigation(props) {
|
|
10991
9501
|
var numberOfMonths = useDayPicker().numberOfMonths;
|
|
@@ -11007,7 +9517,7 @@ function CaptionNavigation(props) {
|
|
|
11007
9517
|
return;
|
|
11008
9518
|
goToMonth(nextMonth);
|
|
11009
9519
|
};
|
|
11010
|
-
return
|
|
9520
|
+
return jsx15(Navigation, { displayMonth: props.displayMonth, hideNext, hidePrevious, nextMonth, previousMonth, onPreviousClick: handlePreviousClick, onNextClick: handleNextClick });
|
|
11011
9521
|
}
|
|
11012
9522
|
function Caption(props) {
|
|
11013
9523
|
var _a;
|
|
@@ -11015,21 +9525,21 @@ function Caption(props) {
|
|
|
11015
9525
|
var CaptionLabelComponent = (_a = components === null || components === undefined ? undefined : components.CaptionLabel) !== null && _a !== undefined ? _a : CaptionLabel;
|
|
11016
9526
|
var caption;
|
|
11017
9527
|
if (disableNavigation) {
|
|
11018
|
-
caption =
|
|
9528
|
+
caption = jsx15(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth });
|
|
11019
9529
|
} else if (captionLayout === "dropdown") {
|
|
11020
|
-
caption =
|
|
9530
|
+
caption = jsx15(CaptionDropdowns, { displayMonth: props.displayMonth, id: props.id });
|
|
11021
9531
|
} else if (captionLayout === "dropdown-buttons") {
|
|
11022
|
-
caption =
|
|
9532
|
+
caption = jsxs2(Fragment10, { children: [jsx15(CaptionDropdowns, { displayMonth: props.displayMonth, displayIndex: props.displayIndex, id: props.id }), jsx15(CaptionNavigation, { displayMonth: props.displayMonth, displayIndex: props.displayIndex, id: props.id })] });
|
|
11023
9533
|
} else {
|
|
11024
|
-
caption =
|
|
9534
|
+
caption = jsxs2(Fragment10, { children: [jsx15(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth, displayIndex: props.displayIndex }), jsx15(CaptionNavigation, { displayMonth: props.displayMonth, id: props.id })] });
|
|
11025
9535
|
}
|
|
11026
|
-
return
|
|
9536
|
+
return jsx15("div", { className: classNames.caption, style: styles.caption, children: caption });
|
|
11027
9537
|
}
|
|
11028
9538
|
function Footer(props) {
|
|
11029
9539
|
var _a = useDayPicker(), footer = _a.footer, styles = _a.styles, tfoot = _a.classNames.tfoot;
|
|
11030
9540
|
if (!footer)
|
|
11031
|
-
return
|
|
11032
|
-
return
|
|
9541
|
+
return jsx15(Fragment10, {});
|
|
9542
|
+
return jsx15("tfoot", { className: tfoot, style: styles.tfoot, children: jsx15("tr", { children: jsx15("td", { colSpan: 8, children: footer }) }) });
|
|
11033
9543
|
}
|
|
11034
9544
|
function getWeekdays(locale, weekStartsOn, ISOWeek) {
|
|
11035
9545
|
var start = ISOWeek ? startOfISOWeek(new Date) : startOfWeek(new Date, { locale, weekStartsOn });
|
|
@@ -11043,21 +9553,21 @@ function getWeekdays(locale, weekStartsOn, ISOWeek) {
|
|
|
11043
9553
|
function HeadRow() {
|
|
11044
9554
|
var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles, showWeekNumber = _a.showWeekNumber, locale = _a.locale, weekStartsOn = _a.weekStartsOn, ISOWeek = _a.ISOWeek, formatWeekdayName2 = _a.formatters.formatWeekdayName, labelWeekday2 = _a.labels.labelWeekday;
|
|
11045
9555
|
var weekdays = getWeekdays(locale, weekStartsOn, ISOWeek);
|
|
11046
|
-
return
|
|
11047
|
-
return
|
|
9556
|
+
return jsxs2("tr", { style: styles.head_row, className: classNames.head_row, children: [showWeekNumber && jsx15("td", { style: styles.head_cell, className: classNames.head_cell }), weekdays.map(function(weekday, i) {
|
|
9557
|
+
return jsx15("th", { scope: "col", className: classNames.head_cell, style: styles.head_cell, "aria-label": labelWeekday2(weekday, { locale }), children: formatWeekdayName2(weekday, { locale }) }, i);
|
|
11048
9558
|
})] });
|
|
11049
9559
|
}
|
|
11050
9560
|
function Head() {
|
|
11051
9561
|
var _a;
|
|
11052
9562
|
var _b = useDayPicker(), classNames = _b.classNames, styles = _b.styles, components = _b.components;
|
|
11053
9563
|
var HeadRowComponent = (_a = components === null || components === undefined ? undefined : components.HeadRow) !== null && _a !== undefined ? _a : HeadRow;
|
|
11054
|
-
return
|
|
9564
|
+
return jsx15("thead", { style: styles.head, className: classNames.head, children: jsx15(HeadRowComponent, {}) });
|
|
11055
9565
|
}
|
|
11056
9566
|
function DayContent(props) {
|
|
11057
9567
|
var _a = useDayPicker(), locale = _a.locale, formatDay2 = _a.formatters.formatDay;
|
|
11058
|
-
return
|
|
9568
|
+
return jsx15(Fragment10, { children: formatDay2(props.date, { locale }) });
|
|
11059
9569
|
}
|
|
11060
|
-
var SelectMultipleContext =
|
|
9570
|
+
var SelectMultipleContext = createContext6(undefined);
|
|
11061
9571
|
function SelectMultipleProvider(props) {
|
|
11062
9572
|
if (!isDayPickerMultiple(props.initialProps)) {
|
|
11063
9573
|
var emptyContextValue = {
|
|
@@ -11066,9 +9576,9 @@ function SelectMultipleProvider(props) {
|
|
|
11066
9576
|
disabled: []
|
|
11067
9577
|
}
|
|
11068
9578
|
};
|
|
11069
|
-
return
|
|
9579
|
+
return jsx15(SelectMultipleContext.Provider, { value: emptyContextValue, children: props.children });
|
|
11070
9580
|
}
|
|
11071
|
-
return
|
|
9581
|
+
return jsx15(SelectMultipleProviderInternal, { initialProps: props.initialProps, children: props.children });
|
|
11072
9582
|
}
|
|
11073
9583
|
function SelectMultipleProviderInternal(_a) {
|
|
11074
9584
|
var { initialProps, children } = _a;
|
|
@@ -11112,10 +9622,10 @@ function SelectMultipleProviderInternal(_a) {
|
|
|
11112
9622
|
onDayClick,
|
|
11113
9623
|
modifiers
|
|
11114
9624
|
};
|
|
11115
|
-
return
|
|
9625
|
+
return jsx15(SelectMultipleContext.Provider, { value: contextValue, children });
|
|
11116
9626
|
}
|
|
11117
9627
|
function useSelectMultiple() {
|
|
11118
|
-
var context =
|
|
9628
|
+
var context = useContext4(SelectMultipleContext);
|
|
11119
9629
|
if (!context) {
|
|
11120
9630
|
throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
|
|
11121
9631
|
}
|
|
@@ -11152,7 +9662,7 @@ function addToRange(day, range) {
|
|
|
11152
9662
|
}
|
|
11153
9663
|
return { from: day, to: undefined };
|
|
11154
9664
|
}
|
|
11155
|
-
var SelectRangeContext =
|
|
9665
|
+
var SelectRangeContext = createContext6(undefined);
|
|
11156
9666
|
function SelectRangeProvider(props) {
|
|
11157
9667
|
if (!isDayPickerRange(props.initialProps)) {
|
|
11158
9668
|
var emptyContextValue = {
|
|
@@ -11164,9 +9674,9 @@ function SelectRangeProvider(props) {
|
|
|
11164
9674
|
disabled: []
|
|
11165
9675
|
}
|
|
11166
9676
|
};
|
|
11167
|
-
return
|
|
9677
|
+
return jsx15(SelectRangeContext.Provider, { value: emptyContextValue, children: props.children });
|
|
11168
9678
|
}
|
|
11169
|
-
return
|
|
9679
|
+
return jsx15(SelectRangeProviderInternal, { initialProps: props.initialProps, children: props.children });
|
|
11170
9680
|
}
|
|
11171
9681
|
function SelectRangeProviderInternal(_a) {
|
|
11172
9682
|
var { initialProps, children } = _a;
|
|
@@ -11253,10 +9763,10 @@ function SelectRangeProviderInternal(_a) {
|
|
|
11253
9763
|
});
|
|
11254
9764
|
}
|
|
11255
9765
|
}
|
|
11256
|
-
return
|
|
9766
|
+
return jsx15(SelectRangeContext.Provider, { value: { selected, onDayClick, modifiers }, children });
|
|
11257
9767
|
}
|
|
11258
9768
|
function useSelectRange() {
|
|
11259
|
-
var context =
|
|
9769
|
+
var context = useContext4(SelectRangeContext);
|
|
11260
9770
|
if (!context) {
|
|
11261
9771
|
throw new Error("useSelectRange must be used within a SelectRangeProvider");
|
|
11262
9772
|
}
|
|
@@ -11317,7 +9827,7 @@ function getInternalModifiers(dayPicker, selectMultiple, selectRange) {
|
|
|
11317
9827
|
}
|
|
11318
9828
|
return internalModifiers;
|
|
11319
9829
|
}
|
|
11320
|
-
var ModifiersContext =
|
|
9830
|
+
var ModifiersContext = createContext6(undefined);
|
|
11321
9831
|
function ModifiersProvider(props) {
|
|
11322
9832
|
var dayPicker = useDayPicker();
|
|
11323
9833
|
var selectMultiple = useSelectMultiple();
|
|
@@ -11325,10 +9835,10 @@ function ModifiersProvider(props) {
|
|
|
11325
9835
|
var internalModifiers = getInternalModifiers(dayPicker, selectMultiple, selectRange);
|
|
11326
9836
|
var customModifiers = getCustomModifiers(dayPicker.modifiers);
|
|
11327
9837
|
var modifiers = __assign2(__assign2({}, internalModifiers), customModifiers);
|
|
11328
|
-
return
|
|
9838
|
+
return jsx15(ModifiersContext.Provider, { value: modifiers, children: props.children });
|
|
11329
9839
|
}
|
|
11330
9840
|
function useModifiers() {
|
|
11331
|
-
var context =
|
|
9841
|
+
var context = useContext4(ModifiersContext);
|
|
11332
9842
|
if (!context) {
|
|
11333
9843
|
throw new Error("useModifiers must be used within a ModifiersProvider");
|
|
11334
9844
|
}
|
|
@@ -11504,12 +10014,12 @@ function getNextFocus(focusedDay, options2) {
|
|
|
11504
10014
|
});
|
|
11505
10015
|
}
|
|
11506
10016
|
}
|
|
11507
|
-
var FocusContext =
|
|
10017
|
+
var FocusContext = createContext6(undefined);
|
|
11508
10018
|
function FocusProvider(props) {
|
|
11509
10019
|
var navigation = useNavigation();
|
|
11510
10020
|
var modifiers = useModifiers();
|
|
11511
|
-
var _a =
|
|
11512
|
-
var _b =
|
|
10021
|
+
var _a = useState16(), focusedDay = _a[0], setFocusedDay = _a[1];
|
|
10022
|
+
var _b = useState16(), lastFocused = _b[0], setLastFocused = _b[1];
|
|
11513
10023
|
var initialFocusTarget = getInitialFocusTarget(navigation.displayMonths, modifiers);
|
|
11514
10024
|
var focusTarget = (focusedDay !== null && focusedDay !== undefined ? focusedDay : lastFocused && navigation.isDateDisplayed(lastFocused)) ? lastFocused : initialFocusTarget;
|
|
11515
10025
|
var blur = function() {
|
|
@@ -11570,10 +10080,10 @@ function FocusProvider(props) {
|
|
|
11570
10080
|
return moveFocus("endOfWeek", "after");
|
|
11571
10081
|
}
|
|
11572
10082
|
};
|
|
11573
|
-
return
|
|
10083
|
+
return jsx15(FocusContext.Provider, { value, children: props.children });
|
|
11574
10084
|
}
|
|
11575
10085
|
function useFocusContext() {
|
|
11576
|
-
var context =
|
|
10086
|
+
var context = useContext4(FocusContext);
|
|
11577
10087
|
if (!context) {
|
|
11578
10088
|
throw new Error("useFocusContext must be used within a FocusProvider");
|
|
11579
10089
|
}
|
|
@@ -11584,15 +10094,15 @@ function useActiveModifiers(day, displayMonth) {
|
|
|
11584
10094
|
var activeModifiers = getActiveModifiers(day, modifiers, displayMonth);
|
|
11585
10095
|
return activeModifiers;
|
|
11586
10096
|
}
|
|
11587
|
-
var SelectSingleContext =
|
|
10097
|
+
var SelectSingleContext = createContext6(undefined);
|
|
11588
10098
|
function SelectSingleProvider(props) {
|
|
11589
10099
|
if (!isDayPickerSingle(props.initialProps)) {
|
|
11590
10100
|
var emptyContextValue = {
|
|
11591
10101
|
selected: undefined
|
|
11592
10102
|
};
|
|
11593
|
-
return
|
|
10103
|
+
return jsx15(SelectSingleContext.Provider, { value: emptyContextValue, children: props.children });
|
|
11594
10104
|
}
|
|
11595
|
-
return
|
|
10105
|
+
return jsx15(SelectSingleProviderInternal, { initialProps: props.initialProps, children: props.children });
|
|
11596
10106
|
}
|
|
11597
10107
|
function SelectSingleProviderInternal(_a) {
|
|
11598
10108
|
var { initialProps, children } = _a;
|
|
@@ -11609,10 +10119,10 @@ function SelectSingleProviderInternal(_a) {
|
|
|
11609
10119
|
selected: initialProps.selected,
|
|
11610
10120
|
onDayClick
|
|
11611
10121
|
};
|
|
11612
|
-
return
|
|
10122
|
+
return jsx15(SelectSingleContext.Provider, { value: contextValue, children });
|
|
11613
10123
|
}
|
|
11614
10124
|
function useSelectSingle() {
|
|
11615
|
-
var context =
|
|
10125
|
+
var context = useContext4(SelectSingleContext);
|
|
11616
10126
|
if (!context) {
|
|
11617
10127
|
throw new Error("useSelectSingle must be used within a SelectSingleProvider");
|
|
11618
10128
|
}
|
|
@@ -11788,7 +10298,7 @@ function useDayRender(day, displayMonth, buttonRef) {
|
|
|
11788
10298
|
var eventHandlers = useDayEventHandlers(day, activeModifiers);
|
|
11789
10299
|
var selectedDays = useSelectedDays();
|
|
11790
10300
|
var isButton = Boolean(dayPicker.onDayClick || dayPicker.mode !== "default");
|
|
11791
|
-
|
|
10301
|
+
useEffect17(function() {
|
|
11792
10302
|
var _a2;
|
|
11793
10303
|
if (activeModifiers.outside)
|
|
11794
10304
|
return;
|
|
@@ -11810,7 +10320,7 @@ function useDayRender(day, displayMonth, buttonRef) {
|
|
|
11810
10320
|
var style = getDayStyle(dayPicker, activeModifiers);
|
|
11811
10321
|
var isHidden2 = Boolean(activeModifiers.outside && !dayPicker.showOutsideDays || activeModifiers.hidden);
|
|
11812
10322
|
var DayContentComponent = (_c = (_b = dayPicker.components) === null || _b === undefined ? undefined : _b.DayContent) !== null && _c !== undefined ? _c : DayContent;
|
|
11813
|
-
var children =
|
|
10323
|
+
var children = jsx15(DayContentComponent, { date: day, displayMonth, activeModifiers });
|
|
11814
10324
|
var divProps = {
|
|
11815
10325
|
style,
|
|
11816
10326
|
className,
|
|
@@ -11831,28 +10341,28 @@ function useDayRender(day, displayMonth, buttonRef) {
|
|
|
11831
10341
|
return dayRender;
|
|
11832
10342
|
}
|
|
11833
10343
|
function Day(props) {
|
|
11834
|
-
var buttonRef =
|
|
10344
|
+
var buttonRef = useRef14(null);
|
|
11835
10345
|
var dayRender = useDayRender(props.date, props.displayMonth, buttonRef);
|
|
11836
10346
|
if (dayRender.isHidden) {
|
|
11837
|
-
return
|
|
10347
|
+
return jsx15("div", { role: "gridcell" });
|
|
11838
10348
|
}
|
|
11839
10349
|
if (!dayRender.isButton) {
|
|
11840
|
-
return
|
|
10350
|
+
return jsx15("div", __assign2({}, dayRender.divProps));
|
|
11841
10351
|
}
|
|
11842
|
-
return
|
|
10352
|
+
return jsx15(Button, __assign2({ name: "day", ref: buttonRef }, dayRender.buttonProps));
|
|
11843
10353
|
}
|
|
11844
10354
|
function WeekNumber(props) {
|
|
11845
10355
|
var { number: weekNumber, dates } = props;
|
|
11846
10356
|
var _a = useDayPicker(), onWeekNumberClick = _a.onWeekNumberClick, styles = _a.styles, classNames = _a.classNames, locale = _a.locale, labelWeekNumber2 = _a.labels.labelWeekNumber, formatWeekNumber2 = _a.formatters.formatWeekNumber;
|
|
11847
10357
|
var content = formatWeekNumber2(Number(weekNumber), { locale });
|
|
11848
10358
|
if (!onWeekNumberClick) {
|
|
11849
|
-
return
|
|
10359
|
+
return jsx15("span", { className: classNames.weeknumber, style: styles.weeknumber, children: content });
|
|
11850
10360
|
}
|
|
11851
10361
|
var label = labelWeekNumber2(Number(weekNumber), { locale });
|
|
11852
10362
|
var handleClick = function(e) {
|
|
11853
10363
|
onWeekNumberClick(weekNumber, dates, e);
|
|
11854
10364
|
};
|
|
11855
|
-
return
|
|
10365
|
+
return jsx15(Button, { name: "week-number", "aria-label": label, className: classNames.weeknumber, style: styles.weeknumber, onClick: handleClick, children: content });
|
|
11856
10366
|
}
|
|
11857
10367
|
function Row(props) {
|
|
11858
10368
|
var _a, _b;
|
|
@@ -11861,10 +10371,10 @@ function Row(props) {
|
|
|
11861
10371
|
var WeeknumberComponent = (_b = components === null || components === undefined ? undefined : components.WeekNumber) !== null && _b !== undefined ? _b : WeekNumber;
|
|
11862
10372
|
var weekNumberCell;
|
|
11863
10373
|
if (showWeekNumber) {
|
|
11864
|
-
weekNumberCell =
|
|
10374
|
+
weekNumberCell = jsx15("td", { className: classNames.cell, style: styles.cell, children: jsx15(WeeknumberComponent, { number: props.weekNumber, dates: props.dates }) });
|
|
11865
10375
|
}
|
|
11866
|
-
return
|
|
11867
|
-
return
|
|
10376
|
+
return jsxs2("tr", { className: classNames.row, style: styles.row, children: [weekNumberCell, props.dates.map(function(date) {
|
|
10377
|
+
return jsx15("td", { className: classNames.cell, style: styles.cell, role: "presentation", children: jsx15(DayComponent, { displayMonth: props.displayMonth, date }) }, getUnixTime(date));
|
|
11868
10378
|
})] });
|
|
11869
10379
|
}
|
|
11870
10380
|
function daysToMonthWeeks(fromDate, toDate2, options2) {
|
|
@@ -11919,14 +10429,14 @@ function Table(props) {
|
|
|
11919
10429
|
var HeadComponent = (_a = components === null || components === undefined ? undefined : components.Head) !== null && _a !== undefined ? _a : Head;
|
|
11920
10430
|
var RowComponent = (_b = components === null || components === undefined ? undefined : components.Row) !== null && _b !== undefined ? _b : Row;
|
|
11921
10431
|
var FooterComponent = (_c = components === null || components === undefined ? undefined : components.Footer) !== null && _c !== undefined ? _c : Footer;
|
|
11922
|
-
return
|
|
11923
|
-
return
|
|
11924
|
-
}) }),
|
|
10432
|
+
return jsxs2("table", { id: props.id, className: classNames.table, style: styles.table, role: "grid", "aria-labelledby": props["aria-labelledby"], children: [!hideHead && jsx15(HeadComponent, {}), jsx15("tbody", { className: classNames.tbody, style: styles.tbody, children: weeks.map(function(week) {
|
|
10433
|
+
return jsx15(RowComponent, { displayMonth: props.displayMonth, dates: week.dates, weekNumber: week.weekNumber }, week.weekNumber);
|
|
10434
|
+
}) }), jsx15(FooterComponent, { displayMonth: props.displayMonth })] });
|
|
11925
10435
|
}
|
|
11926
10436
|
function canUseDOM2() {
|
|
11927
10437
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
11928
10438
|
}
|
|
11929
|
-
var useIsomorphicLayoutEffect2 = canUseDOM2() ?
|
|
10439
|
+
var useIsomorphicLayoutEffect2 = canUseDOM2() ? useLayoutEffect7 : useEffect17;
|
|
11930
10440
|
var serverHandoffComplete = false;
|
|
11931
10441
|
var id = 0;
|
|
11932
10442
|
function genId() {
|
|
@@ -11935,13 +10445,13 @@ function genId() {
|
|
|
11935
10445
|
function useId2(providedId) {
|
|
11936
10446
|
var _a;
|
|
11937
10447
|
var initialId = providedId !== null && providedId !== undefined ? providedId : serverHandoffComplete ? genId() : null;
|
|
11938
|
-
var _b =
|
|
10448
|
+
var _b = useState16(initialId), id2 = _b[0], setId = _b[1];
|
|
11939
10449
|
useIsomorphicLayoutEffect2(function() {
|
|
11940
10450
|
if (id2 === null) {
|
|
11941
10451
|
setId(genId());
|
|
11942
10452
|
}
|
|
11943
10453
|
}, []);
|
|
11944
|
-
|
|
10454
|
+
useEffect17(function() {
|
|
11945
10455
|
if (serverHandoffComplete === false) {
|
|
11946
10456
|
serverHandoffComplete = true;
|
|
11947
10457
|
}
|
|
@@ -11977,11 +10487,11 @@ function Month(props) {
|
|
|
11977
10487
|
style = __assign2(__assign2({}, style), styles.caption_between);
|
|
11978
10488
|
}
|
|
11979
10489
|
var CaptionComponent = (_b = components === null || components === undefined ? undefined : components.Caption) !== null && _b !== undefined ? _b : Caption;
|
|
11980
|
-
return
|
|
10490
|
+
return jsxs2("div", { className: className.join(" "), style, children: [jsx15(CaptionComponent, { id: captionId, displayMonth: props.displayMonth, displayIndex: props.displayIndex }), jsx15(Table, { id: tableId, "aria-labelledby": captionId, displayMonth: props.displayMonth })] }, props.displayIndex);
|
|
11981
10491
|
}
|
|
11982
10492
|
function Months(props) {
|
|
11983
10493
|
var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;
|
|
11984
|
-
return
|
|
10494
|
+
return jsx15("div", { className: classNames.months, style: styles.months, children: props.children });
|
|
11985
10495
|
}
|
|
11986
10496
|
function Root3(_a) {
|
|
11987
10497
|
var _b, _c;
|
|
@@ -11989,8 +10499,8 @@ function Root3(_a) {
|
|
|
11989
10499
|
var dayPicker = useDayPicker();
|
|
11990
10500
|
var focusContext = useFocusContext();
|
|
11991
10501
|
var navigation = useNavigation();
|
|
11992
|
-
var _d =
|
|
11993
|
-
|
|
10502
|
+
var _d = useState16(false), hasInitialFocus = _d[0], setHasInitialFocus = _d[1];
|
|
10503
|
+
useEffect17(function() {
|
|
11994
10504
|
if (!dayPicker.initialFocus)
|
|
11995
10505
|
return;
|
|
11996
10506
|
if (!focusContext.focusTarget)
|
|
@@ -12021,20 +10531,20 @@ function Root3(_a) {
|
|
|
12021
10531
|
return __assign2(__assign2({}, attrs), (_a2 = {}, _a2[key] = initialProps[key], _a2));
|
|
12022
10532
|
}, {});
|
|
12023
10533
|
var MonthsComponent = (_c = (_b = initialProps.components) === null || _b === undefined ? undefined : _b.Months) !== null && _c !== undefined ? _c : Months;
|
|
12024
|
-
return
|
|
12025
|
-
return
|
|
10534
|
+
return jsx15("div", __assign2({ className: classNames.join(" "), style, dir: dayPicker.dir, id: dayPicker.id, nonce: initialProps.nonce, title: initialProps.title, lang: initialProps.lang }, dataAttributes, { children: jsx15(MonthsComponent, { children: navigation.displayMonths.map(function(month, i) {
|
|
10535
|
+
return jsx15(Month, { displayIndex: i, displayMonth: month }, i);
|
|
12026
10536
|
}) }) }));
|
|
12027
10537
|
}
|
|
12028
10538
|
function RootProvider(props) {
|
|
12029
10539
|
var children = props.children, initialProps = __rest2(props, ["children"]);
|
|
12030
|
-
return
|
|
10540
|
+
return jsx15(DayPickerProvider, { initialProps, children: jsx15(NavigationProvider, { children: jsx15(SelectSingleProvider, { initialProps, children: jsx15(SelectMultipleProvider, { initialProps, children: jsx15(SelectRangeProvider, { initialProps, children: jsx15(ModifiersProvider, { children: jsx15(FocusProvider, { children }) }) }) }) }) }) });
|
|
12031
10541
|
}
|
|
12032
10542
|
function DayPicker(props) {
|
|
12033
|
-
return
|
|
10543
|
+
return jsx15(RootProvider, __assign2({}, props, { children: jsx15(Root3, { initialProps: props }) }));
|
|
12034
10544
|
}
|
|
12035
10545
|
|
|
12036
10546
|
// src/components/booking-search/date-range-picker.tsx
|
|
12037
|
-
|
|
10547
|
+
import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
|
|
12038
10548
|
function DateRangePicker({
|
|
12039
10549
|
availability,
|
|
12040
10550
|
value,
|
|
@@ -12105,13 +10615,13 @@ function DateRangePicker({
|
|
|
12105
10615
|
const renderDay = (day) => {
|
|
12106
10616
|
const dateStr = format(day, "yyyy-MM-dd");
|
|
12107
10617
|
const dayData = availabilityMap.get(dateStr);
|
|
12108
|
-
return /* @__PURE__ */
|
|
10618
|
+
return /* @__PURE__ */ jsxDEV4("div", {
|
|
12109
10619
|
className: "flex flex-col items-center justify-center",
|
|
12110
10620
|
children: [
|
|
12111
|
-
/* @__PURE__ */
|
|
10621
|
+
/* @__PURE__ */ jsxDEV4("span", {
|
|
12112
10622
|
children: format(day, "d")
|
|
12113
10623
|
}, undefined, false, undefined, this),
|
|
12114
|
-
dayData && dayData.isAvailable && /* @__PURE__ */
|
|
10624
|
+
dayData && dayData.isAvailable && /* @__PURE__ */ jsxDEV4("span", {
|
|
12115
10625
|
className: "text-[10px] font-semibold text-slate-600 leading-none mt-0.5",
|
|
12116
10626
|
children: [
|
|
12117
10627
|
"€",
|
|
@@ -12157,31 +10667,31 @@ function DateRangePicker({
|
|
|
12157
10667
|
end: "rdp-day_range_end",
|
|
12158
10668
|
disabled: "rdp-day_disabled"
|
|
12159
10669
|
};
|
|
12160
|
-
return /* @__PURE__ */
|
|
10670
|
+
return /* @__PURE__ */ jsxDEV4(Popover2, {
|
|
12161
10671
|
open,
|
|
12162
10672
|
onOpenChange: setOpen,
|
|
12163
10673
|
children: [
|
|
12164
|
-
/* @__PURE__ */
|
|
10674
|
+
/* @__PURE__ */ jsxDEV4(PopoverTrigger2, {
|
|
12165
10675
|
asChild: true,
|
|
12166
|
-
children: /* @__PURE__ */
|
|
10676
|
+
children: /* @__PURE__ */ jsxDEV4("button", {
|
|
12167
10677
|
type: "button",
|
|
12168
10678
|
"aria-label": "Select Date Range",
|
|
12169
10679
|
disabled,
|
|
12170
10680
|
tabIndex,
|
|
12171
10681
|
className: cn("flex h-14 w-full items-center gap-3 rounded-lg border bg-white px-4 py-3 text-left text-sm transition-all hover:bg-slate-50 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 relative", open ? "border-blue-500 ring-2 ring-blue-500 shadow-lg z-10" : "border-slate-300", className),
|
|
12172
10682
|
children: [
|
|
12173
|
-
/* @__PURE__ */
|
|
10683
|
+
/* @__PURE__ */ jsxDEV4(Calendar, {
|
|
12174
10684
|
className: "h-5 w-5 text-slate-500 flex-shrink-0",
|
|
12175
10685
|
"aria-hidden": "true"
|
|
12176
10686
|
}, undefined, false, undefined, this),
|
|
12177
|
-
/* @__PURE__ */
|
|
10687
|
+
/* @__PURE__ */ jsxDEV4("div", {
|
|
12178
10688
|
className: "flex flex-col min-w-0 flex-1",
|
|
12179
10689
|
children: [
|
|
12180
|
-
/* @__PURE__ */
|
|
10690
|
+
/* @__PURE__ */ jsxDEV4("span", {
|
|
12181
10691
|
className: "text-xs font-medium text-slate-500",
|
|
12182
10692
|
children: "Check-in - Check-out"
|
|
12183
10693
|
}, undefined, false, undefined, this),
|
|
12184
|
-
/* @__PURE__ */
|
|
10694
|
+
/* @__PURE__ */ jsxDEV4("span", {
|
|
12185
10695
|
className: cn("font-medium truncate", value.from ? "text-slate-900" : "text-slate-400"),
|
|
12186
10696
|
children: formatDateRange()
|
|
12187
10697
|
}, undefined, false, undefined, this)
|
|
@@ -12190,17 +10700,17 @@ function DateRangePicker({
|
|
|
12190
10700
|
]
|
|
12191
10701
|
}, undefined, true, undefined, this)
|
|
12192
10702
|
}, undefined, false, undefined, this),
|
|
12193
|
-
/* @__PURE__ */
|
|
10703
|
+
/* @__PURE__ */ jsxDEV4(PopoverContent2, {
|
|
12194
10704
|
className: "w-auto p-0 shadow-2xl",
|
|
12195
10705
|
align: "start",
|
|
12196
10706
|
sideOffset: 8,
|
|
12197
10707
|
onInteractOutside: (e) => {
|
|
12198
10708
|
e.preventDefault();
|
|
12199
10709
|
},
|
|
12200
|
-
children: /* @__PURE__ */
|
|
10710
|
+
children: /* @__PURE__ */ jsxDEV4("div", {
|
|
12201
10711
|
className: "p-4",
|
|
12202
10712
|
children: [
|
|
12203
|
-
/* @__PURE__ */
|
|
10713
|
+
/* @__PURE__ */ jsxDEV4(DayPicker, {
|
|
12204
10714
|
mode: "range",
|
|
12205
10715
|
defaultMonth: localValue.from || new Date,
|
|
12206
10716
|
selected: {
|
|
@@ -12218,26 +10728,26 @@ function DateRangePicker({
|
|
|
12218
10728
|
formatDay: renderDay
|
|
12219
10729
|
}
|
|
12220
10730
|
}, undefined, false, undefined, this),
|
|
12221
|
-
/* @__PURE__ */
|
|
10731
|
+
/* @__PURE__ */ jsxDEV4("div", {
|
|
12222
10732
|
className: "border-t border-slate-200 p-4 space-y-3",
|
|
12223
10733
|
children: [
|
|
12224
|
-
/* @__PURE__ */
|
|
10734
|
+
/* @__PURE__ */ jsxDEV4("div", {
|
|
12225
10735
|
className: "text-center",
|
|
12226
|
-
children: /* @__PURE__ */
|
|
10736
|
+
children: /* @__PURE__ */ jsxDEV4("p", {
|
|
12227
10737
|
className: "text-sm font-medium text-slate-700",
|
|
12228
10738
|
children: formatLocalDateRange()
|
|
12229
10739
|
}, undefined, false, undefined, this)
|
|
12230
10740
|
}, undefined, false, undefined, this),
|
|
12231
|
-
/* @__PURE__ */
|
|
10741
|
+
/* @__PURE__ */ jsxDEV4("div", {
|
|
12232
10742
|
className: "flex gap-2",
|
|
12233
10743
|
children: [
|
|
12234
|
-
/* @__PURE__ */
|
|
10744
|
+
/* @__PURE__ */ jsxDEV4("button", {
|
|
12235
10745
|
type: "button",
|
|
12236
10746
|
onClick: handleCancel,
|
|
12237
10747
|
className: "flex-1 rounded-lg border-2 border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-700 transition-colors hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-500 focus:ring-offset-2",
|
|
12238
10748
|
children: "Cancel"
|
|
12239
10749
|
}, undefined, false, undefined, this),
|
|
12240
|
-
/* @__PURE__ */
|
|
10750
|
+
/* @__PURE__ */ jsxDEV4("button", {
|
|
12241
10751
|
type: "button",
|
|
12242
10752
|
onClick: handleConfirm,
|
|
12243
10753
|
disabled: !localValue.from || !localValue.to || (minNights && localValue.from && localValue.to ? differenceInDays(localValue.to, localValue.from) < minNights : false),
|
|
@@ -12256,8 +10766,8 @@ function DateRangePicker({
|
|
|
12256
10766
|
}
|
|
12257
10767
|
|
|
12258
10768
|
// src/components/booking-search/guest-selector.tsx
|
|
12259
|
-
|
|
12260
|
-
|
|
10769
|
+
import * as React39 from "react";
|
|
10770
|
+
import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
|
|
12261
10771
|
function GuestStepper({
|
|
12262
10772
|
label,
|
|
12263
10773
|
description,
|
|
@@ -12269,49 +10779,49 @@ function GuestStepper({
|
|
|
12269
10779
|
}) {
|
|
12270
10780
|
const canDecrement = value > min3;
|
|
12271
10781
|
const canIncrement = value < max3;
|
|
12272
|
-
return /* @__PURE__ */
|
|
10782
|
+
return /* @__PURE__ */ jsxDEV5("div", {
|
|
12273
10783
|
className: "flex items-center justify-between py-3",
|
|
12274
10784
|
children: [
|
|
12275
|
-
/* @__PURE__ */
|
|
10785
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12276
10786
|
className: "flex flex-col",
|
|
12277
10787
|
children: [
|
|
12278
|
-
/* @__PURE__ */
|
|
10788
|
+
/* @__PURE__ */ jsxDEV5("span", {
|
|
12279
10789
|
className: "text-sm font-medium text-slate-900",
|
|
12280
10790
|
children: label
|
|
12281
10791
|
}, undefined, false, undefined, this),
|
|
12282
|
-
description && /* @__PURE__ */
|
|
10792
|
+
description && /* @__PURE__ */ jsxDEV5("span", {
|
|
12283
10793
|
className: "text-xs text-slate-500",
|
|
12284
10794
|
children: description
|
|
12285
10795
|
}, undefined, false, undefined, this)
|
|
12286
10796
|
]
|
|
12287
10797
|
}, undefined, true, undefined, this),
|
|
12288
|
-
/* @__PURE__ */
|
|
10798
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12289
10799
|
className: "flex items-center gap-3",
|
|
12290
10800
|
children: [
|
|
12291
|
-
/* @__PURE__ */
|
|
10801
|
+
/* @__PURE__ */ jsxDEV5("button", {
|
|
12292
10802
|
type: "button",
|
|
12293
10803
|
onClick: onDecrement,
|
|
12294
10804
|
disabled: !canDecrement,
|
|
12295
10805
|
"aria-label": `Decrease ${label.toLowerCase()}`,
|
|
12296
10806
|
className: cn("flex h-8 w-8 items-center justify-center rounded-full border-2 border-blue-500 text-blue-500 transition-all hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:border-slate-300 disabled:text-slate-300 disabled:hover:bg-transparent"),
|
|
12297
|
-
children: /* @__PURE__ */
|
|
10807
|
+
children: /* @__PURE__ */ jsxDEV5(Minus, {
|
|
12298
10808
|
className: "h-4 w-4",
|
|
12299
10809
|
"aria-hidden": "true"
|
|
12300
10810
|
}, undefined, false, undefined, this)
|
|
12301
10811
|
}, undefined, false, undefined, this),
|
|
12302
|
-
/* @__PURE__ */
|
|
10812
|
+
/* @__PURE__ */ jsxDEV5("span", {
|
|
12303
10813
|
className: "w-8 text-center text-sm font-medium text-slate-900",
|
|
12304
10814
|
"aria-live": "polite",
|
|
12305
10815
|
"aria-atomic": "true",
|
|
12306
10816
|
children: value
|
|
12307
10817
|
}, undefined, false, undefined, this),
|
|
12308
|
-
/* @__PURE__ */
|
|
10818
|
+
/* @__PURE__ */ jsxDEV5("button", {
|
|
12309
10819
|
type: "button",
|
|
12310
10820
|
onClick: onIncrement,
|
|
12311
10821
|
disabled: !canIncrement,
|
|
12312
10822
|
"aria-label": `Increase ${label.toLowerCase()}`,
|
|
12313
10823
|
className: cn("flex h-8 w-8 items-center justify-center rounded-full border-2 border-blue-500 bg-blue-500 text-white transition-all hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:border-slate-300 disabled:bg-slate-300 disabled:hover:bg-slate-300"),
|
|
12314
|
-
children: /* @__PURE__ */
|
|
10824
|
+
children: /* @__PURE__ */ jsxDEV5(Plus, {
|
|
12315
10825
|
className: "h-4 w-4",
|
|
12316
10826
|
"aria-hidden": "true"
|
|
12317
10827
|
}, undefined, false, undefined, this)
|
|
@@ -12365,33 +10875,33 @@ function GuestSelector({
|
|
|
12365
10875
|
}
|
|
12366
10876
|
return parts.join(", ");
|
|
12367
10877
|
};
|
|
12368
|
-
return /* @__PURE__ */
|
|
10878
|
+
return /* @__PURE__ */ jsxDEV5(Popover2, {
|
|
12369
10879
|
open,
|
|
12370
10880
|
onOpenChange: (newOpen) => {
|
|
12371
10881
|
setOpen(newOpen);
|
|
12372
10882
|
},
|
|
12373
10883
|
children: [
|
|
12374
|
-
/* @__PURE__ */
|
|
10884
|
+
/* @__PURE__ */ jsxDEV5(PopoverTrigger2, {
|
|
12375
10885
|
asChild: true,
|
|
12376
|
-
children: /* @__PURE__ */
|
|
10886
|
+
children: /* @__PURE__ */ jsxDEV5("button", {
|
|
12377
10887
|
type: "button",
|
|
12378
10888
|
"aria-label": "Select guests",
|
|
12379
10889
|
disabled,
|
|
12380
10890
|
tabIndex,
|
|
12381
10891
|
className: cn("flex h-14 w-full items-center gap-3 rounded-lg border border-slate-300 bg-white px-4 py-3 text-left text-sm transition-colors hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
12382
10892
|
children: [
|
|
12383
|
-
/* @__PURE__ */
|
|
10893
|
+
/* @__PURE__ */ jsxDEV5(Users, {
|
|
12384
10894
|
className: "h-5 w-5 text-slate-500 flex-shrink-0",
|
|
12385
10895
|
"aria-hidden": "true"
|
|
12386
10896
|
}, undefined, false, undefined, this),
|
|
12387
|
-
/* @__PURE__ */
|
|
10897
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12388
10898
|
className: "flex flex-col min-w-0 flex-1",
|
|
12389
10899
|
children: [
|
|
12390
|
-
/* @__PURE__ */
|
|
10900
|
+
/* @__PURE__ */ jsxDEV5("span", {
|
|
12391
10901
|
className: "text-xs font-medium text-slate-500",
|
|
12392
10902
|
children: "Guests"
|
|
12393
10903
|
}, undefined, false, undefined, this),
|
|
12394
|
-
/* @__PURE__ */
|
|
10904
|
+
/* @__PURE__ */ jsxDEV5("span", {
|
|
12395
10905
|
className: "font-medium text-slate-900 truncate",
|
|
12396
10906
|
children: formatGuestText()
|
|
12397
10907
|
}, undefined, false, undefined, this)
|
|
@@ -12400,16 +10910,16 @@ function GuestSelector({
|
|
|
12400
10910
|
]
|
|
12401
10911
|
}, undefined, true, undefined, this)
|
|
12402
10912
|
}, undefined, false, undefined, this),
|
|
12403
|
-
/* @__PURE__ */
|
|
10913
|
+
/* @__PURE__ */ jsxDEV5(PopoverContent2, {
|
|
12404
10914
|
className: "w-[320px]",
|
|
12405
10915
|
align: "start",
|
|
12406
10916
|
onInteractOutside: (e) => {
|
|
12407
10917
|
e.preventDefault();
|
|
12408
10918
|
},
|
|
12409
|
-
children: /* @__PURE__ */
|
|
10919
|
+
children: /* @__PURE__ */ jsxDEV5("div", {
|
|
12410
10920
|
className: "space-y-1",
|
|
12411
10921
|
children: [
|
|
12412
|
-
/* @__PURE__ */
|
|
10922
|
+
/* @__PURE__ */ jsxDEV5(GuestStepper, {
|
|
12413
10923
|
label: "Adulti",
|
|
12414
10924
|
description: "Età 18+",
|
|
12415
10925
|
value: localValue.adults,
|
|
@@ -12418,10 +10928,10 @@ function GuestSelector({
|
|
|
12418
10928
|
min: 1,
|
|
12419
10929
|
max: maxAdults
|
|
12420
10930
|
}, undefined, false, undefined, this),
|
|
12421
|
-
/* @__PURE__ */
|
|
10931
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12422
10932
|
className: "border-t border-slate-200"
|
|
12423
10933
|
}, undefined, false, undefined, this),
|
|
12424
|
-
/* @__PURE__ */
|
|
10934
|
+
/* @__PURE__ */ jsxDEV5(GuestStepper, {
|
|
12425
10935
|
label: "Bambini",
|
|
12426
10936
|
description: "Età 0-17",
|
|
12427
10937
|
value: localValue.children,
|
|
@@ -12430,12 +10940,12 @@ function GuestSelector({
|
|
|
12430
10940
|
min: 0,
|
|
12431
10941
|
max: maxChildren
|
|
12432
10942
|
}, undefined, false, undefined, this),
|
|
12433
|
-
/* @__PURE__ */
|
|
10943
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12434
10944
|
className: "border-t border-slate-200 mt-3"
|
|
12435
10945
|
}, undefined, false, undefined, this),
|
|
12436
|
-
/* @__PURE__ */
|
|
10946
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
12437
10947
|
className: "pt-3",
|
|
12438
|
-
children: /* @__PURE__ */
|
|
10948
|
+
children: /* @__PURE__ */ jsxDEV5("button", {
|
|
12439
10949
|
type: "button",
|
|
12440
10950
|
onClick: handleConfirm,
|
|
12441
10951
|
className: "w-full rounded-lg bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
@@ -12450,33 +10960,33 @@ function GuestSelector({
|
|
|
12450
10960
|
}
|
|
12451
10961
|
|
|
12452
10962
|
// src/components/booking-search/ui/dialog.tsx
|
|
12453
|
-
|
|
12454
|
-
|
|
10963
|
+
import * as React40 from "react";
|
|
10964
|
+
import { jsxDEV as jsxDEV6 } from "react/jsx-dev-runtime";
|
|
12455
10965
|
var Dialog2 = Root;
|
|
12456
10966
|
var DialogTrigger2 = Trigger;
|
|
12457
10967
|
var DialogPortal2 = Portal2;
|
|
12458
|
-
var DialogOverlay2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
10968
|
+
var DialogOverlay2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV6(Overlay, {
|
|
12459
10969
|
ref,
|
|
12460
10970
|
className: cn("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
12461
10971
|
...props
|
|
12462
10972
|
}, undefined, false, undefined, this));
|
|
12463
10973
|
DialogOverlay2.displayName = Overlay.displayName;
|
|
12464
|
-
var DialogContent2 = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
10974
|
+
var DialogContent2 = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxDEV6(DialogPortal2, {
|
|
12465
10975
|
children: [
|
|
12466
|
-
/* @__PURE__ */
|
|
12467
|
-
/* @__PURE__ */
|
|
10976
|
+
/* @__PURE__ */ jsxDEV6(DialogOverlay2, {}, undefined, false, undefined, this),
|
|
10977
|
+
/* @__PURE__ */ jsxDEV6(Content, {
|
|
12468
10978
|
ref,
|
|
12469
10979
|
className: cn("fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-slate-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className),
|
|
12470
10980
|
...props,
|
|
12471
10981
|
children: [
|
|
12472
10982
|
children,
|
|
12473
|
-
/* @__PURE__ */
|
|
10983
|
+
/* @__PURE__ */ jsxDEV6(Close, {
|
|
12474
10984
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100",
|
|
12475
10985
|
children: [
|
|
12476
|
-
/* @__PURE__ */
|
|
10986
|
+
/* @__PURE__ */ jsxDEV6(X, {
|
|
12477
10987
|
className: "h-4 w-4"
|
|
12478
10988
|
}, undefined, false, undefined, this),
|
|
12479
|
-
/* @__PURE__ */
|
|
10989
|
+
/* @__PURE__ */ jsxDEV6("span", {
|
|
12480
10990
|
className: "sr-only",
|
|
12481
10991
|
children: "Chiudi"
|
|
12482
10992
|
}, undefined, false, undefined, this)
|
|
@@ -12490,12 +11000,12 @@ DialogContent2.displayName = Content.displayName;
|
|
|
12490
11000
|
var DialogHeader = ({
|
|
12491
11001
|
className,
|
|
12492
11002
|
...props
|
|
12493
|
-
}) => /* @__PURE__ */
|
|
11003
|
+
}) => /* @__PURE__ */ jsxDEV6("div", {
|
|
12494
11004
|
className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className),
|
|
12495
11005
|
...props
|
|
12496
11006
|
}, undefined, false, undefined, this);
|
|
12497
11007
|
DialogHeader.displayName = "DialogHeader";
|
|
12498
|
-
var DialogTitle2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
11008
|
+
var DialogTitle2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV6(Title, {
|
|
12499
11009
|
ref,
|
|
12500
11010
|
className: cn("text-lg font-semibold leading-none tracking-tight text-slate-900", className),
|
|
12501
11011
|
...props
|
|
@@ -12503,7 +11013,7 @@ var DialogTitle2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
12503
11013
|
DialogTitle2.displayName = Title.displayName;
|
|
12504
11014
|
|
|
12505
11015
|
// src/components/booking-search/index.tsx
|
|
12506
|
-
|
|
11016
|
+
import { jsxDEV as jsxDEV7, Fragment as Fragment11 } from "react/jsx-dev-runtime";
|
|
12507
11017
|
function BookingSearch({
|
|
12508
11018
|
availability,
|
|
12509
11019
|
locations,
|
|
@@ -12548,12 +11058,12 @@ function BookingSearch({
|
|
|
12548
11058
|
}
|
|
12549
11059
|
};
|
|
12550
11060
|
const isSearchEnabled = location && dateRange.from && dateRange.to;
|
|
12551
|
-
const SearchContent = () => /* @__PURE__ */
|
|
11061
|
+
const SearchContent = () => /* @__PURE__ */ jsxDEV7("div", {
|
|
12552
11062
|
className: "flex flex-col gap-3 md:flex-row md:gap-2 md:items-center",
|
|
12553
11063
|
children: [
|
|
12554
|
-
/* @__PURE__ */
|
|
11064
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12555
11065
|
className: "flex-1 relative",
|
|
12556
|
-
children: /* @__PURE__ */
|
|
11066
|
+
children: /* @__PURE__ */ jsxDEV7(LocationCombobox, {
|
|
12557
11067
|
title: "Destination",
|
|
12558
11068
|
locations,
|
|
12559
11069
|
value: location,
|
|
@@ -12563,9 +11073,9 @@ function BookingSearch({
|
|
|
12563
11073
|
tabIndex: 1
|
|
12564
11074
|
}, undefined, false, undefined, this)
|
|
12565
11075
|
}, undefined, false, undefined, this),
|
|
12566
|
-
/* @__PURE__ */
|
|
11076
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12567
11077
|
className: "flex-1 relative",
|
|
12568
|
-
children: /* @__PURE__ */
|
|
11078
|
+
children: /* @__PURE__ */ jsxDEV7(DateRangePicker, {
|
|
12569
11079
|
availability,
|
|
12570
11080
|
value: dateRange,
|
|
12571
11081
|
onChange: setDateRange,
|
|
@@ -12574,9 +11084,9 @@ function BookingSearch({
|
|
|
12574
11084
|
tabIndex: 2
|
|
12575
11085
|
}, undefined, false, undefined, this)
|
|
12576
11086
|
}, undefined, false, undefined, this),
|
|
12577
|
-
/* @__PURE__ */
|
|
11087
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12578
11088
|
className: "flex-1 relative",
|
|
12579
|
-
children: /* @__PURE__ */
|
|
11089
|
+
children: /* @__PURE__ */ jsxDEV7(GuestSelector, {
|
|
12580
11090
|
value: guests,
|
|
12581
11091
|
onChange: setGuests,
|
|
12582
11092
|
maxAdults,
|
|
@@ -12585,9 +11095,9 @@ function BookingSearch({
|
|
|
12585
11095
|
tabIndex: 3
|
|
12586
11096
|
}, undefined, false, undefined, this)
|
|
12587
11097
|
}, undefined, false, undefined, this),
|
|
12588
|
-
/* @__PURE__ */
|
|
11098
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12589
11099
|
className: "md:pl-2",
|
|
12590
|
-
children: /* @__PURE__ */
|
|
11100
|
+
children: /* @__PURE__ */ jsxDEV7("button", {
|
|
12591
11101
|
type: "button",
|
|
12592
11102
|
onClick: handleSearch,
|
|
12593
11103
|
disabled: !isSearchEnabled,
|
|
@@ -12595,10 +11105,10 @@ function BookingSearch({
|
|
|
12595
11105
|
tabIndex: 4,
|
|
12596
11106
|
className: cn("flex h-12 w-full items-center justify-center gap-2 rounded-lg bg-blue-600 px-6 text-sm font-bold text-white transition-all hover:bg-blue-700 disabled:bg-slate-300 md:w-auto"),
|
|
12597
11107
|
children: [
|
|
12598
|
-
/* @__PURE__ */
|
|
11108
|
+
/* @__PURE__ */ jsxDEV7(Search, {
|
|
12599
11109
|
className: "h-4 w-4"
|
|
12600
11110
|
}, undefined, false, undefined, this),
|
|
12601
|
-
/* @__PURE__ */
|
|
11111
|
+
/* @__PURE__ */ jsxDEV7("span", {
|
|
12602
11112
|
className: "whitespace-nowrap",
|
|
12603
11113
|
children: searchButtonText
|
|
12604
11114
|
}, undefined, false, undefined, this)
|
|
@@ -12608,38 +11118,38 @@ function BookingSearch({
|
|
|
12608
11118
|
]
|
|
12609
11119
|
}, undefined, true, undefined, this);
|
|
12610
11120
|
if (!isMobile) {
|
|
12611
|
-
return /* @__PURE__ */
|
|
11121
|
+
return /* @__PURE__ */ jsxDEV7("div", {
|
|
12612
11122
|
className: cn("w-full rounded-2xl border border-slate-200 bg-white p-3 shadow-xl", className),
|
|
12613
11123
|
role: "search",
|
|
12614
11124
|
"aria-label": "Booking search",
|
|
12615
|
-
children: /* @__PURE__ */
|
|
11125
|
+
children: /* @__PURE__ */ jsxDEV7(SearchContent, {}, undefined, false, undefined, this)
|
|
12616
11126
|
}, undefined, false, undefined, this);
|
|
12617
11127
|
}
|
|
12618
|
-
return /* @__PURE__ */
|
|
12619
|
-
children: /* @__PURE__ */
|
|
11128
|
+
return /* @__PURE__ */ jsxDEV7(Fragment11, {
|
|
11129
|
+
children: /* @__PURE__ */ jsxDEV7(Dialog2, {
|
|
12620
11130
|
open: mobileOpen,
|
|
12621
11131
|
onOpenChange: setMobileOpen,
|
|
12622
11132
|
children: [
|
|
12623
|
-
/* @__PURE__ */
|
|
11133
|
+
/* @__PURE__ */ jsxDEV7(DialogTrigger2, {
|
|
12624
11134
|
asChild: true,
|
|
12625
|
-
children: /* @__PURE__ */
|
|
11135
|
+
children: /* @__PURE__ */ jsxDEV7("button", {
|
|
12626
11136
|
type: "button",
|
|
12627
11137
|
tabIndex: 0,
|
|
12628
11138
|
className: cn("flex h-14 w-full items-center gap-3 rounded-lg border border-slate-300 bg-white px-4 shadow-md", className),
|
|
12629
11139
|
"aria-label": "Open booking search",
|
|
12630
11140
|
children: [
|
|
12631
|
-
/* @__PURE__ */
|
|
11141
|
+
/* @__PURE__ */ jsxDEV7(Search, {
|
|
12632
11142
|
className: "h-5 w-5 text-slate-500",
|
|
12633
11143
|
"aria-hidden": "true"
|
|
12634
11144
|
}, undefined, false, undefined, this),
|
|
12635
|
-
/* @__PURE__ */
|
|
11145
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12636
11146
|
className: "flex flex-col items-start text-left",
|
|
12637
11147
|
children: [
|
|
12638
|
-
/* @__PURE__ */
|
|
11148
|
+
/* @__PURE__ */ jsxDEV7("span", {
|
|
12639
11149
|
className: "text-sm font-semibold text-slate-900",
|
|
12640
11150
|
children: "Dove vuoi andare?"
|
|
12641
11151
|
}, undefined, false, undefined, this),
|
|
12642
|
-
/* @__PURE__ */
|
|
11152
|
+
/* @__PURE__ */ jsxDEV7("span", {
|
|
12643
11153
|
className: "text-xs text-slate-500",
|
|
12644
11154
|
children: [
|
|
12645
11155
|
location?.name ?? "Destination",
|
|
@@ -12654,17 +11164,17 @@ function BookingSearch({
|
|
|
12654
11164
|
]
|
|
12655
11165
|
}, undefined, true, undefined, this)
|
|
12656
11166
|
}, undefined, false, undefined, this),
|
|
12657
|
-
/* @__PURE__ */
|
|
11167
|
+
/* @__PURE__ */ jsxDEV7(DialogContent2, {
|
|
12658
11168
|
className: "max-h-[90vh] overflow-y-auto sm:max-w-[600px]",
|
|
12659
11169
|
children: [
|
|
12660
|
-
/* @__PURE__ */
|
|
12661
|
-
children: /* @__PURE__ */
|
|
11170
|
+
/* @__PURE__ */ jsxDEV7(DialogHeader, {
|
|
11171
|
+
children: /* @__PURE__ */ jsxDEV7(DialogTitle2, {
|
|
12662
11172
|
children: "Search your accommodation"
|
|
12663
11173
|
}, undefined, false, undefined, this)
|
|
12664
11174
|
}, undefined, false, undefined, this),
|
|
12665
|
-
/* @__PURE__ */
|
|
11175
|
+
/* @__PURE__ */ jsxDEV7("div", {
|
|
12666
11176
|
className: "mt-4",
|
|
12667
|
-
children: /* @__PURE__ */
|
|
11177
|
+
children: /* @__PURE__ */ jsxDEV7(SearchContent, {}, undefined, false, undefined, this)
|
|
12668
11178
|
}, undefined, false, undefined, this)
|
|
12669
11179
|
]
|
|
12670
11180
|
}, undefined, true, undefined, this)
|