kupos-ui-components-lib 4.0.7 → 4.0.8

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.
@@ -139,7 +139,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
139
139
  let activeOptions = fil.options.filter((it) => it.active);
140
140
  // if (activeOptions && activeOptions.length > 0) {
141
141
  filteredRoutes = filteredRoutes.filter((it) => {
142
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
142
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
143
143
  if (activeOptions && activeOptions.length)
144
144
  for (let f of activeOptions) {
145
145
  if (f.active) {
@@ -186,9 +186,16 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
186
186
  }
187
187
  }
188
188
  }
189
+ else if (f.value.toLowerCase().indexOf("king service") > -1) {
190
+ for (let bt of it.seat_types) {
191
+ if (((_g = bt === null || bt === void 0 ? void 0 : bt.label) === null || _g === void 0 ? void 0 : _g.toLowerCase().indexOf("king service")) > -1) {
192
+ return true;
193
+ }
194
+ }
195
+ }
189
196
  else if (f.value.toLowerCase().indexOf("salon cama low") > -1) {
190
197
  for (let bt of it.seat_types) {
191
- if (((_g = bt === null || bt === void 0 ? void 0 : bt.label) === null || _g === void 0 ? void 0 : _g.toLowerCase().indexOf("salon cama low")) >
198
+ if (((_h = bt === null || bt === void 0 ? void 0 : bt.label) === null || _h === void 0 ? void 0 : _h.toLowerCase().indexOf("salon cama low")) >
192
199
  -1) {
193
200
  return true;
194
201
  }
@@ -196,7 +203,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
196
203
  }
197
204
  else if (f.value.toLowerCase().indexOf("salón cama low") > -1) {
198
205
  for (let bt of it.seat_types) {
199
- if (((_h = bt === null || bt === void 0 ? void 0 : bt.label) === null || _h === void 0 ? void 0 : _h.toLowerCase().indexOf("salón cama low")) >
206
+ if (((_j = bt === null || bt === void 0 ? void 0 : bt.label) === null || _j === void 0 ? void 0 : _j.toLowerCase().indexOf("salón cama low")) >
200
207
  -1) {
201
208
  return true;
202
209
  }
@@ -204,14 +211,14 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
204
211
  }
205
212
  else if (f.value.toLowerCase().indexOf("semi cama low") > -1) {
206
213
  for (let bt of it.seat_types) {
207
- if (((_j = bt === null || bt === void 0 ? void 0 : bt.label) === null || _j === void 0 ? void 0 : _j.toLowerCase().indexOf("semi cama low")) > -1) {
214
+ if (((_k = bt === null || bt === void 0 ? void 0 : bt.label) === null || _k === void 0 ? void 0 : _k.toLowerCase().indexOf("semi cama low")) > -1) {
208
215
  return true;
209
216
  }
210
217
  }
211
218
  }
212
219
  else if (f.value.toLowerCase().indexOf("cama premium (i)") > -1) {
213
220
  for (let bt of it.seat_types) {
214
- if (((_k = bt === null || bt === void 0 ? void 0 : bt.label) === null || _k === void 0 ? void 0 : _k.toLowerCase().indexOf("cama premium (i)")) >
221
+ if (((_l = bt === null || bt === void 0 ? void 0 : bt.label) === null || _l === void 0 ? void 0 : _l.toLowerCase().indexOf("cama premium (i)")) >
215
222
  -1) {
216
223
  return true;
217
224
  }
@@ -226,7 +233,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
226
233
  // }
227
234
  // }
228
235
  for (let bt of it.seat_types) {
229
- if (((_l = bt === null || bt === void 0 ? void 0 : bt.label) === null || _l === void 0 ? void 0 : _l.toLowerCase().indexOf("ejecutivo")) > -1) {
236
+ if (((_m = bt === null || bt === void 0 ? void 0 : bt.label) === null || _m === void 0 ? void 0 : _m.toLowerCase().indexOf("ejecutivo")) > -1) {
230
237
  return true;
231
238
  }
232
239
  }
@@ -238,7 +245,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
238
245
  // }
239
246
  // }
240
247
  for (let bt of it.seat_types) {
241
- if (((_m = bt === null || bt === void 0 ? void 0 : bt.label) === null || _m === void 0 ? void 0 : _m.toLowerCase().indexOf("semi")) > -1) {
248
+ if (((_o = bt === null || bt === void 0 ? void 0 : bt.label) === null || _o === void 0 ? void 0 : _o.toLowerCase().indexOf("semi")) > -1) {
242
249
  return true;
243
250
  }
244
251
  }
@@ -252,7 +259,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
252
259
  // }
253
260
  // }
254
261
  for (let bt of it.seat_types) {
255
- if (((_o = bt === null || bt === void 0 ? void 0 : bt.label) === null || _o === void 0 ? void 0 : _o.toLowerCase().indexOf("salon")) > -1) {
262
+ if (((_p = bt === null || bt === void 0 ? void 0 : bt.label) === null || _p === void 0 ? void 0 : _p.toLowerCase().indexOf("salon")) > -1) {
256
263
  return true;
257
264
  }
258
265
  }
@@ -266,7 +273,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
266
273
  // }
267
274
  // }
268
275
  for (let bt of it.seat_types) {
269
- if (((_p = bt === null || bt === void 0 ? void 0 : bt.label) === null || _p === void 0 ? void 0 : _p.toLowerCase().indexOf("salón")) > -1) {
276
+ if (((_q = bt === null || bt === void 0 ? void 0 : bt.label) === null || _q === void 0 ? void 0 : _q.toLowerCase().indexOf("salón")) > -1) {
270
277
  return true;
271
278
  }
272
279
  }
@@ -280,7 +287,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
280
287
  // }
281
288
  // }
282
289
  for (let bt of it.seat_types) {
283
- if (((_q = bt === null || bt === void 0 ? void 0 : bt.label) === null || _q === void 0 ? void 0 : _q.toLowerCase().indexOf("suite")) > -1) {
290
+ if (((_r = bt === null || bt === void 0 ? void 0 : bt.label) === null || _r === void 0 ? void 0 : _r.toLowerCase().indexOf("suite")) > -1) {
284
291
  return true;
285
292
  }
286
293
  }
@@ -292,7 +299,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
292
299
  // }
293
300
  // }
294
301
  for (let bt of it.seat_types) {
295
- if (((_r = bt === null || bt === void 0 ? void 0 : bt.label) === null || _r === void 0 ? void 0 : _r.toLowerCase().indexOf("premium")) > -1) {
302
+ if (((_s = bt === null || bt === void 0 ? void 0 : bt.label) === null || _s === void 0 ? void 0 : _s.toLowerCase().indexOf("premium")) > -1) {
296
303
  return true;
297
304
  }
298
305
  }
@@ -304,7 +311,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
304
311
  // }
305
312
  // }
306
313
  for (let bt of it.seat_types) {
307
- if (((_s = bt === null || bt === void 0 ? void 0 : bt.label) === null || _s === void 0 ? void 0 : _s.toLowerCase().indexOf("vip")) > -1) {
314
+ if (((_t = bt === null || bt === void 0 ? void 0 : bt.label) === null || _t === void 0 ? void 0 : _t.toLowerCase().indexOf("vip")) > -1) {
308
315
  return true;
309
316
  }
310
317
  }
@@ -316,7 +323,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
316
323
  // }
317
324
  // }
318
325
  for (let bt of it.seat_types) {
319
- if (((_t = bt === null || bt === void 0 ? void 0 : bt.label) === null || _t === void 0 ? void 0 : _t.toLowerCase().indexOf("cama")) > -1) {
326
+ if (((_u = bt === null || bt === void 0 ? void 0 : bt.label) === null || _u === void 0 ? void 0 : _u.toLowerCase().indexOf("cama")) > -1) {
320
327
  return true;
321
328
  }
322
329
  }
@@ -328,7 +335,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
328
335
  // }
329
336
  // }
330
337
  for (let bt of it.seat_types) {
331
- if (((_u = bt === null || bt === void 0 ? void 0 : bt.label) === null || _u === void 0 ? void 0 : _u.toLowerCase().indexOf("preferente")) > -1) {
338
+ if (((_v = bt === null || bt === void 0 ? void 0 : bt.label) === null || _v === void 0 ? void 0 : _v.toLowerCase().indexOf("preferente")) > -1) {
332
339
  return true;
333
340
  }
334
341
  }
@@ -340,7 +347,7 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
340
347
  // }
341
348
  // }
342
349
  for (let bt of it.seat_types) {
343
- if (((_v = bt === null || bt === void 0 ? void 0 : bt.label) === null || _v === void 0 ? void 0 : _v.toLowerCase().indexOf("vent")) > -1) {
350
+ if (((_w = bt === null || bt === void 0 ? void 0 : bt.label) === null || _w === void 0 ? void 0 : _w.toLowerCase().indexOf("vent")) > -1) {
344
351
  return true;
345
352
  }
346
353
  }
@@ -354,28 +361,28 @@ const FilterBarDesktop = ({ t, serviceList, setServiceList, allSchedules, showRe
354
361
  // }
355
362
  // }
356
363
  for (let bt of it.seat_types) {
357
- if (((_w = bt === null || bt === void 0 ? void 0 : bt.label) === null || _w === void 0 ? void 0 : _w.toLowerCase().indexOf("clasico")) > -1) {
364
+ if (((_x = bt === null || bt === void 0 ? void 0 : bt.label) === null || _x === void 0 ? void 0 : _x.toLowerCase().indexOf("clasico")) > -1) {
358
365
  return true;
359
366
  }
360
367
  }
361
368
  }
362
369
  else if (f.value.toLowerCase().indexOf("killa plus") > -1) {
363
370
  for (let bt of it.seat_types) {
364
- if (((_x = bt === null || bt === void 0 ? void 0 : bt.label) === null || _x === void 0 ? void 0 : _x.toLowerCase().indexOf("killa plus")) > -1) {
371
+ if (((_y = bt === null || bt === void 0 ? void 0 : bt.label) === null || _y === void 0 ? void 0 : _y.toLowerCase().indexOf("killa plus")) > -1) {
365
372
  return true;
366
373
  }
367
374
  }
368
375
  }
369
376
  else if (f.value.toLowerCase().indexOf("inka plus") > -1) {
370
377
  for (let bt of it.seat_types) {
371
- if (((_y = bt === null || bt === void 0 ? void 0 : bt.label) === null || _y === void 0 ? void 0 : _y.toLowerCase().indexOf("inka plus")) > -1) {
378
+ if (((_z = bt === null || bt === void 0 ? void 0 : bt.label) === null || _z === void 0 ? void 0 : _z.toLowerCase().indexOf("inka plus")) > -1) {
372
379
  return true;
373
380
  }
374
381
  }
375
382
  }
376
383
  else if (f.value.toLowerCase().indexOf("emperador") > -1) {
377
384
  for (let bt of it.seat_types) {
378
- if (((_z = bt === null || bt === void 0 ? void 0 : bt.label) === null || _z === void 0 ? void 0 : _z.toLowerCase().indexOf("emperador")) > -1) {
385
+ if (((_0 = bt === null || bt === void 0 ? void 0 : bt.label) === null || _0 === void 0 ? void 0 : _0.toLowerCase().indexOf("emperador")) > -1) {
379
386
  return true;
380
387
  }
381
388
  }
@@ -208,9 +208,8 @@ class ServiceFilter extends React.Component {
208
208
  padding: "2px 6px",
209
209
  paddingLeft: val.active ? "11px" : "",
210
210
  marginLeft: val.active ? "-10px" : "",
211
- }, className: `flex items-center h-[24px] rounded-[15px] cursor-pointer pt-[4px] ${val.active
212
- ? `text-[${this.props.colors.selectedTextColor}]`
213
- : ""} ${val.active ? "bold-text" : ""}` },
211
+ color: val.active ? this.props.colors.selectedTextColor : "",
212
+ }, className: `flex items-center h-[24px] rounded-[15px] cursor-pointer pt-[4px] ${val.active ? "bold-text" : ""}` },
214
213
  val.icon && this.props.icons && (React.createElement("img", { src: iconKey, alt: val.icon, className: "w-[20px] h-[20px] mr-[10px]" })),
215
214
  label));
216
215
  })));
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { ServiceItemProps } from "./types";
3
+ declare function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isSeatIcon, showAvailableSeats, t, }: ServiceItemProps & {
4
+ currencySign?: string;
5
+ }): React.ReactElement;
6
+ export default PeruServiceItemDesktop;