@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.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 O = /* @__PURE__ */ Object.freeze({
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 M(d, l) {
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: M };
4904
- r.create = M, r.cssClasses = T, r.default = V, Object.defineProperty(r, "__esModule", { value: !0 });
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
- () => (M) => o.value[M] ? o.value[M].month : 0
12113
+ () => (O) => o.value[O] ? o.value[O].month : 0
12114
12114
  ), K = te(
12115
- () => (M) => o.value[M] ? o.value[M].year : 0
12116
- ), Z = (M, V, d) => {
12115
+ () => (O) => o.value[O] ? o.value[O].year : 0
12116
+ ), Z = (O, V, d) => {
12117
12117
  var l, q;
12118
- o.value[M] || (o.value[M] = { month: 0, year: 0 }), o.value[M].month = js(V) ? (l = o.value[M]) == null ? void 0 : l.month : V, o.value[M].year = js(d) ? (q = o.value[M]) == null ? void 0 : q.year : d;
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, (M, V) => {
12123
- JSON.stringify(M) !== JSON.stringify(V) && _();
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 M;
12129
- return (M = e.flow) != null && M.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
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
- }, _ = (M = !1) => {
12132
+ }, _ = (O = !1) => {
12133
12133
  if (i.value)
12134
- return Array.isArray(i.value) ? (n.value = i.value, g(M)) : z(i.value, M);
12135
- if (u.value.count && M && !e.startDate)
12136
- return L(J(), M);
12137
- }, L = (M, V = !1) => {
12138
- if ((!u.value.count || !u.value.static || V) && Z(0, Qe(M), qe(M)), u.value.count)
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 = (M, V) => {
12144
- L(M), N("hours", dr(M)), N("minutes", fr(M)), N("seconds", _a(M)), u.value.count && V && f();
12145
- }, P = (M) => {
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(M[0]), d = Qe(M[1]);
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 = (M, V) => {
12154
- M[1] && e.showLastInRange ? L(M[P(M)], V) : L(M[0], V);
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(M[0]),
12157
- M[1] ? l(M[1]) : s[q][1]
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 = (M, V) => {
12160
+ }, S = (O, V) => {
12161
12161
  if ((e.range || e.weekPicker) && !e.multiDates)
12162
- return R(M, V);
12162
+ return R(O, V);
12163
12163
  if (e.multiDates && V) {
12164
- const d = M[M.length - 1];
12164
+ const d = O[O.length - 1];
12165
12165
  return z(d, V);
12166
12166
  }
12167
- }, g = (M) => {
12167
+ }, g = (O) => {
12168
12168
  const V = i.value;
12169
- S(V, M), u.value.count && u.value.solo && f();
12170
- }, H = (M, V) => {
12171
- const d = ct(J(), { month: G.value(V), year: K.value(V) }), l = M < 0 ? cr(d, 1) : ba(d, 1);
12172
- p(Qe(l), qe(l), M < 0, e.preventMinMaxNavigation) && (Z(V, Qe(l), qe(l)), u.value.count && !u.value.solo && ne(V), r());
12173
- }, ne = (M) => {
12174
- for (let V = M - 1; V >= 0; 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 = M + 1; V <= u.value.count - 1; 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 M = J(
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(M), qe(M));
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 = (M, V) => {
12193
- e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -M.deltaY : M.deltaY, V);
12194
- }, j = (M, V, d = !1) => {
12195
- e.monthChangeOnArrows && e.vertical === d && I(M, V);
12196
- }, I = (M, V) => {
12197
- H(M === "right" ? -1 : 1, V);
12198
- }, b = (M) => e.markers.find((V) => rt(Fs(M.value), Fs(V.date))), ee = (M, V) => {
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 [M == 0, !0];
12203
+ return [O == 0, !0];
12204
12204
  case "fair":
12205
- return [M == 0 || V > M, !0];
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 = (M, V, d, l) => {
12212
- if (e.sixWeeks && M.length < 6) {
12213
- const q = 6 - M.length, de = (V.getDay() + 7 - l) % 7, se = 6 - (d.getDay() + 7 - l) % 7, [De, We] = ee(de, se);
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 = M[0].days[0], Bt = F(wr(Ke.value, -7), Qe(V));
12217
- M.unshift({ days: Bt });
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 = M[M.length - 1], Bt = Ke.days[Ke.days.length - 1], kt = F(wr(Bt.value, 1), Qe(V));
12220
- M.push({ days: kt });
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 M;
12224
- }, F = (M, V) => {
12225
- const d = J(M), l = [];
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 = (M, V) => {
12237
- const d = [], l = J(ur(new Date(V, M), e.timezone)), q = J(ur(new Date(V, M + 1, 0), e.timezone)), de = e.weekStart, se = ra(l, { weekStartsOn: de }), De = (We) => {
12238
- const nt = F(We, M);
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 = (M) => (i.value = Pn(J(M.value), e.timezone, e.weekStart), Q()), xe = (M) => {
12248
- const V = Nr(J(M.value), s.hours, s.minutes, jt());
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 = (M) => e.noDisabledRange ? ru(n.value[0], M).some((V) => v(V)) : !1, B = () => {
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 = (M, V) => {
12255
- const d = [J(M.value), wr(J(M.value), +e.autoRange)];
12256
- h(d) && (V && Ue(M.value), n.value = d);
12257
- }, Ue = (M) => {
12258
- const V = Qe(J(M)), d = qe(J(M));
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(M), { year: G.value(l - 1), month: K.value(l - 1) })
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 = (M) => Array.isArray(i.value) && i.value.length === 2 ? e.fixedStart && (Et(M, i.value[0]) || rt(M, i.value[0])) ? [i.value[0], M] : e.fixedEnd && (Ot(M, i.value[1]) || rt(M, i.value[1])) ? [M, i.value[1]] : (t("invalid-fixed-range", M), i.value) : [], Rt = (M) => {
12267
- Le(M.value) || !D(M.value, i.value, e.fixedStart ? 0 : 1) || (n.value = he(J(M.value)));
12268
- }, Vt = (M, V) => {
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(M, V);
12270
+ return ce(O, V);
12271
12271
  if (e.fixedStart || e.fixedEnd)
12272
- return Rt(M);
12273
- n.value[0] ? D(J(M.value), i.value) && !Le(M.value) && (Ot(J(M.value), J(n.value[0])) ? (n.value.unshift(J(M.value)), t("range-end", n.value[0])) : (n.value[1] = J(M.value), t("range-end", n.value[1]))) : (n.value[0] = J(M.value), t("range-start", n.value[0]));
12274
- }, jt = (M = !0) => e.enableSeconds ? Array.isArray(s.seconds) ? M ? s.seconds[0] : s.seconds[1] : s.seconds : 0, Vr = (M) => {
12275
- n.value[M] = Nr(
12276
- n.value[M],
12277
- s.hours[M],
12278
- s.minutes[M],
12279
- jt(M !== 1)
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 M, V;
12283
- n.value[0] && n.value[1] && +((M = n.value) == null ? void 0 : M[0]) > +((V = n.value) == null ? void 0 : V[1]) && (n.value.reverse(), t("range-start", n.value[0]), t("range-end", 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 = (M, V = !1) => {
12287
- if (!(v(M.value) || !M.current && e.hideOffsetDates)) {
12286
+ }, Ma = (O, V = !1) => {
12287
+ if (!(v(O.value) || !O.current && e.hideOffsetDates)) {
12288
12288
  if (e.weekPicker)
12289
- return le(M);
12289
+ return le(O);
12290
12290
  if (!e.range)
12291
- return xe(M);
12292
- Zs(s.hours) && Zs(s.minutes) && !e.multiDates && (Vt(M, V), Pa());
12291
+ return xe(O);
12292
+ Zs(s.hours) && Zs(s.minutes) && !e.multiDates && (Vt(O, V), Pa());
12293
12293
  }
12294
- }, Oa = (M, V) => {
12294
+ }, Oa = (O, V) => {
12295
12295
  var d;
12296
- Z(M, V.month, V.year), u.value.count && !u.value.solo && ne(M), t("update-month-year", { instance: M, month: V.month, year: V.year }), r(u.value.solo ? M : void 0);
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 = (M, V) => {
12300
- Array.isArray(M) && M.length <= 2 && e.range ? i.value = M.map((d) => ur(J(d), V ? void 0 : e.timezone)) : Array.isArray(M) || (i.value = ur(J(M), V ? void 0 : e.timezone)), $(), e.multiCalendars && Rr().then(() => _(!0));
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 M = Ea();
12307
- i.value[i.value.length - 1] = A(M);
12306
+ const O = Ea();
12307
+ i.value[i.value.length - 1] = A(O);
12308
12308
  } else
12309
- i.value = i.value.map((M, V) => M && A(M, V));
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: (M, V = !0, d = !1) => {
12331
- w(M, V, d, ia);
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
- }, M = (V) => a.onClickOutside ? a.onClickOutside(V) : $.value.onClickOutside ? $.value.onClickOutside(V) : jt();
12925
- return O_(u, p, () => M(B)), t({
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 = O.boolean().or(O.function().returns(O.boolean())), R_ = O.object({
13074
- type: O.literal("category"),
13075
- as: O.enum(["checkboxs", "dropdown", "radio"]),
13076
- title: O.string(),
13077
- category: O.string().nonempty(),
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_ = O.object({
13081
- type: O.literal("dates"),
13082
- as: O.enum(["checkboxes", "dropdown", "calendar"]),
13083
- title: O.string(),
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_ = O.object({
13087
- type: O.literal("location"),
13088
- as: O.enum(["checkboxs", "dropdown", "radio"]),
13089
- title: O.string(),
13090
- location_type: O.string().nonempty(),
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
- O.discriminatedUnion("type", [
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 = O.array(O.string().min(1)), Gs = O.object({
13102
- ccy: O.string().nonempty(),
13103
- q: O.string().optional(),
13104
- qs: O.string().optional(),
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: O.record(O.string(), Ft).optional(),
13116
- fh: O.record(O.string(), O.union([O.string(), O.number(), O.boolean(), O.null(), Ft])).optional(),
13117
- fd: O.record(O.string(), O.union([O.string(), O.number(), O.boolean(), O.null(), Ft])).optional(),
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: O.coerce.number().min(1).max(200).optional(),
13120
- o: O.coerce.number().min(0).optional(),
13121
- pi: O.coerce.number().min(1).optional(),
13122
- pf: O.coerce.number().min(0).optional(),
13123
- pt: O.coerce.number().min(0).optional(),
13124
- df: O.string().or(O.date()).optional(),
13125
- dt: O.string().or(O.date()).optional(),
13126
- j: O.literal("a").or(O.literal("d")).optional()
13127
- }).refine((e) => !(e.q && e.qs), { message: "`q` and `qs` are mutually exclusive", path: ["q", "qs"] }), Y_ = O.union([O.string(), O.number(), O.boolean(), O.array(O.string())]), L_ = O.object({
13128
- name: O.string(),
13129
- code: O.string(),
13130
- description: O.string(),
13131
- published: O.boolean(),
13132
- type: O.literal("holiday"),
13133
- duration: O.array(O.number().int().nonnegative()),
13134
- ordering: O.number().int().positive(),
13135
- categories: O.record(O.array(O.string())),
13136
- locations: O.record(O.array(O.string())).or(O.array(O.undefined())),
13137
- custom_fields: O.record(Y_),
13138
- images: O.array(O.any())
13139
- }).required().passthrough(), V_ = O.object({
13140
- _id: O.string(),
13141
- _score: O.number().nonnegative(),
13142
- _routing: O.string(),
13143
- _source: O.object({
13144
- type: O.literal("departure"),
13145
- name: O.string(),
13146
- code: O.string(),
13147
- published: O.boolean(),
13148
- duration: O.number().int().nonnegative(),
13149
- kind: O.enum(["fixed", "fixed_duration", "flexible"]),
13150
- dates: O.object({
13151
- lte: O.coerce.date(),
13152
- gte: O.coerce.date()
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: O.record(O.array(O.coerce.number()))
13157
+ lead_prices: M.record(M.array(M.coerce.number()))
13155
13158
  }).passthrough()
13156
- }).required(), j_ = O.object({
13157
- _id: O.string(),
13158
- _score: O.number().nonnegative(),
13159
- _routing: O.string(),
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: O.object({
13162
- departure: O.object({
13163
- hits: O.object({
13164
- total: O.object({
13165
- value: O.number().int().nonnegative(),
13166
- relation: O.string()
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: O.number().nonnegative().nullable(),
13169
- hits: O.array(V_)
13171
+ max_score: M.number().nonnegative().nullable(),
13172
+ hits: M.array(V_)
13170
13173
  }).required()
13171
13174
  }).required()
13172
13175
  }),
13173
- calculated: O.object({
13174
- lead_price: O.array(O.coerce.number()),
13175
- months_of_operation: O.array(O.number().int().min(1).max(12))
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_ = O.object({
13178
- departures: O.object({
13179
- doc_count: O.number().int().nonnegative(),
13180
- matching: O.object({
13181
- doc_count: O.number().int().nonnegative(),
13182
- price_stats: O.object({
13183
- count: O.number().int().nonnegative().nullable(),
13184
- min: O.number().nullable(),
13185
- max: O.number().nullable(),
13186
- avg: O.number().nullable(),
13187
- sum: O.number().nullable()
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: O.object({
13190
- buckets: O.array(O.object({
13191
- key: O.number().nonnegative(),
13192
- doc_count: O.number().int().nonnegative()
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: O.object({
13196
- buckets: O.array(O.object({
13197
- key: O.number().int().nonnegative(),
13198
- key_as_string: O.coerce.date(),
13199
- doc_count: O.number().int().nonnegative()
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_ = O.object({
13205
- took: O.number().int().nonnegative(),
13206
- timed_out: O.boolean(),
13207
- hits: O.object({
13208
- total: O.object({
13209
- value: O.number().int().nonnegative(),
13210
- relation: O.string()
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: O.number().nonnegative().nullable(),
13213
- hits: O.array(j_)
13216
+ max_score: M.number().nonnegative().nullable(),
13217
+ hits: M.array(j_)
13214
13218
  }).required(),
13215
13219
  aggregations: H_
13216
- }).required(), B_ = O.object({
13217
- text: O.string().nonempty(),
13218
- _index: O.string(),
13219
- _id: O.string(),
13220
- _score: O.number().nonnegative()
13221
- }).required(), W_ = O.object({
13222
- text: O.string().nonempty(),
13223
- offset: O.number().int().nonnegative(),
13224
- length: O.number().int().nonnegative(),
13225
- options: O.array(B_)
13226
- }).required(), z_ = O.record(O.array(W_));
13227
- const Ks = "https://api.tours.rezkit.app", Z_ = O.object({
13228
- host: O.string().url()
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) {