@rezkit/toursui 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/toursui.cjs +2 -2
- package/dist/toursui.cjs.map +1 -1
- package/dist/toursui.js +218 -214
- package/dist/toursui.js.map +1 -1
- package/package.json +1 -1
package/dist/toursui.js
CHANGED
@@ -2631,7 +2631,7 @@ const lc = (e, t = {
|
|
2631
2631
|
bigint: (e) => Ur.create({ ...e, coerce: !0 }),
|
2632
2632
|
date: (e) => Xr.create({ ...e, coerce: !0 })
|
2633
2633
|
}, Fc = Ae;
|
2634
|
-
var
|
2634
|
+
var M = /* @__PURE__ */ Object.freeze({
|
2635
2635
|
__proto__: null,
|
2636
2636
|
defaultErrorMap: Fa,
|
2637
2637
|
setErrorMap: Zu,
|
@@ -4892,7 +4892,7 @@ var ks = Tl(function(e, t) {
|
|
4892
4892
|
}, pips: ni };
|
4893
4893
|
return gn;
|
4894
4894
|
}
|
4895
|
-
function
|
4895
|
+
function O(d, l) {
|
4896
4896
|
if (!d || !d.nodeName)
|
4897
4897
|
throw new Error("noUiSlider: create requires a single element, got: " + d);
|
4898
4898
|
if (d.noUiSlider)
|
@@ -4900,8 +4900,8 @@ var ks = Tl(function(e, t) {
|
|
4900
4900
|
var q = Ea(d, ia(l), l);
|
4901
4901
|
return d.noUiSlider = q, q;
|
4902
4902
|
}
|
4903
|
-
var V = { __spectrum: ne, cssClasses: T, create:
|
4904
|
-
r.create =
|
4903
|
+
var V = { __spectrum: ne, cssClasses: T, create: O };
|
4904
|
+
r.create = O, r.cssClasses = T, r.default = V, Object.defineProperty(r, "__esModule", { value: !0 });
|
4905
4905
|
})(t);
|
4906
4906
|
}));
|
4907
4907
|
function xs(e, t) {
|
@@ -12110,119 +12110,119 @@ const b0 = ({
|
|
12110
12110
|
i,
|
12111
12111
|
a
|
12112
12112
|
), G = te(
|
12113
|
-
() => (
|
12113
|
+
() => (O) => o.value[O] ? o.value[O].month : 0
|
12114
12114
|
), K = te(
|
12115
|
-
() => (
|
12116
|
-
), Z = (
|
12115
|
+
() => (O) => o.value[O] ? o.value[O].year : 0
|
12116
|
+
), Z = (O, V, d) => {
|
12117
12117
|
var l, q;
|
12118
|
-
o.value[
|
12118
|
+
o.value[O] || (o.value[O] = { month: 0, year: 0 }), o.value[O].month = js(V) ? (l = o.value[O]) == null ? void 0 : l.month : V, o.value[O].year = js(d) ? (q = o.value[O]) == null ? void 0 : q.year : d;
|
12119
12119
|
}, $ = () => {
|
12120
12120
|
e.autoApply && t("select-date");
|
12121
12121
|
};
|
12122
|
-
_t(i, (
|
12123
|
-
JSON.stringify(
|
12122
|
+
_t(i, (O, V) => {
|
12123
|
+
JSON.stringify(O) !== JSON.stringify(V) && _();
|
12124
12124
|
}), zt(() => {
|
12125
12125
|
e.shadow || (i.value || (T(), c.value && k(c.value)), _(!0), e.focusStartDate && e.startDate && T());
|
12126
12126
|
});
|
12127
12127
|
const ae = te(() => {
|
12128
|
-
var
|
12129
|
-
return (
|
12128
|
+
var O;
|
12129
|
+
return (O = e.flow) != null && O.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
|
12130
12130
|
}), Q = () => {
|
12131
12131
|
e.autoApply && ae.value && t("auto-apply", e.partialFlow);
|
12132
|
-
}, _ = (
|
12132
|
+
}, _ = (O = !1) => {
|
12133
12133
|
if (i.value)
|
12134
|
-
return Array.isArray(i.value) ? (n.value = i.value, g(
|
12135
|
-
if (u.value.count &&
|
12136
|
-
return L(J(),
|
12137
|
-
}, L = (
|
12138
|
-
if ((!u.value.count || !u.value.static || V) && Z(0, Qe(
|
12134
|
+
return Array.isArray(i.value) ? (n.value = i.value, g(O)) : z(i.value, O);
|
12135
|
+
if (u.value.count && O && !e.startDate)
|
12136
|
+
return L(J(), O);
|
12137
|
+
}, L = (O, V = !1) => {
|
12138
|
+
if ((!u.value.count || !u.value.static || V) && Z(0, Qe(O), qe(O)), u.value.count)
|
12139
12139
|
for (let d = 1; d < u.value.count; d++) {
|
12140
12140
|
const l = ct(J(), { month: G.value(d - 1), year: K.value(d - 1) }), q = Dl(l, { months: 1 });
|
12141
12141
|
o.value[d] = { month: Qe(q), year: qe(q) };
|
12142
12142
|
}
|
12143
|
-
}, z = (
|
12144
|
-
L(
|
12145
|
-
}, P = (
|
12143
|
+
}, z = (O, V) => {
|
12144
|
+
L(O), N("hours", dr(O)), N("minutes", fr(O)), N("seconds", _a(O)), u.value.count && V && f();
|
12145
|
+
}, P = (O) => {
|
12146
12146
|
if (u.value.count) {
|
12147
12147
|
if (u.value.solo)
|
12148
12148
|
return 0;
|
12149
|
-
const V = Qe(
|
12149
|
+
const V = Qe(O[0]), d = Qe(O[1]);
|
12150
12150
|
return Math.abs(d - V) < u.value.count ? 0 : 1;
|
12151
12151
|
}
|
12152
12152
|
return 1;
|
12153
|
-
}, R = (
|
12154
|
-
|
12153
|
+
}, R = (O, V) => {
|
12154
|
+
O[1] && e.showLastInRange ? L(O[P(O)], V) : L(O[0], V);
|
12155
12155
|
const d = (l, q) => [
|
12156
|
-
l(
|
12157
|
-
|
12156
|
+
l(O[0]),
|
12157
|
+
O[1] ? l(O[1]) : s[q][1]
|
12158
12158
|
];
|
12159
12159
|
N("hours", d(dr, "hours")), N("minutes", d(fr, "minutes")), N("seconds", d(_a, "seconds"));
|
12160
|
-
}, S = (
|
12160
|
+
}, S = (O, V) => {
|
12161
12161
|
if ((e.range || e.weekPicker) && !e.multiDates)
|
12162
|
-
return R(
|
12162
|
+
return R(O, V);
|
12163
12163
|
if (e.multiDates && V) {
|
12164
|
-
const d =
|
12164
|
+
const d = O[O.length - 1];
|
12165
12165
|
return z(d, V);
|
12166
12166
|
}
|
12167
|
-
}, g = (
|
12167
|
+
}, g = (O) => {
|
12168
12168
|
const V = i.value;
|
12169
|
-
S(V,
|
12170
|
-
}, H = (
|
12171
|
-
const d = ct(J(), { month: G.value(V), year: K.value(V) }), l =
|
12172
|
-
p(Qe(l), qe(l),
|
12173
|
-
}, ne = (
|
12174
|
-
for (let V =
|
12169
|
+
S(V, O), u.value.count && u.value.solo && f();
|
12170
|
+
}, H = (O, V) => {
|
12171
|
+
const d = ct(J(), { month: G.value(V), year: K.value(V) }), l = O < 0 ? cr(d, 1) : ba(d, 1);
|
12172
|
+
p(Qe(l), qe(l), O < 0, e.preventMinMaxNavigation) && (Z(V, Qe(l), qe(l)), u.value.count && !u.value.solo && ne(V), r());
|
12173
|
+
}, ne = (O) => {
|
12174
|
+
for (let V = O - 1; V >= 0; V--) {
|
12175
12175
|
const d = ba(ct(J(), { month: G.value(V + 1), year: K.value(V + 1) }), 1);
|
12176
12176
|
Z(V, Qe(d), qe(d));
|
12177
12177
|
}
|
12178
|
-
for (let V =
|
12178
|
+
for (let V = O + 1; V <= u.value.count - 1; V++) {
|
12179
12179
|
const d = cr(ct(J(), { month: G.value(V - 1), year: K.value(V - 1) }), 1);
|
12180
12180
|
Z(V, Qe(d), qe(d));
|
12181
12181
|
}
|
12182
12182
|
}, f = () => {
|
12183
12183
|
if (Array.isArray(i.value) && i.value.length === 2) {
|
12184
|
-
const
|
12184
|
+
const O = J(
|
12185
12185
|
J(i.value[1] ? i.value[1] : cr(i.value[0], 1))
|
12186
12186
|
), [V, d] = [Qe(i.value[0]), qe(i.value[0])], [l, q] = [Qe(i.value[1]), qe(i.value[1])];
|
12187
|
-
(V !== l || V === l && d !== q) && u.value.solo && Z(1, Qe(
|
12187
|
+
(V !== l || V === l && d !== q) && u.value.solo && Z(1, Qe(O), qe(O));
|
12188
12188
|
} else
|
12189
12189
|
i.value && !Array.isArray(i.value) && (Z(0, Qe(i.value), qe(i.value)), L(J()));
|
12190
12190
|
}, T = () => {
|
12191
12191
|
e.startDate && (Z(0, Qe(J(e.startDate)), qe(J(e.startDate))), u.value.count && ne(0));
|
12192
|
-
}, m = (
|
12193
|
-
e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -
|
12194
|
-
}, j = (
|
12195
|
-
e.monthChangeOnArrows && e.vertical === d && I(
|
12196
|
-
}, I = (
|
12197
|
-
H(
|
12198
|
-
}, b = (
|
12192
|
+
}, m = (O, V) => {
|
12193
|
+
e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -O.deltaY : O.deltaY, V);
|
12194
|
+
}, j = (O, V, d = !1) => {
|
12195
|
+
e.monthChangeOnArrows && e.vertical === d && I(O, V);
|
12196
|
+
}, I = (O, V) => {
|
12197
|
+
H(O === "right" ? -1 : 1, V);
|
12198
|
+
}, b = (O) => e.markers.find((V) => rt(Fs(O.value), Fs(V.date))), ee = (O, V) => {
|
12199
12199
|
switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
|
12200
12200
|
case "prepend":
|
12201
12201
|
return [!0, !1];
|
12202
12202
|
case "center":
|
12203
|
-
return [
|
12203
|
+
return [O == 0, !0];
|
12204
12204
|
case "fair":
|
12205
|
-
return [
|
12205
|
+
return [O == 0 || V > O, !0];
|
12206
12206
|
case "append":
|
12207
12207
|
return [!1, !1];
|
12208
12208
|
default:
|
12209
12209
|
return [!1, !1];
|
12210
12210
|
}
|
12211
|
-
}, ve = (
|
12212
|
-
if (e.sixWeeks &&
|
12213
|
-
const q = 6 -
|
12211
|
+
}, ve = (O, V, d, l) => {
|
12212
|
+
if (e.sixWeeks && O.length < 6) {
|
12213
|
+
const q = 6 - O.length, de = (V.getDay() + 7 - l) % 7, se = 6 - (d.getDay() + 7 - l) % 7, [De, We] = ee(de, se);
|
12214
12214
|
for (let nt = 1; nt <= q; nt++)
|
12215
12215
|
if (We ? !!(nt % 2) == De : De) {
|
12216
|
-
const Ke =
|
12217
|
-
|
12216
|
+
const Ke = O[0].days[0], Bt = F(wr(Ke.value, -7), Qe(V));
|
12217
|
+
O.unshift({ days: Bt });
|
12218
12218
|
} else {
|
12219
|
-
const Ke =
|
12220
|
-
|
12219
|
+
const Ke = O[O.length - 1], Bt = Ke.days[Ke.days.length - 1], kt = F(wr(Bt.value, 1), Qe(V));
|
12220
|
+
O.push({ days: kt });
|
12221
12221
|
}
|
12222
12222
|
}
|
12223
|
-
return
|
12224
|
-
}, F = (
|
12225
|
-
const d = J(
|
12223
|
+
return O;
|
12224
|
+
}, F = (O, V) => {
|
12225
|
+
const d = J(O), l = [];
|
12226
12226
|
for (let q = 0; q < 7; q++) {
|
12227
12227
|
const de = wr(d, q), se = Qe(de) !== V;
|
12228
12228
|
l.push({
|
@@ -12233,9 +12233,9 @@ const b0 = ({
|
|
12233
12233
|
});
|
12234
12234
|
}
|
12235
12235
|
return l;
|
12236
|
-
}, me = (
|
12237
|
-
const d = [], l = J(ur(new Date(V,
|
12238
|
-
const nt = F(We,
|
12236
|
+
}, me = (O, V) => {
|
12237
|
+
const d = [], l = J(ur(new Date(V, O), e.timezone)), q = J(ur(new Date(V, O + 1, 0), e.timezone)), de = e.weekStart, se = ra(l, { weekStartsOn: de }), De = (We) => {
|
12238
|
+
const nt = F(We, O);
|
12239
12239
|
if (d.push({ days: nt }), !d[d.length - 1].days.some(
|
12240
12240
|
(Ke) => rt(Kt(Ke.value), Kt(q))
|
12241
12241
|
)) {
|
@@ -12244,69 +12244,69 @@ const b0 = ({
|
|
12244
12244
|
}
|
12245
12245
|
};
|
12246
12246
|
return De(se), ve(d, l, q, de);
|
12247
|
-
}, le = (
|
12248
|
-
const V = Nr(J(
|
12247
|
+
}, le = (O) => (i.value = Pn(J(O.value), e.timezone, e.weekStart), Q()), xe = (O) => {
|
12248
|
+
const V = Nr(J(O.value), s.hours, s.minutes, jt());
|
12249
12249
|
e.multiDates ? Co(V, i, e.multiDatesLimit) : i.value = V, a(), Rr().then(() => {
|
12250
12250
|
Q();
|
12251
12251
|
});
|
12252
|
-
}, Le = (
|
12252
|
+
}, Le = (O) => e.noDisabledRange ? ru(n.value[0], O).some((V) => v(V)) : !1, B = () => {
|
12253
12253
|
n.value = i.value ? i.value.slice() : [], n.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (n.value = []);
|
12254
|
-
}, ce = (
|
12255
|
-
const d = [J(
|
12256
|
-
h(d) && (V && Ue(
|
12257
|
-
}, Ue = (
|
12258
|
-
const V = Qe(J(
|
12254
|
+
}, ce = (O, V) => {
|
12255
|
+
const d = [J(O.value), wr(J(O.value), +e.autoRange)];
|
12256
|
+
h(d) && (V && Ue(O.value), n.value = d);
|
12257
|
+
}, Ue = (O) => {
|
12258
|
+
const V = Qe(J(O)), d = qe(J(O));
|
12259
12259
|
if (Z(0, V, d), u.value.count > 0)
|
12260
12260
|
for (let l = 1; l < u.value.count; l++) {
|
12261
12261
|
const q = n0(
|
12262
|
-
ct(J(
|
12262
|
+
ct(J(O), { year: G.value(l - 1), month: K.value(l - 1) })
|
12263
12263
|
);
|
12264
12264
|
Z(l, q.month, q.year);
|
12265
12265
|
}
|
12266
|
-
}, he = (
|
12267
|
-
Le(
|
12268
|
-
}, Vt = (
|
12266
|
+
}, he = (O) => Array.isArray(i.value) && i.value.length === 2 ? e.fixedStart && (Et(O, i.value[0]) || rt(O, i.value[0])) ? [i.value[0], O] : e.fixedEnd && (Ot(O, i.value[1]) || rt(O, i.value[1])) ? [O, i.value[1]] : (t("invalid-fixed-range", O), i.value) : [], Rt = (O) => {
|
12267
|
+
Le(O.value) || !D(O.value, i.value, e.fixedStart ? 0 : 1) || (n.value = he(J(O.value)));
|
12268
|
+
}, Vt = (O, V) => {
|
12269
12269
|
if (B(), e.autoRange)
|
12270
|
-
return ce(
|
12270
|
+
return ce(O, V);
|
12271
12271
|
if (e.fixedStart || e.fixedEnd)
|
12272
|
-
return Rt(
|
12273
|
-
n.value[0] ? D(J(
|
12274
|
-
}, jt = (
|
12275
|
-
n.value[
|
12276
|
-
n.value[
|
12277
|
-
s.hours[
|
12278
|
-
s.minutes[
|
12279
|
-
jt(
|
12272
|
+
return Rt(O);
|
12273
|
+
n.value[0] ? D(J(O.value), i.value) && !Le(O.value) && (Ot(J(O.value), J(n.value[0])) ? (n.value.unshift(J(O.value)), t("range-end", n.value[0])) : (n.value[1] = J(O.value), t("range-end", n.value[1]))) : (n.value[0] = J(O.value), t("range-start", n.value[0]));
|
12274
|
+
}, jt = (O = !0) => e.enableSeconds ? Array.isArray(s.seconds) ? O ? s.seconds[0] : s.seconds[1] : s.seconds : 0, Vr = (O) => {
|
12275
|
+
n.value[O] = Nr(
|
12276
|
+
n.value[O],
|
12277
|
+
s.hours[O],
|
12278
|
+
s.minutes[O],
|
12279
|
+
jt(O !== 1)
|
12280
12280
|
);
|
12281
12281
|
}, Ca = () => {
|
12282
|
-
var
|
12283
|
-
n.value[0] && n.value[1] && +((
|
12282
|
+
var O, V;
|
12283
|
+
n.value[0] && n.value[1] && +((O = n.value) == null ? void 0 : O[0]) > +((V = n.value) == null ? void 0 : V[1]) && (n.value.reverse(), t("range-start", n.value[0]), t("range-end", n.value[1]));
|
12284
12284
|
}, Pa = () => {
|
12285
12285
|
n.value.length && (n.value[0] && !n.value[1] ? Vr(0) : (Vr(0), Vr(1), a()), Ca(), i.value = n.value.slice(), Po(n.value, t, e.autoApply, e.modelAuto));
|
12286
|
-
}, Ma = (
|
12287
|
-
if (!(v(
|
12286
|
+
}, Ma = (O, V = !1) => {
|
12287
|
+
if (!(v(O.value) || !O.current && e.hideOffsetDates)) {
|
12288
12288
|
if (e.weekPicker)
|
12289
|
-
return le(
|
12289
|
+
return le(O);
|
12290
12290
|
if (!e.range)
|
12291
|
-
return xe(
|
12292
|
-
Zs(s.hours) && Zs(s.minutes) && !e.multiDates && (Vt(
|
12291
|
+
return xe(O);
|
12292
|
+
Zs(s.hours) && Zs(s.minutes) && !e.multiDates && (Vt(O, V), Pa());
|
12293
12293
|
}
|
12294
|
-
}, Oa = (
|
12294
|
+
}, Oa = (O, V) => {
|
12295
12295
|
var d;
|
12296
|
-
Z(
|
12296
|
+
Z(O, V.month, V.year), u.value.count && !u.value.solo && ne(O), t("update-month-year", { instance: O, month: V.month, year: V.year }), r(u.value.solo ? O : void 0);
|
12297
12297
|
const l = (d = e.flow) != null && d.length ? e.flow[e.flowStep] : void 0;
|
12298
12298
|
!V.fromNav && (l === ir.month || l === ir.year) && a();
|
12299
|
-
}, $a = (
|
12300
|
-
Array.isArray(
|
12299
|
+
}, $a = (O, V) => {
|
12300
|
+
Array.isArray(O) && O.length <= 2 && e.range ? i.value = O.map((d) => ur(J(d), V ? void 0 : e.timezone)) : Array.isArray(O) || (i.value = ur(J(O), V ? void 0 : e.timezone)), $(), e.multiCalendars && Rr().then(() => _(!0));
|
12301
12301
|
}, Aa = () => {
|
12302
12302
|
e.range ? i.value && Array.isArray(i.value) && i.value[0] ? i.value = Ot(J(), i.value[0]) ? [J(), i.value[0]] : [i.value[0], J()] : i.value = [J()] : i.value = J(), $();
|
12303
12303
|
}, ia = () => {
|
12304
12304
|
if (Array.isArray(i.value))
|
12305
12305
|
if (e.multiDates) {
|
12306
|
-
const
|
12307
|
-
i.value[i.value.length - 1] = A(
|
12306
|
+
const O = Ea();
|
12307
|
+
i.value[i.value.length - 1] = A(O);
|
12308
12308
|
} else
|
12309
|
-
i.value = i.value.map((
|
12309
|
+
i.value = i.value.map((O, V) => O && A(O, V));
|
12310
12310
|
else
|
12311
12311
|
i.value = A(i.value);
|
12312
12312
|
t("time-update");
|
@@ -12327,8 +12327,8 @@ const b0 = ({
|
|
12327
12327
|
updateMonthYear: Oa,
|
12328
12328
|
presetDate: $a,
|
12329
12329
|
selectCurrentDate: Aa,
|
12330
|
-
updateTime: (
|
12331
|
-
w(
|
12330
|
+
updateTime: (O, V = !0, d = !1) => {
|
12331
|
+
w(O, V, d, ia);
|
12332
12332
|
}
|
12333
12333
|
};
|
12334
12334
|
}, __ = { key: 0 }, b_ = /* @__PURE__ */ Xe({
|
@@ -12921,8 +12921,8 @@ const b0 = ({
|
|
12921
12921
|
}, Ea = (V, d) => {
|
12922
12922
|
var l;
|
12923
12923
|
(l = c.value) == null || l.switchView(V, d);
|
12924
|
-
},
|
12925
|
-
return O_(u, p, () =>
|
12924
|
+
}, O = (V) => a.onClickOutside ? a.onClickOutside(V) : $.value.onClickOutside ? $.value.onClickOutside(V) : jt();
|
12925
|
+
return O_(u, p, () => O(B)), t({
|
12926
12926
|
closeMenu: jt,
|
12927
12927
|
selectDate: ce,
|
12928
12928
|
clearValue: Le,
|
@@ -13070,38 +13070,38 @@ const E_ = { class: "rkts-chosen-date" }, N_ = /* @__PURE__ */ Xe({
|
|
13070
13070
|
]));
|
13071
13071
|
}
|
13072
13072
|
});
|
13073
|
-
const xa =
|
13074
|
-
type:
|
13075
|
-
as:
|
13076
|
-
title:
|
13077
|
-
category:
|
13073
|
+
const xa = M.boolean().or(M.function().returns(M.boolean())), R_ = M.object({
|
13074
|
+
type: M.literal("category"),
|
13075
|
+
as: M.enum(["checkboxs", "dropdown", "radio"]),
|
13076
|
+
title: M.string(),
|
13077
|
+
category: M.string().nonempty(),
|
13078
13078
|
collapsed: xa,
|
13079
13079
|
collapsable: xa
|
13080
|
-
}), I_ =
|
13081
|
-
type:
|
13082
|
-
as:
|
13083
|
-
title:
|
13080
|
+
}), I_ = M.object({
|
13081
|
+
type: M.literal("dates"),
|
13082
|
+
as: M.enum(["checkboxes", "dropdown", "calendar"]),
|
13083
|
+
title: M.string(),
|
13084
13084
|
collapsed: xa,
|
13085
13085
|
collapsable: xa
|
13086
|
-
}), U_ =
|
13087
|
-
type:
|
13088
|
-
as:
|
13089
|
-
title:
|
13090
|
-
location_type:
|
13086
|
+
}), U_ = M.object({
|
13087
|
+
type: M.literal("location"),
|
13088
|
+
as: M.enum(["checkboxs", "dropdown", "radio"]),
|
13089
|
+
title: M.string(),
|
13090
|
+
location_type: M.string().nonempty(),
|
13091
13091
|
collapsed: xa,
|
13092
13092
|
collapsable: xa
|
13093
13093
|
});
|
13094
|
-
|
13094
|
+
M.discriminatedUnion("type", [
|
13095
13095
|
R_,
|
13096
13096
|
I_,
|
13097
13097
|
U_
|
13098
13098
|
]);
|
13099
13099
|
const Q_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
13100
13100
|
__proto__: null
|
13101
|
-
}, Symbol.toStringTag, { value: "Module" })), Ft =
|
13102
|
-
ccy:
|
13103
|
-
q:
|
13104
|
-
qs:
|
13101
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = M.array(M.string().min(1)), Gs = M.object({
|
13102
|
+
ccy: M.string().nonempty(),
|
13103
|
+
q: M.string().optional(),
|
13104
|
+
qs: M.string().optional(),
|
13105
13105
|
c0: Ft.optional(),
|
13106
13106
|
c1: Ft.optional(),
|
13107
13107
|
c2: Ft.optional(),
|
@@ -13112,120 +13112,124 @@ const Q_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13112
13112
|
c7: Ft.optional(),
|
13113
13113
|
c8: Ft.optional(),
|
13114
13114
|
c9: Ft.optional(),
|
13115
|
-
l:
|
13116
|
-
fh:
|
13117
|
-
fd:
|
13115
|
+
l: M.record(M.string(), Ft).optional(),
|
13116
|
+
fh: M.record(M.string(), M.union([M.string(), M.number(), M.boolean(), M.null(), Ft])).optional(),
|
13117
|
+
fd: M.record(M.string(), M.union([M.string(), M.number(), M.boolean(), M.null(), Ft])).optional(),
|
13118
13118
|
s: Ft.optional(),
|
13119
|
-
i:
|
13120
|
-
o:
|
13121
|
-
pi:
|
13122
|
-
pf:
|
13123
|
-
pt:
|
13124
|
-
df:
|
13125
|
-
dt:
|
13126
|
-
|
13127
|
-
|
13128
|
-
|
13129
|
-
|
13130
|
-
|
13131
|
-
|
13132
|
-
|
13133
|
-
|
13134
|
-
|
13135
|
-
|
13136
|
-
|
13137
|
-
|
13138
|
-
|
13139
|
-
|
13140
|
-
|
13141
|
-
|
13142
|
-
|
13143
|
-
|
13144
|
-
|
13145
|
-
|
13146
|
-
|
13147
|
-
|
13148
|
-
|
13149
|
-
|
13150
|
-
|
13151
|
-
|
13152
|
-
|
13119
|
+
i: M.coerce.number().min(1).max(200).optional(),
|
13120
|
+
o: M.coerce.number().min(0).optional(),
|
13121
|
+
pi: M.coerce.number().min(1).optional(),
|
13122
|
+
pf: M.coerce.number().min(0).optional(),
|
13123
|
+
pt: M.coerce.number().min(0).optional(),
|
13124
|
+
df: M.string().or(M.date()).optional(),
|
13125
|
+
dt: M.string().or(M.date()).optional(),
|
13126
|
+
hdi: M.coerce.number().min(1).optional(),
|
13127
|
+
hdf: M.coerce.number().min(0).optional(),
|
13128
|
+
hdt: M.coerce.number().min(0).optional(),
|
13129
|
+
j: M.literal("a").or(M.literal("d")).optional()
|
13130
|
+
}).refine((e) => !(e.q && e.qs), { message: "`q` and `qs` are mutually exclusive", path: ["q", "qs"] }), Y_ = M.union([M.string(), M.number(), M.boolean(), M.array(M.string()), M.null()]), L_ = M.object({
|
13131
|
+
name: M.string(),
|
13132
|
+
code: M.string(),
|
13133
|
+
description: M.string(),
|
13134
|
+
published: M.boolean(),
|
13135
|
+
type: M.literal("holiday"),
|
13136
|
+
duration: M.array(M.number().int().nonnegative()),
|
13137
|
+
ordering: M.number().int().positive(),
|
13138
|
+
categories: M.record(M.array(M.string())),
|
13139
|
+
locations: M.record(M.array(M.string())).or(M.array(M.undefined())),
|
13140
|
+
custom_fields: M.record(Y_),
|
13141
|
+
images: M.array(M.any())
|
13142
|
+
}).required().passthrough(), V_ = M.object({
|
13143
|
+
_id: M.string(),
|
13144
|
+
_score: M.number().nonnegative(),
|
13145
|
+
_routing: M.string(),
|
13146
|
+
_source: M.object({
|
13147
|
+
type: M.literal("departure"),
|
13148
|
+
name: M.string(),
|
13149
|
+
code: M.string(),
|
13150
|
+
published: M.boolean(),
|
13151
|
+
duration: M.number().int().nonnegative(),
|
13152
|
+
kind: M.enum(["fixed", "fixed_duration", "flexible"]),
|
13153
|
+
dates: M.object({
|
13154
|
+
lte: M.coerce.date(),
|
13155
|
+
gte: M.coerce.date()
|
13153
13156
|
}),
|
13154
|
-
lead_prices:
|
13157
|
+
lead_prices: M.record(M.array(M.coerce.number()))
|
13155
13158
|
}).passthrough()
|
13156
|
-
}).required(), j_ =
|
13157
|
-
_id:
|
13158
|
-
_score:
|
13159
|
-
_routing:
|
13159
|
+
}).required(), j_ = M.object({
|
13160
|
+
_id: M.string(),
|
13161
|
+
_score: M.number().nonnegative(),
|
13162
|
+
_routing: M.string(),
|
13160
13163
|
_source: L_,
|
13161
|
-
inner_hits:
|
13162
|
-
departure:
|
13163
|
-
hits:
|
13164
|
-
total:
|
13165
|
-
value:
|
13166
|
-
relation:
|
13164
|
+
inner_hits: M.object({
|
13165
|
+
departure: M.object({
|
13166
|
+
hits: M.object({
|
13167
|
+
total: M.object({
|
13168
|
+
value: M.number().int().nonnegative(),
|
13169
|
+
relation: M.string()
|
13167
13170
|
}),
|
13168
|
-
max_score:
|
13169
|
-
hits:
|
13171
|
+
max_score: M.number().nonnegative().nullable(),
|
13172
|
+
hits: M.array(V_)
|
13170
13173
|
}).required()
|
13171
13174
|
}).required()
|
13172
13175
|
}),
|
13173
|
-
calculated:
|
13174
|
-
lead_price:
|
13175
|
-
months_of_operation:
|
13176
|
+
calculated: M.object({
|
13177
|
+
lead_price: M.array(M.coerce.number()),
|
13178
|
+
months_of_operation: M.array(M.number().int().min(1).max(12)),
|
13179
|
+
leading_pricing: M.record(M.string(), M.number()).optional()
|
13176
13180
|
}).required()
|
13177
|
-
}).required(), H_ =
|
13178
|
-
departures:
|
13179
|
-
doc_count:
|
13180
|
-
matching:
|
13181
|
-
doc_count:
|
13182
|
-
price_stats:
|
13183
|
-
count:
|
13184
|
-
min:
|
13185
|
-
max:
|
13186
|
-
avg:
|
13187
|
-
sum:
|
13181
|
+
}).required(), H_ = M.object({
|
13182
|
+
departures: M.object({
|
13183
|
+
doc_count: M.number().int().nonnegative(),
|
13184
|
+
matching: M.object({
|
13185
|
+
doc_count: M.number().int().nonnegative(),
|
13186
|
+
price_stats: M.object({
|
13187
|
+
count: M.number().int().nonnegative().nullable(),
|
13188
|
+
min: M.number().nullable(),
|
13189
|
+
max: M.number().nullable(),
|
13190
|
+
avg: M.number().nullable(),
|
13191
|
+
sum: M.number().nullable()
|
13188
13192
|
}).required(),
|
13189
|
-
price_histogram:
|
13190
|
-
buckets:
|
13191
|
-
key:
|
13192
|
-
doc_count:
|
13193
|
+
price_histogram: M.object({
|
13194
|
+
buckets: M.array(M.object({
|
13195
|
+
key: M.number().nonnegative(),
|
13196
|
+
doc_count: M.number().int().nonnegative()
|
13193
13197
|
}).required())
|
13194
13198
|
}),
|
13195
|
-
date_histogram:
|
13196
|
-
buckets:
|
13197
|
-
key:
|
13198
|
-
key_as_string:
|
13199
|
-
doc_count:
|
13199
|
+
date_histogram: M.object({
|
13200
|
+
buckets: M.array(M.object({
|
13201
|
+
key: M.number().int().nonnegative(),
|
13202
|
+
key_as_string: M.coerce.date(),
|
13203
|
+
doc_count: M.number().int().nonnegative()
|
13200
13204
|
}).required())
|
13201
13205
|
})
|
13202
13206
|
})
|
13203
13207
|
})
|
13204
|
-
}).required().passthrough(), F_ =
|
13205
|
-
took:
|
13206
|
-
timed_out:
|
13207
|
-
hits:
|
13208
|
-
total:
|
13209
|
-
value:
|
13210
|
-
relation:
|
13208
|
+
}).required().passthrough(), F_ = M.object({
|
13209
|
+
took: M.number().int().nonnegative(),
|
13210
|
+
timed_out: M.boolean(),
|
13211
|
+
hits: M.object({
|
13212
|
+
total: M.object({
|
13213
|
+
value: M.number().int().nonnegative(),
|
13214
|
+
relation: M.string()
|
13211
13215
|
}),
|
13212
|
-
max_score:
|
13213
|
-
hits:
|
13216
|
+
max_score: M.number().nonnegative().nullable(),
|
13217
|
+
hits: M.array(j_)
|
13214
13218
|
}).required(),
|
13215
13219
|
aggregations: H_
|
13216
|
-
}).required(), B_ =
|
13217
|
-
text:
|
13218
|
-
_index:
|
13219
|
-
_id:
|
13220
|
-
_score:
|
13221
|
-
}).required(), W_ =
|
13222
|
-
text:
|
13223
|
-
offset:
|
13224
|
-
length:
|
13225
|
-
options:
|
13226
|
-
}).required(), z_ =
|
13227
|
-
const Ks = "https://api.tours.rezkit.app", Z_ =
|
13228
|
-
host:
|
13220
|
+
}).required(), B_ = M.object({
|
13221
|
+
text: M.string().nonempty(),
|
13222
|
+
_index: M.string(),
|
13223
|
+
_id: M.string(),
|
13224
|
+
_score: M.number().nonnegative()
|
13225
|
+
}).required(), W_ = M.object({
|
13226
|
+
text: M.string().nonempty(),
|
13227
|
+
offset: M.number().int().nonnegative(),
|
13228
|
+
length: M.number().int().nonnegative(),
|
13229
|
+
options: M.array(B_)
|
13230
|
+
}).required(), z_ = M.record(M.array(W_));
|
13231
|
+
const Ks = "https://api.tours.rezkit.app", Z_ = M.object({
|
13232
|
+
host: M.string().url()
|
13229
13233
|
}).partial();
|
13230
13234
|
class q_ {
|
13231
13235
|
constructor(t, r) {
|