@rezkit/toursui 0.2.10 → 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.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 O = /* @__PURE__ */ Object.freeze({
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 M(d, l) {
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: M };
4893
- r.create = M, r.cssClasses = T, r.default = V, Object.defineProperty(r, "__esModule", { value: !0 });
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
- () => (M) => o.value[M] ? o.value[M].month : 0
12102
+ () => (O) => o.value[O] ? o.value[O].month : 0
12103
12103
  ), K = te(
12104
- () => (M) => o.value[M] ? o.value[M].year : 0
12105
- ), Z = (M, V, d) => {
12104
+ () => (O) => o.value[O] ? o.value[O].year : 0
12105
+ ), Z = (O, V, d) => {
12106
12106
  var l, q;
12107
- o.value[M] || (o.value[M] = { month: 0, year: 0 }), o.value[M].month = Vs(V) ? (l = o.value[M]) == null ? void 0 : l.month : V, o.value[M].year = Vs(d) ? (q = o.value[M]) == null ? void 0 : q.year : d;
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, (M, V) => {
12112
- JSON.stringify(M) !== JSON.stringify(V) && _();
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 M;
12118
- return (M = e.flow) != null && M.length && !e.partialFlow ? e.flowStep === e.flow.length : !0;
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
- }, _ = (M = !1) => {
12121
+ }, _ = (O = !1) => {
12122
12122
  if (i.value)
12123
- return Array.isArray(i.value) ? (n.value = i.value, g(M)) : z(i.value, M);
12124
- if (u.value.count && M && !e.startDate)
12125
- return L(J(), M);
12126
- }, L = (M, V = !1) => {
12127
- if ((!u.value.count || !u.value.static || V) && Z(0, Qe(M), qe(M)), u.value.count)
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 = (M, V) => {
12133
- L(M), N("hours", dr(M)), N("minutes", fr(M)), N("seconds", _a(M)), u.value.count && V && f();
12134
- }, P = (M) => {
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(M[0]), d = Qe(M[1]);
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 = (M, V) => {
12143
- M[1] && e.showLastInRange ? L(M[P(M)], V) : L(M[0], V);
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(M[0]),
12146
- M[1] ? l(M[1]) : s[q][1]
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 = (M, V) => {
12149
+ }, S = (O, V) => {
12150
12150
  if ((e.range || e.weekPicker) && !e.multiDates)
12151
- return R(M, V);
12151
+ return R(O, V);
12152
12152
  if (e.multiDates && V) {
12153
- const d = M[M.length - 1];
12153
+ const d = O[O.length - 1];
12154
12154
  return z(d, V);
12155
12155
  }
12156
- }, g = (M) => {
12156
+ }, g = (O) => {
12157
12157
  const V = i.value;
12158
- S(V, M), u.value.count && u.value.solo && f();
12159
- }, H = (M, V) => {
12160
- const d = ct(J(), { month: G.value(V), year: K.value(V) }), l = M < 0 ? cr(d, 1) : ba(d, 1);
12161
- p(Qe(l), qe(l), M < 0, e.preventMinMaxNavigation) && (Z(V, Qe(l), qe(l)), u.value.count && !u.value.solo && ne(V), r());
12162
- }, ne = (M) => {
12163
- for (let V = M - 1; V >= 0; 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 = M + 1; V <= u.value.count - 1; 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 M = J(
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(M), qe(M));
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 = (M, V) => {
12182
- e.monthChangeOnScroll && H(e.monthChangeOnScroll !== "inverse" ? -M.deltaY : M.deltaY, V);
12183
- }, j = (M, V, d = !1) => {
12184
- e.monthChangeOnArrows && e.vertical === d && I(M, V);
12185
- }, I = (M, V) => {
12186
- H(M === "right" ? -1 : 1, V);
12187
- }, b = (M) => e.markers.find((V) => rt(Hs(M.value), Hs(V.date))), ee = (M, V) => {
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 [M == 0, !0];
12192
+ return [O == 0, !0];
12193
12193
  case "fair":
12194
- return [M == 0 || V > M, !0];
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 = (M, V, d, l) => {
12201
- if (e.sixWeeks && M.length < 6) {
12202
- const q = 6 - M.length, de = (V.getDay() + 7 - l) % 7, se = 6 - (d.getDay() + 7 - l) % 7, [De, We] = ee(de, se);
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 = M[0].days[0], Bt = F(wr(Ke.value, -7), Qe(V));
12206
- M.unshift({ days: Bt });
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 = M[M.length - 1], Bt = Ke.days[Ke.days.length - 1], kt = F(wr(Bt.value, 1), Qe(V));
12209
- M.push({ days: kt });
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 M;
12213
- }, F = (M, V) => {
12214
- const d = J(M), l = [];
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 = (M, V) => {
12226
- 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) => {
12227
- const nt = F(We, M);
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 = (M) => (i.value = Pn(J(M.value), e.timezone, e.weekStart), Q()), xe = (M) => {
12237
- const V = Nr(J(M.value), s.hours, s.minutes, jt());
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 = (M) => e.noDisabledRange ? tu(n.value[0], M).some((V) => v(V)) : !1, B = () => {
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 = (M, V) => {
12244
- const d = [J(M.value), wr(J(M.value), +e.autoRange)];
12245
- h(d) && (V && Ue(M.value), n.value = d);
12246
- }, Ue = (M) => {
12247
- const V = Qe(J(M)), d = qe(J(M));
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(M), { year: G.value(l - 1), month: K.value(l - 1) })
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 = (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) => {
12256
- Le(M.value) || !D(M.value, i.value, e.fixedStart ? 0 : 1) || (n.value = he(J(M.value)));
12257
- }, Vt = (M, V) => {
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(M, V);
12259
+ return ce(O, V);
12260
12260
  if (e.fixedStart || e.fixedEnd)
12261
- return Rt(M);
12262
- 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]));
12263
- }, jt = (M = !0) => e.enableSeconds ? Array.isArray(s.seconds) ? M ? s.seconds[0] : s.seconds[1] : s.seconds : 0, Vr = (M) => {
12264
- n.value[M] = Nr(
12265
- n.value[M],
12266
- s.hours[M],
12267
- s.minutes[M],
12268
- jt(M !== 1)
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 M, V;
12272
- 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]));
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 = (M, V = !1) => {
12276
- if (!(v(M.value) || !M.current && e.hideOffsetDates)) {
12275
+ }, Ma = (O, V = !1) => {
12276
+ if (!(v(O.value) || !O.current && e.hideOffsetDates)) {
12277
12277
  if (e.weekPicker)
12278
- return le(M);
12278
+ return le(O);
12279
12279
  if (!e.range)
12280
- return xe(M);
12281
- zs(s.hours) && zs(s.minutes) && !e.multiDates && (Vt(M, V), Pa());
12280
+ return xe(O);
12281
+ zs(s.hours) && zs(s.minutes) && !e.multiDates && (Vt(O, V), Pa());
12282
12282
  }
12283
- }, Oa = (M, V) => {
12283
+ }, Oa = (O, V) => {
12284
12284
  var d;
12285
- 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);
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 = (M, V) => {
12289
- 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));
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 M = Ea();
12296
- i.value[i.value.length - 1] = A(M);
12295
+ const O = Ea();
12296
+ i.value[i.value.length - 1] = A(O);
12297
12297
  } else
12298
- i.value = i.value.map((M, V) => M && A(M, V));
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: (M, V = !0, d = !1) => {
12320
- w(M, V, d, ia);
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
- }, M = (V) => a.onClickOutside ? a.onClickOutside(V) : $.value.onClickOutside ? $.value.onClickOutside(V) : jt();
12914
- return O_(u, p, () => M(B)), t({
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 = O.boolean().or(O.function().returns(O.boolean())), R_ = O.object({
13063
- type: O.literal("category"),
13064
- as: O.enum(["checkboxs", "dropdown", "radio"]),
13065
- title: O.string(),
13066
- category: O.string().nonempty(),
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_ = O.object({
13070
- type: O.literal("dates"),
13071
- as: O.enum(["checkboxes", "dropdown", "calendar"]),
13072
- title: O.string(),
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_ = O.object({
13076
- type: O.literal("location"),
13077
- as: O.enum(["checkboxs", "dropdown", "radio"]),
13078
- title: O.string(),
13079
- location_type: O.string().nonempty(),
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
- O.discriminatedUnion("type", [
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 = O.array(O.string().min(1)), qs = O.object({
13091
- ccy: O.string().nonempty(),
13092
- q: O.string().optional(),
13093
- qs: O.string().optional(),
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: O.record(O.string(), Ft).optional(),
13105
- fh: O.record(O.string(), O.union([O.string(), O.number(), O.boolean(), O.null(), Ft])).optional(),
13106
- fd: O.record(O.string(), O.union([O.string(), O.number(), O.boolean(), O.null(), Ft])).optional(),
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: O.coerce.number().min(1).max(200).optional(),
13109
- o: O.coerce.number().min(0).optional(),
13110
- pi: O.coerce.number().min(1).optional(),
13111
- pf: O.coerce.number().min(0).optional(),
13112
- pt: O.coerce.number().min(0).optional(),
13113
- df: O.string().or(O.date()).optional(),
13114
- dt: O.string().or(O.date()).optional(),
13115
- j: O.literal("a").or(O.literal("d")).optional()
13116
- }).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()), O.null()]), L_ = O.object({
13117
- name: O.string(),
13118
- code: O.string(),
13119
- description: O.string(),
13120
- published: O.boolean(),
13121
- type: O.literal("holiday"),
13122
- duration: O.array(O.number().int().nonnegative()),
13123
- ordering: O.number().int().positive(),
13124
- categories: O.record(O.array(O.string())),
13125
- locations: O.record(O.array(O.string())).or(O.array(O.undefined())),
13126
- custom_fields: O.record(Y_),
13127
- images: O.array(O.any())
13128
- }).required().passthrough(), V_ = O.object({
13129
- _id: O.string(),
13130
- _score: O.number().nonnegative(),
13131
- _routing: O.string(),
13132
- _source: O.object({
13133
- type: O.literal("departure"),
13134
- name: O.string(),
13135
- code: O.string(),
13136
- published: O.boolean(),
13137
- duration: O.number().int().nonnegative(),
13138
- kind: O.enum(["fixed", "fixed_duration", "flexible"]),
13139
- dates: O.object({
13140
- lte: O.coerce.date(),
13141
- gte: O.coerce.date()
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: O.record(O.array(O.coerce.number()))
13143
+ lead_prices: M.record(M.array(M.coerce.number()))
13144
13144
  }).passthrough()
13145
- }).required(), j_ = O.object({
13146
- _id: O.string(),
13147
- _score: O.number().nonnegative(),
13148
- _routing: O.string(),
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: O.object({
13151
- departure: O.object({
13152
- hits: O.object({
13153
- total: O.object({
13154
- value: O.number().int().nonnegative(),
13155
- relation: O.string()
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: O.number().nonnegative().nullable(),
13158
- hits: O.array(V_)
13157
+ max_score: M.number().nonnegative().nullable(),
13158
+ hits: M.array(V_)
13159
13159
  }).required()
13160
13160
  }).required()
13161
13161
  }),
13162
- calculated: O.object({
13163
- lead_price: O.array(O.coerce.number()),
13164
- months_of_operation: O.array(O.number().int().min(1).max(12))
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_ = O.object({
13167
- departures: O.object({
13168
- doc_count: O.number().int().nonnegative(),
13169
- matching: O.object({
13170
- doc_count: O.number().int().nonnegative(),
13171
- price_stats: O.object({
13172
- count: O.number().int().nonnegative().nullable(),
13173
- min: O.number().nullable(),
13174
- max: O.number().nullable(),
13175
- avg: O.number().nullable(),
13176
- sum: O.number().nullable()
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: O.object({
13179
- buckets: O.array(O.object({
13180
- key: O.number().nonnegative(),
13181
- doc_count: O.number().int().nonnegative()
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: O.object({
13185
- buckets: O.array(O.object({
13186
- key: O.number().int().nonnegative(),
13187
- key_as_string: O.coerce.date(),
13188
- doc_count: O.number().int().nonnegative()
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_ = O.object({
13194
- took: O.number().int().nonnegative(),
13195
- timed_out: O.boolean(),
13196
- hits: O.object({
13197
- total: O.object({
13198
- value: O.number().int().nonnegative(),
13199
- relation: O.string()
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: O.number().nonnegative().nullable(),
13202
- hits: O.array(j_)
13202
+ max_score: M.number().nonnegative().nullable(),
13203
+ hits: M.array(j_)
13203
13204
  }).required(),
13204
13205
  aggregations: H_
13205
- }).required(), B_ = O.object({
13206
- text: O.string().nonempty(),
13207
- _index: O.string(),
13208
- _id: O.string(),
13209
- _score: O.number().nonnegative()
13210
- }).required(), W_ = O.object({
13211
- text: O.string().nonempty(),
13212
- offset: O.number().int().nonnegative(),
13213
- length: O.number().int().nonnegative(),
13214
- options: O.array(B_)
13215
- }).required(), z_ = O.record(O.array(W_));
13216
- const Gs = "https://api.tours.rezkit.app", Z_ = O.object({
13217
- host: O.string().url()
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) {