@rezkit/toursui 0.2.9 → 0.2.11
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 +215 -214
- package/dist/toursui.js.map +1 -1
- package/package.json +1 -1
package/dist/toursui.js
CHANGED
@@ -2613,7 +2613,7 @@ const sc = (e, t = {
|
|
2613
2613
|
bigint: (e) => Ur.create({ ...e, coerce: !0 }),
|
2614
2614
|
date: (e) => Xr.create({ ...e, coerce: !0 })
|
2615
2615
|
}, Hc = Ae;
|
2616
|
-
var
|
2616
|
+
var M = /* @__PURE__ */ Object.freeze({
|
2617
2617
|
__proto__: null,
|
2618
2618
|
defaultErrorMap: Fa,
|
2619
2619
|
setErrorMap: zu,
|
@@ -4881,7 +4881,7 @@ var ws = xl(function(e, t) {
|
|
4881
4881
|
}, pips: ni };
|
4882
4882
|
return gn;
|
4883
4883
|
}
|
4884
|
-
function
|
4884
|
+
function O(d, l) {
|
4885
4885
|
if (!d || !d.nodeName)
|
4886
4886
|
throw new Error("noUiSlider: create requires a single element, got: " + d);
|
4887
4887
|
if (d.noUiSlider)
|
@@ -4889,8 +4889,8 @@ var ws = xl(function(e, t) {
|
|
4889
4889
|
var q = Ea(d, ia(l), l);
|
4890
4890
|
return d.noUiSlider = q, q;
|
4891
4891
|
}
|
4892
|
-
var V = { __spectrum: ne, cssClasses: T, create:
|
4893
|
-
r.create =
|
4892
|
+
var V = { __spectrum: ne, cssClasses: T, create: O };
|
4893
|
+
r.create = O, r.cssClasses = T, r.default = V, Object.defineProperty(r, "__esModule", { value: !0 });
|
4894
4894
|
})(t);
|
4895
4895
|
}));
|
4896
4896
|
function ks(e, t) {
|
@@ -12099,119 +12099,119 @@ const b0 = ({
|
|
12099
12099
|
i,
|
12100
12100
|
a
|
12101
12101
|
), G = te(
|
12102
|
-
() => (
|
12102
|
+
() => (O) => o.value[O] ? o.value[O].month : 0
|
12103
12103
|
), K = te(
|
12104
|
-
() => (
|
12105
|
-
), Z = (
|
12104
|
+
() => (O) => o.value[O] ? o.value[O].year : 0
|
12105
|
+
), Z = (O, V, d) => {
|
12106
12106
|
var l, q;
|
12107
|
-
o.value[
|
12107
|
+
o.value[O] || (o.value[O] = { month: 0, year: 0 }), o.value[O].month = Vs(V) ? (l = o.value[O]) == null ? void 0 : l.month : V, o.value[O].year = Vs(d) ? (q = o.value[O]) == null ? void 0 : q.year : d;
|
12108
12108
|
}, $ = () => {
|
12109
12109
|
e.autoApply && t("select-date");
|
12110
12110
|
};
|
12111
|
-
_t(i, (
|
12112
|
-
JSON.stringify(
|
12111
|
+
_t(i, (O, V) => {
|
12112
|
+
JSON.stringify(O) !== JSON.stringify(V) && _();
|
12113
12113
|
}), zt(() => {
|
12114
12114
|
e.shadow || (i.value || (T(), c.value && k(c.value)), _(!0), e.focusStartDate && e.startDate && T());
|
12115
12115
|
});
|
12116
12116
|
const ae = te(() => {
|
12117
|
-
var
|
12118
|
-
return (
|
12117
|
+
var O;
|
12118
|
+
return (O = e.flow) != null && O.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
|
12119
12119
|
}), Q = () => {
|
12120
12120
|
e.autoApply && ae.value && t("auto-apply", e.partialFlow);
|
12121
|
-
}, _ = (
|
12121
|
+
}, _ = (O = !1) => {
|
12122
12122
|
if (i.value)
|
12123
|
-
return Array.isArray(i.value) ? (n.value = i.value, g(
|
12124
|
-
if (u.value.count &&
|
12125
|
-
return L(J(),
|
12126
|
-
}, L = (
|
12127
|
-
if ((!u.value.count || !u.value.static || V) && Z(0, Qe(
|
12123
|
+
return Array.isArray(i.value) ? (n.value = i.value, g(O)) : z(i.value, O);
|
12124
|
+
if (u.value.count && O && !e.startDate)
|
12125
|
+
return L(J(), O);
|
12126
|
+
}, L = (O, V = !1) => {
|
12127
|
+
if ((!u.value.count || !u.value.static || V) && Z(0, Qe(O), qe(O)), u.value.count)
|
12128
12128
|
for (let d = 1; d < u.value.count; d++) {
|
12129
12129
|
const l = ct(J(), { month: G.value(d - 1), year: K.value(d - 1) }), q = Tl(l, { months: 1 });
|
12130
12130
|
o.value[d] = { month: Qe(q), year: qe(q) };
|
12131
12131
|
}
|
12132
|
-
}, z = (
|
12133
|
-
L(
|
12134
|
-
}, P = (
|
12132
|
+
}, z = (O, V) => {
|
12133
|
+
L(O), N("hours", dr(O)), N("minutes", fr(O)), N("seconds", _a(O)), u.value.count && V && f();
|
12134
|
+
}, P = (O) => {
|
12135
12135
|
if (u.value.count) {
|
12136
12136
|
if (u.value.solo)
|
12137
12137
|
return 0;
|
12138
|
-
const V = Qe(
|
12138
|
+
const V = Qe(O[0]), d = Qe(O[1]);
|
12139
12139
|
return Math.abs(d - V) < u.value.count ? 0 : 1;
|
12140
12140
|
}
|
12141
12141
|
return 1;
|
12142
|
-
}, R = (
|
12143
|
-
|
12142
|
+
}, R = (O, V) => {
|
12143
|
+
O[1] && e.showLastInRange ? L(O[P(O)], V) : L(O[0], V);
|
12144
12144
|
const d = (l, q) => [
|
12145
|
-
l(
|
12146
|
-
|
12145
|
+
l(O[0]),
|
12146
|
+
O[1] ? l(O[1]) : s[q][1]
|
12147
12147
|
];
|
12148
12148
|
N("hours", d(dr, "hours")), N("minutes", d(fr, "minutes")), N("seconds", d(_a, "seconds"));
|
12149
|
-
}, S = (
|
12149
|
+
}, S = (O, V) => {
|
12150
12150
|
if ((e.range || e.weekPicker) && !e.multiDates)
|
12151
|
-
return R(
|
12151
|
+
return R(O, V);
|
12152
12152
|
if (e.multiDates && V) {
|
12153
|
-
const d =
|
12153
|
+
const d = O[O.length - 1];
|
12154
12154
|
return z(d, V);
|
12155
12155
|
}
|
12156
|
-
}, g = (
|
12156
|
+
}, g = (O) => {
|
12157
12157
|
const V = i.value;
|
12158
|
-
S(V,
|
12159
|
-
}, H = (
|
12160
|
-
const d = ct(J(), { month: G.value(V), year: K.value(V) }), l =
|
12161
|
-
p(Qe(l), qe(l),
|
12162
|
-
}, ne = (
|
12163
|
-
for (let V =
|
12158
|
+
S(V, O), u.value.count && u.value.solo && f();
|
12159
|
+
}, H = (O, V) => {
|
12160
|
+
const d = ct(J(), { month: G.value(V), year: K.value(V) }), l = O < 0 ? cr(d, 1) : ba(d, 1);
|
12161
|
+
p(Qe(l), qe(l), O < 0, e.preventMinMaxNavigation) && (Z(V, Qe(l), qe(l)), u.value.count && !u.value.solo && ne(V), r());
|
12162
|
+
}, ne = (O) => {
|
12163
|
+
for (let V = O - 1; V >= 0; V--) {
|
12164
12164
|
const d = ba(ct(J(), { month: G.value(V + 1), year: K.value(V + 1) }), 1);
|
12165
12165
|
Z(V, Qe(d), qe(d));
|
12166
12166
|
}
|
12167
|
-
for (let V =
|
12167
|
+
for (let V = O + 1; V <= u.value.count - 1; V++) {
|
12168
12168
|
const d = cr(ct(J(), { month: G.value(V - 1), year: K.value(V - 1) }), 1);
|
12169
12169
|
Z(V, Qe(d), qe(d));
|
12170
12170
|
}
|
12171
12171
|
}, f = () => {
|
12172
12172
|
if (Array.isArray(i.value) && i.value.length === 2) {
|
12173
|
-
const
|
12173
|
+
const O = J(
|
12174
12174
|
J(i.value[1] ? i.value[1] : cr(i.value[0], 1))
|
12175
12175
|
), [V, d] = [Qe(i.value[0]), qe(i.value[0])], [l, q] = [Qe(i.value[1]), qe(i.value[1])];
|
12176
|
-
(V !== l || V === l && d !== q) && u.value.solo && Z(1, Qe(
|
12176
|
+
(V !== l || V === l && d !== q) && u.value.solo && Z(1, Qe(O), qe(O));
|
12177
12177
|
} else
|
12178
12178
|
i.value && !Array.isArray(i.value) && (Z(0, Qe(i.value), qe(i.value)), L(J()));
|
12179
12179
|
}, T = () => {
|
12180
12180
|
e.startDate && (Z(0, Qe(J(e.startDate)), qe(J(e.startDate))), u.value.count && ne(0));
|
12181
|
-
}, m = (
|
12182
|
-
e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -
|
12183
|
-
}, j = (
|
12184
|
-
e.monthChangeOnArrows && e.vertical === d && I(
|
12185
|
-
}, I = (
|
12186
|
-
H(
|
12187
|
-
}, b = (
|
12181
|
+
}, m = (O, V) => {
|
12182
|
+
e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -O.deltaY : O.deltaY, V);
|
12183
|
+
}, j = (O, V, d = !1) => {
|
12184
|
+
e.monthChangeOnArrows && e.vertical === d && I(O, V);
|
12185
|
+
}, I = (O, V) => {
|
12186
|
+
H(O === "right" ? -1 : 1, V);
|
12187
|
+
}, b = (O) => e.markers.find((V) => rt(Hs(O.value), Hs(V.date))), ee = (O, V) => {
|
12188
12188
|
switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
|
12189
12189
|
case "prepend":
|
12190
12190
|
return [!0, !1];
|
12191
12191
|
case "center":
|
12192
|
-
return [
|
12192
|
+
return [O == 0, !0];
|
12193
12193
|
case "fair":
|
12194
|
-
return [
|
12194
|
+
return [O == 0 || V > O, !0];
|
12195
12195
|
case "append":
|
12196
12196
|
return [!1, !1];
|
12197
12197
|
default:
|
12198
12198
|
return [!1, !1];
|
12199
12199
|
}
|
12200
|
-
}, ve = (
|
12201
|
-
if (e.sixWeeks &&
|
12202
|
-
const q = 6 -
|
12200
|
+
}, ve = (O, V, d, l) => {
|
12201
|
+
if (e.sixWeeks && O.length < 6) {
|
12202
|
+
const q = 6 - O.length, de = (V.getDay() + 7 - l) % 7, se = 6 - (d.getDay() + 7 - l) % 7, [De, We] = ee(de, se);
|
12203
12203
|
for (let nt = 1; nt <= q; nt++)
|
12204
12204
|
if (We ? !!(nt % 2) == De : De) {
|
12205
|
-
const Ke =
|
12206
|
-
|
12205
|
+
const Ke = O[0].days[0], Bt = F(wr(Ke.value, -7), Qe(V));
|
12206
|
+
O.unshift({ days: Bt });
|
12207
12207
|
} else {
|
12208
|
-
const Ke =
|
12209
|
-
|
12208
|
+
const Ke = O[O.length - 1], Bt = Ke.days[Ke.days.length - 1], kt = F(wr(Bt.value, 1), Qe(V));
|
12209
|
+
O.push({ days: kt });
|
12210
12210
|
}
|
12211
12211
|
}
|
12212
|
-
return
|
12213
|
-
}, F = (
|
12214
|
-
const d = J(
|
12212
|
+
return O;
|
12213
|
+
}, F = (O, V) => {
|
12214
|
+
const d = J(O), l = [];
|
12215
12215
|
for (let q = 0; q < 7; q++) {
|
12216
12216
|
const de = wr(d, q), se = Qe(de) !== V;
|
12217
12217
|
l.push({
|
@@ -12222,9 +12222,9 @@ const b0 = ({
|
|
12222
12222
|
});
|
12223
12223
|
}
|
12224
12224
|
return l;
|
12225
|
-
}, me = (
|
12226
|
-
const d = [], l = J(ur(new Date(V,
|
12227
|
-
const nt = F(We,
|
12225
|
+
}, me = (O, V) => {
|
12226
|
+
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) => {
|
12227
|
+
const nt = F(We, O);
|
12228
12228
|
if (d.push({ days: nt }), !d[d.length - 1].days.some(
|
12229
12229
|
(Ke) => rt(Kt(Ke.value), Kt(q))
|
12230
12230
|
)) {
|
@@ -12233,69 +12233,69 @@ const b0 = ({
|
|
12233
12233
|
}
|
12234
12234
|
};
|
12235
12235
|
return De(se), ve(d, l, q, de);
|
12236
|
-
}, le = (
|
12237
|
-
const V = Nr(J(
|
12236
|
+
}, le = (O) => (i.value = Pn(J(O.value), e.timezone, e.weekStart), Q()), xe = (O) => {
|
12237
|
+
const V = Nr(J(O.value), s.hours, s.minutes, jt());
|
12238
12238
|
e.multiDates ? So(V, i, e.multiDatesLimit) : i.value = V, a(), Rr().then(() => {
|
12239
12239
|
Q();
|
12240
12240
|
});
|
12241
|
-
}, Le = (
|
12241
|
+
}, Le = (O) => e.noDisabledRange ? tu(n.value[0], O).some((V) => v(V)) : !1, B = () => {
|
12242
12242
|
n.value = i.value ? i.value.slice() : [], n.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (n.value = []);
|
12243
|
-
}, ce = (
|
12244
|
-
const d = [J(
|
12245
|
-
h(d) && (V && Ue(
|
12246
|
-
}, Ue = (
|
12247
|
-
const V = Qe(J(
|
12243
|
+
}, ce = (O, V) => {
|
12244
|
+
const d = [J(O.value), wr(J(O.value), +e.autoRange)];
|
12245
|
+
h(d) && (V && Ue(O.value), n.value = d);
|
12246
|
+
}, Ue = (O) => {
|
12247
|
+
const V = Qe(J(O)), d = qe(J(O));
|
12248
12248
|
if (Z(0, V, d), u.value.count > 0)
|
12249
12249
|
for (let l = 1; l < u.value.count; l++) {
|
12250
12250
|
const q = n0(
|
12251
|
-
ct(J(
|
12251
|
+
ct(J(O), { year: G.value(l - 1), month: K.value(l - 1) })
|
12252
12252
|
);
|
12253
12253
|
Z(l, q.month, q.year);
|
12254
12254
|
}
|
12255
|
-
}, he = (
|
12256
|
-
Le(
|
12257
|
-
}, Vt = (
|
12255
|
+
}, 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) => {
|
12256
|
+
Le(O.value) || !D(O.value, i.value, e.fixedStart ? 0 : 1) || (n.value = he(J(O.value)));
|
12257
|
+
}, Vt = (O, V) => {
|
12258
12258
|
if (B(), e.autoRange)
|
12259
|
-
return ce(
|
12259
|
+
return ce(O, V);
|
12260
12260
|
if (e.fixedStart || e.fixedEnd)
|
12261
|
-
return Rt(
|
12262
|
-
n.value[0] ? D(J(
|
12263
|
-
}, jt = (
|
12264
|
-
n.value[
|
12265
|
-
n.value[
|
12266
|
-
s.hours[
|
12267
|
-
s.minutes[
|
12268
|
-
jt(
|
12261
|
+
return Rt(O);
|
12262
|
+
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]));
|
12263
|
+
}, jt = (O = !0) => e.enableSeconds ? Array.isArray(s.seconds) ? O ? s.seconds[0] : s.seconds[1] : s.seconds : 0, Vr = (O) => {
|
12264
|
+
n.value[O] = Nr(
|
12265
|
+
n.value[O],
|
12266
|
+
s.hours[O],
|
12267
|
+
s.minutes[O],
|
12268
|
+
jt(O !== 1)
|
12269
12269
|
);
|
12270
12270
|
}, Ca = () => {
|
12271
|
-
var
|
12272
|
-
n.value[0] && n.value[1] && +((
|
12271
|
+
var O, V;
|
12272
|
+
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]));
|
12273
12273
|
}, Pa = () => {
|
12274
12274
|
n.value.length && (n.value[0] && !n.value[1] ? Vr(0) : (Vr(0), Vr(1), a()), Ca(), i.value = n.value.slice(), Co(n.value, t, e.autoApply, e.modelAuto));
|
12275
|
-
}, Ma = (
|
12276
|
-
if (!(v(
|
12275
|
+
}, Ma = (O, V = !1) => {
|
12276
|
+
if (!(v(O.value) || !O.current && e.hideOffsetDates)) {
|
12277
12277
|
if (e.weekPicker)
|
12278
|
-
return le(
|
12278
|
+
return le(O);
|
12279
12279
|
if (!e.range)
|
12280
|
-
return xe(
|
12281
|
-
zs(s.hours) && zs(s.minutes) && !e.multiDates && (Vt(
|
12280
|
+
return xe(O);
|
12281
|
+
zs(s.hours) && zs(s.minutes) && !e.multiDates && (Vt(O, V), Pa());
|
12282
12282
|
}
|
12283
|
-
}, Oa = (
|
12283
|
+
}, Oa = (O, V) => {
|
12284
12284
|
var d;
|
12285
|
-
Z(
|
12285
|
+
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);
|
12286
12286
|
const l = (d = e.flow) != null && d.length ? e.flow[e.flowStep] : void 0;
|
12287
12287
|
!V.fromNav && (l === ir.month || l === ir.year) && a();
|
12288
|
-
}, $a = (
|
12289
|
-
Array.isArray(
|
12288
|
+
}, $a = (O, V) => {
|
12289
|
+
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));
|
12290
12290
|
}, Aa = () => {
|
12291
12291
|
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(), $();
|
12292
12292
|
}, ia = () => {
|
12293
12293
|
if (Array.isArray(i.value))
|
12294
12294
|
if (e.multiDates) {
|
12295
|
-
const
|
12296
|
-
i.value[i.value.length - 1] = A(
|
12295
|
+
const O = Ea();
|
12296
|
+
i.value[i.value.length - 1] = A(O);
|
12297
12297
|
} else
|
12298
|
-
i.value = i.value.map((
|
12298
|
+
i.value = i.value.map((O, V) => O && A(O, V));
|
12299
12299
|
else
|
12300
12300
|
i.value = A(i.value);
|
12301
12301
|
t("time-update");
|
@@ -12316,8 +12316,8 @@ const b0 = ({
|
|
12316
12316
|
updateMonthYear: Oa,
|
12317
12317
|
presetDate: $a,
|
12318
12318
|
selectCurrentDate: Aa,
|
12319
|
-
updateTime: (
|
12320
|
-
w(
|
12319
|
+
updateTime: (O, V = !0, d = !1) => {
|
12320
|
+
w(O, V, d, ia);
|
12321
12321
|
}
|
12322
12322
|
};
|
12323
12323
|
}, __ = { key: 0 }, b_ = /* @__PURE__ */ Xe({
|
@@ -12910,8 +12910,8 @@ const b0 = ({
|
|
12910
12910
|
}, Ea = (V, d) => {
|
12911
12911
|
var l;
|
12912
12912
|
(l = c.value) == null || l.switchView(V, d);
|
12913
|
-
},
|
12914
|
-
return O_(u, p, () =>
|
12913
|
+
}, O = (V) => a.onClickOutside ? a.onClickOutside(V) : $.value.onClickOutside ? $.value.onClickOutside(V) : jt();
|
12914
|
+
return O_(u, p, () => O(B)), t({
|
12915
12915
|
closeMenu: jt,
|
12916
12916
|
selectDate: ce,
|
12917
12917
|
clearValue: Le,
|
@@ -13059,38 +13059,38 @@ const E_ = { class: "rkts-chosen-date" }, N_ = /* @__PURE__ */ Xe({
|
|
13059
13059
|
]));
|
13060
13060
|
}
|
13061
13061
|
});
|
13062
|
-
const xa =
|
13063
|
-
type:
|
13064
|
-
as:
|
13065
|
-
title:
|
13066
|
-
category:
|
13062
|
+
const xa = M.boolean().or(M.function().returns(M.boolean())), R_ = M.object({
|
13063
|
+
type: M.literal("category"),
|
13064
|
+
as: M.enum(["checkboxs", "dropdown", "radio"]),
|
13065
|
+
title: M.string(),
|
13066
|
+
category: M.string().nonempty(),
|
13067
13067
|
collapsed: xa,
|
13068
13068
|
collapsable: xa
|
13069
|
-
}), I_ =
|
13070
|
-
type:
|
13071
|
-
as:
|
13072
|
-
title:
|
13069
|
+
}), I_ = M.object({
|
13070
|
+
type: M.literal("dates"),
|
13071
|
+
as: M.enum(["checkboxes", "dropdown", "calendar"]),
|
13072
|
+
title: M.string(),
|
13073
13073
|
collapsed: xa,
|
13074
13074
|
collapsable: xa
|
13075
|
-
}), U_ =
|
13076
|
-
type:
|
13077
|
-
as:
|
13078
|
-
title:
|
13079
|
-
location_type:
|
13075
|
+
}), U_ = M.object({
|
13076
|
+
type: M.literal("location"),
|
13077
|
+
as: M.enum(["checkboxs", "dropdown", "radio"]),
|
13078
|
+
title: M.string(),
|
13079
|
+
location_type: M.string().nonempty(),
|
13080
13080
|
collapsed: xa,
|
13081
13081
|
collapsable: xa
|
13082
13082
|
});
|
13083
|
-
|
13083
|
+
M.discriminatedUnion("type", [
|
13084
13084
|
R_,
|
13085
13085
|
I_,
|
13086
13086
|
U_
|
13087
13087
|
]);
|
13088
13088
|
const Q_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
13089
13089
|
__proto__: null
|
13090
|
-
}, Symbol.toStringTag, { value: "Module" })), Ft =
|
13091
|
-
ccy:
|
13092
|
-
q:
|
13093
|
-
qs:
|
13090
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = M.array(M.string().min(1)), qs = M.object({
|
13091
|
+
ccy: M.string().nonempty(),
|
13092
|
+
q: M.string().optional(),
|
13093
|
+
qs: M.string().optional(),
|
13094
13094
|
c0: Ft.optional(),
|
13095
13095
|
c1: Ft.optional(),
|
13096
13096
|
c2: Ft.optional(),
|
@@ -13101,120 +13101,121 @@ const Q_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13101
13101
|
c7: Ft.optional(),
|
13102
13102
|
c8: Ft.optional(),
|
13103
13103
|
c9: Ft.optional(),
|
13104
|
-
l:
|
13105
|
-
fh:
|
13106
|
-
fd:
|
13104
|
+
l: M.record(M.string(), Ft).optional(),
|
13105
|
+
fh: M.record(M.string(), M.union([M.string(), M.number(), M.boolean(), M.null(), Ft])).optional(),
|
13106
|
+
fd: M.record(M.string(), M.union([M.string(), M.number(), M.boolean(), M.null(), Ft])).optional(),
|
13107
13107
|
s: Ft.optional(),
|
13108
|
-
i:
|
13109
|
-
o:
|
13110
|
-
pi:
|
13111
|
-
pf:
|
13112
|
-
pt:
|
13113
|
-
df:
|
13114
|
-
dt:
|
13115
|
-
j:
|
13116
|
-
}).refine((e) => !(e.q && e.qs), { message: "`q` and `qs` are mutually exclusive", path: ["q", "qs"] }), Y_ =
|
13117
|
-
name:
|
13118
|
-
code:
|
13119
|
-
description:
|
13120
|
-
published:
|
13121
|
-
type:
|
13122
|
-
duration:
|
13123
|
-
ordering:
|
13124
|
-
categories:
|
13125
|
-
locations:
|
13126
|
-
custom_fields:
|
13127
|
-
images:
|
13128
|
-
}).required().passthrough(), V_ =
|
13129
|
-
_id:
|
13130
|
-
_score:
|
13131
|
-
_routing:
|
13132
|
-
_source:
|
13133
|
-
type:
|
13134
|
-
name:
|
13135
|
-
code:
|
13136
|
-
published:
|
13137
|
-
duration:
|
13138
|
-
kind:
|
13139
|
-
dates:
|
13140
|
-
lte:
|
13141
|
-
gte:
|
13108
|
+
i: M.coerce.number().min(1).max(200).optional(),
|
13109
|
+
o: M.coerce.number().min(0).optional(),
|
13110
|
+
pi: M.coerce.number().min(1).optional(),
|
13111
|
+
pf: M.coerce.number().min(0).optional(),
|
13112
|
+
pt: M.coerce.number().min(0).optional(),
|
13113
|
+
df: M.string().or(M.date()).optional(),
|
13114
|
+
dt: M.string().or(M.date()).optional(),
|
13115
|
+
j: M.literal("a").or(M.literal("d")).optional()
|
13116
|
+
}).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({
|
13117
|
+
name: M.string(),
|
13118
|
+
code: M.string(),
|
13119
|
+
description: M.string(),
|
13120
|
+
published: M.boolean(),
|
13121
|
+
type: M.literal("holiday"),
|
13122
|
+
duration: M.array(M.number().int().nonnegative()),
|
13123
|
+
ordering: M.number().int().positive(),
|
13124
|
+
categories: M.record(M.array(M.string())),
|
13125
|
+
locations: M.record(M.array(M.string())).or(M.array(M.undefined())),
|
13126
|
+
custom_fields: M.record(Y_),
|
13127
|
+
images: M.array(M.any())
|
13128
|
+
}).required().passthrough(), V_ = M.object({
|
13129
|
+
_id: M.string(),
|
13130
|
+
_score: M.number().nonnegative(),
|
13131
|
+
_routing: M.string(),
|
13132
|
+
_source: M.object({
|
13133
|
+
type: M.literal("departure"),
|
13134
|
+
name: M.string(),
|
13135
|
+
code: M.string(),
|
13136
|
+
published: M.boolean(),
|
13137
|
+
duration: M.number().int().nonnegative(),
|
13138
|
+
kind: M.enum(["fixed", "fixed_duration", "flexible"]),
|
13139
|
+
dates: M.object({
|
13140
|
+
lte: M.coerce.date(),
|
13141
|
+
gte: M.coerce.date()
|
13142
13142
|
}),
|
13143
|
-
lead_prices:
|
13143
|
+
lead_prices: M.record(M.array(M.coerce.number()))
|
13144
13144
|
}).passthrough()
|
13145
|
-
}).required(), j_ =
|
13146
|
-
_id:
|
13147
|
-
_score:
|
13148
|
-
_routing:
|
13145
|
+
}).required(), j_ = M.object({
|
13146
|
+
_id: M.string(),
|
13147
|
+
_score: M.number().nonnegative(),
|
13148
|
+
_routing: M.string(),
|
13149
13149
|
_source: L_,
|
13150
|
-
inner_hits:
|
13151
|
-
departure:
|
13152
|
-
hits:
|
13153
|
-
total:
|
13154
|
-
value:
|
13155
|
-
relation:
|
13150
|
+
inner_hits: M.object({
|
13151
|
+
departure: M.object({
|
13152
|
+
hits: M.object({
|
13153
|
+
total: M.object({
|
13154
|
+
value: M.number().int().nonnegative(),
|
13155
|
+
relation: M.string()
|
13156
13156
|
}),
|
13157
|
-
max_score:
|
13158
|
-
hits:
|
13157
|
+
max_score: M.number().nonnegative().nullable(),
|
13158
|
+
hits: M.array(V_)
|
13159
13159
|
}).required()
|
13160
13160
|
}).required()
|
13161
13161
|
}),
|
13162
|
-
calculated:
|
13163
|
-
lead_price:
|
13164
|
-
months_of_operation:
|
13162
|
+
calculated: M.object({
|
13163
|
+
lead_price: M.array(M.coerce.number()),
|
13164
|
+
months_of_operation: M.array(M.number().int().min(1).max(12)),
|
13165
|
+
leading_pricing: M.record(M.string(), M.coerce.number())
|
13165
13166
|
}).required()
|
13166
|
-
}).required(), H_ =
|
13167
|
-
departures:
|
13168
|
-
doc_count:
|
13169
|
-
matching:
|
13170
|
-
doc_count:
|
13171
|
-
price_stats:
|
13172
|
-
count:
|
13173
|
-
min:
|
13174
|
-
max:
|
13175
|
-
avg:
|
13176
|
-
sum:
|
13167
|
+
}).required(), H_ = M.object({
|
13168
|
+
departures: M.object({
|
13169
|
+
doc_count: M.number().int().nonnegative(),
|
13170
|
+
matching: M.object({
|
13171
|
+
doc_count: M.number().int().nonnegative(),
|
13172
|
+
price_stats: M.object({
|
13173
|
+
count: M.number().int().nonnegative().nullable(),
|
13174
|
+
min: M.number().nullable(),
|
13175
|
+
max: M.number().nullable(),
|
13176
|
+
avg: M.number().nullable(),
|
13177
|
+
sum: M.number().nullable()
|
13177
13178
|
}).required(),
|
13178
|
-
price_histogram:
|
13179
|
-
buckets:
|
13180
|
-
key:
|
13181
|
-
doc_count:
|
13179
|
+
price_histogram: M.object({
|
13180
|
+
buckets: M.array(M.object({
|
13181
|
+
key: M.number().nonnegative(),
|
13182
|
+
doc_count: M.number().int().nonnegative()
|
13182
13183
|
}).required())
|
13183
13184
|
}),
|
13184
|
-
date_histogram:
|
13185
|
-
buckets:
|
13186
|
-
key:
|
13187
|
-
key_as_string:
|
13188
|
-
doc_count:
|
13185
|
+
date_histogram: M.object({
|
13186
|
+
buckets: M.array(M.object({
|
13187
|
+
key: M.number().int().nonnegative(),
|
13188
|
+
key_as_string: M.coerce.date(),
|
13189
|
+
doc_count: M.number().int().nonnegative()
|
13189
13190
|
}).required())
|
13190
13191
|
})
|
13191
13192
|
})
|
13192
13193
|
})
|
13193
|
-
}).required().passthrough(), F_ =
|
13194
|
-
took:
|
13195
|
-
timed_out:
|
13196
|
-
hits:
|
13197
|
-
total:
|
13198
|
-
value:
|
13199
|
-
relation:
|
13194
|
+
}).required().passthrough(), F_ = M.object({
|
13195
|
+
took: M.number().int().nonnegative(),
|
13196
|
+
timed_out: M.boolean(),
|
13197
|
+
hits: M.object({
|
13198
|
+
total: M.object({
|
13199
|
+
value: M.number().int().nonnegative(),
|
13200
|
+
relation: M.string()
|
13200
13201
|
}),
|
13201
|
-
max_score:
|
13202
|
-
hits:
|
13202
|
+
max_score: M.number().nonnegative().nullable(),
|
13203
|
+
hits: M.array(j_)
|
13203
13204
|
}).required(),
|
13204
13205
|
aggregations: H_
|
13205
|
-
}).required(), B_ =
|
13206
|
-
text:
|
13207
|
-
_index:
|
13208
|
-
_id:
|
13209
|
-
_score:
|
13210
|
-
}).required(), W_ =
|
13211
|
-
text:
|
13212
|
-
offset:
|
13213
|
-
length:
|
13214
|
-
options:
|
13215
|
-
}).required(), z_ =
|
13216
|
-
const Gs = "https://api.tours.rezkit.app", Z_ =
|
13217
|
-
host:
|
13206
|
+
}).required(), B_ = M.object({
|
13207
|
+
text: M.string().nonempty(),
|
13208
|
+
_index: M.string(),
|
13209
|
+
_id: M.string(),
|
13210
|
+
_score: M.number().nonnegative()
|
13211
|
+
}).required(), W_ = M.object({
|
13212
|
+
text: M.string().nonempty(),
|
13213
|
+
offset: M.number().int().nonnegative(),
|
13214
|
+
length: M.number().int().nonnegative(),
|
13215
|
+
options: M.array(B_)
|
13216
|
+
}).required(), z_ = M.record(M.array(W_));
|
13217
|
+
const Gs = "https://api.tours.rezkit.app", Z_ = M.object({
|
13218
|
+
host: M.string().url()
|
13218
13219
|
}).partial();
|
13219
13220
|
class q_ {
|
13220
13221
|
constructor(t, r) {
|