@techstuff-dev/foundation-api-utils 1.7.0 → 1.9.0

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.
@@ -199,16 +199,18 @@ interface ESVideo {
199
199
  _id: string;
200
200
  _score: null;
201
201
  _source: {
202
- uuid?: string[];
203
- title?: string[];
204
- updated?: string[];
205
- description?: string[];
206
- image?: string[];
207
- duration?: string[];
208
- section?: string[];
209
- video_poster?: string[];
210
- video_url?: string[];
211
- section_id?: string[];
202
+ uuid: string[];
203
+ title: string[];
204
+ created: number[];
205
+ updated: number[];
206
+ description: string[];
207
+ image: string[];
208
+ duration: number[];
209
+ section: string[];
210
+ video_poster: string[];
211
+ video_url: string[];
212
+ video_download: string[];
213
+ section_id: number[];
212
214
  };
213
215
  sort: number[];
214
216
  }
@@ -232,38 +234,45 @@ interface ESSchedule {
232
234
  _id: string;
233
235
  _score: null;
234
236
  _source: {
235
- uuid?: string[];
236
- created?: string[];
237
- langcode?: string[];
238
- updated?: string[];
239
- monday_title?: string[];
240
- monday_start?: string[];
241
- monday_end?: string[];
242
- monday_video?: string[];
243
- tuesday_title?: string[];
244
- tuesday_start?: string[];
245
- tuesday_end?: string[];
246
- tuesday_video?: string[];
247
- wednesday_title?: string[];
248
- wednesday_start?: string[];
249
- wednesday_end?: string[];
250
- wednesday_video?: string[];
251
- thursday_title?: string[];
252
- thursday_start?: string[];
253
- thursday_end?: string[];
254
- thursday_video?: string[];
255
- friday_title?: string[];
256
- friday_start?: string[];
257
- friday_end?: string[];
258
- friday_video?: string[];
259
- saturday_title?: string[];
260
- saturday_start?: string[];
261
- saturday_end?: string[];
262
- saturday_video?: string[];
263
- sunday_title?: string[];
264
- sunday_start?: string[];
265
- sunday_end?: string[];
266
- sunday_video?: string[];
237
+ uuid: string[];
238
+ created: string[];
239
+ langcode: string[];
240
+ updated: string[];
241
+ monday_title: string[];
242
+ monday_start: string[];
243
+ monday_end: string[];
244
+ monday_video: string[];
245
+ monday_live: string[];
246
+ tuesday_title: string[];
247
+ tuesday_start: string[];
248
+ tuesday_end: string[];
249
+ tuesday_video: string[];
250
+ tuesday_live: string[];
251
+ wednesday_title: string[];
252
+ wednesday_start: string[];
253
+ wednesday_end: string[];
254
+ wednesday_video: string[];
255
+ wednesday_live: string[];
256
+ thursday_title: string[];
257
+ thursday_start: string[];
258
+ thursday_end: string[];
259
+ thursday_video: string[];
260
+ thursday_live: string[];
261
+ friday_title: string[];
262
+ friday_start: string[];
263
+ friday_end: string[];
264
+ friday_video: string[];
265
+ friday_live: string[];
266
+ saturday_title: string[];
267
+ saturday_start: string[];
268
+ saturday_end: string[];
269
+ saturday_video: string[];
270
+ saturday_live: string[];
271
+ sunday_title: string[];
272
+ sunday_start: string[];
273
+ sunday_end: string[];
274
+ sunday_video: string[];
275
+ sunday_live: string[];
267
276
  };
268
277
  sort: number[];
269
278
  }
@@ -393,12 +402,26 @@ interface Workout {
393
402
  title: string;
394
403
  uid: string;
395
404
  video: string;
396
- video_poster: string;
397
- video_download: string;
398
- workout_category: string;
399
- workout_type: string;
405
+ videoPoster: string;
406
+ videoDownload: string;
407
+ workoutCategory: string;
408
+ workoutType: string;
400
409
  livestream_section: string;
401
410
  }
411
+ interface Video {
412
+ uuid?: string;
413
+ title: string;
414
+ created: number;
415
+ updated: number;
416
+ description: string;
417
+ image: string;
418
+ duration: number;
419
+ section: string;
420
+ videoPoster: string;
421
+ videoUrl: string;
422
+ videoDownload: string;
423
+ sectionId: number;
424
+ }
402
425
  interface Series {
403
426
  uuid: string;
404
427
  id: string;
@@ -416,3 +439,60 @@ interface Series {
416
439
  nid: string;
417
440
  season: string;
418
441
  }
442
+ interface Schedule {
443
+ uuid: string;
444
+ created: string;
445
+ langcode: string;
446
+ updated: string;
447
+ days: {
448
+ monday?: {
449
+ title: string;
450
+ start: string;
451
+ end: string;
452
+ video: string;
453
+ live: string;
454
+ }[];
455
+ tuesday?: {
456
+ title: string;
457
+ start: string;
458
+ end: string;
459
+ video: string;
460
+ live: string;
461
+ }[];
462
+ wednesday?: {
463
+ title: string;
464
+ start: string;
465
+ end: string;
466
+ video: string;
467
+ live: string;
468
+ }[];
469
+ thursday?: {
470
+ title: string;
471
+ start: string;
472
+ end: string;
473
+ video: string;
474
+ live: string;
475
+ }[];
476
+ friday?: {
477
+ title: string;
478
+ start: string;
479
+ end: string;
480
+ video: string;
481
+ live: string;
482
+ }[];
483
+ saturday?: {
484
+ title: string;
485
+ start: string;
486
+ end: string;
487
+ video: string;
488
+ live: string;
489
+ }[];
490
+ sunday?: {
491
+ title: string;
492
+ start: string;
493
+ end: string;
494
+ video: string;
495
+ live: string;
496
+ }[];
497
+ }[];
498
+ }
@@ -109,18 +109,7 @@ export declare function formatGuests(data: ESGuest[]): {
109
109
  image: string | undefined;
110
110
  display: string | undefined;
111
111
  }[];
112
- export declare function formatVideos(data: ESVideo[]): {
113
- uuid: string | undefined;
114
- title: string | undefined;
115
- updated: string | undefined;
116
- description: string | undefined;
117
- image: string | undefined;
118
- duration: string | undefined;
119
- section: string | undefined;
120
- video_poster: string | undefined;
121
- video_url: string | undefined;
122
- section_id: string | undefined;
123
- }[];
112
+ export declare function formatVideos(data: ESVideo[]): Video[];
124
113
  export declare function formatSections(data: ESSection[]): {
125
114
  uuid: string | undefined;
126
115
  title: string | undefined;
@@ -130,104 +119,7 @@ export declare function formatSections(data: ESSection[]): {
130
119
  display: string | undefined;
131
120
  id: string | undefined;
132
121
  }[];
133
- export declare function formatSchedule(data: ESSchedule[]): {
134
- uuid: string | undefined;
135
- created: string | undefined;
136
- langcode: string | undefined;
137
- updated: string | undefined;
138
- days: ({
139
- monday: false | {
140
- end: string | undefined;
141
- start: string | undefined;
142
- title: string;
143
- video: string | undefined;
144
- }[] | undefined;
145
- tuesday?: undefined;
146
- wednesday?: undefined;
147
- thursday?: undefined;
148
- friday?: undefined;
149
- saturday?: undefined;
150
- sunday?: undefined;
151
- } | {
152
- tuesday: false | {
153
- end: string | undefined;
154
- start: string | undefined;
155
- title: string;
156
- video: string | undefined;
157
- }[] | undefined;
158
- monday?: undefined;
159
- wednesday?: undefined;
160
- thursday?: undefined;
161
- friday?: undefined;
162
- saturday?: undefined;
163
- sunday?: undefined;
164
- } | {
165
- wednesday: false | {
166
- end: string | undefined;
167
- start: string | undefined;
168
- title: string;
169
- video: string | undefined;
170
- }[] | undefined;
171
- monday?: undefined;
172
- tuesday?: undefined;
173
- thursday?: undefined;
174
- friday?: undefined;
175
- saturday?: undefined;
176
- sunday?: undefined;
177
- } | {
178
- thursday: false | {
179
- end: string | undefined;
180
- start: string | undefined;
181
- title: string;
182
- video: string | undefined;
183
- }[] | undefined;
184
- monday?: undefined;
185
- tuesday?: undefined;
186
- wednesday?: undefined;
187
- friday?: undefined;
188
- saturday?: undefined;
189
- sunday?: undefined;
190
- } | {
191
- friday: false | {
192
- end: string | undefined;
193
- start: string | undefined;
194
- title: string;
195
- video: string | undefined;
196
- }[] | undefined;
197
- monday?: undefined;
198
- tuesday?: undefined;
199
- wednesday?: undefined;
200
- thursday?: undefined;
201
- saturday?: undefined;
202
- sunday?: undefined;
203
- } | {
204
- saturday: false | {
205
- end: string | undefined;
206
- start: string | undefined;
207
- title: string;
208
- video: string | undefined;
209
- }[] | undefined;
210
- monday?: undefined;
211
- tuesday?: undefined;
212
- wednesday?: undefined;
213
- thursday?: undefined;
214
- friday?: undefined;
215
- sunday?: undefined;
216
- } | {
217
- sunday: false | {
218
- end: string | undefined;
219
- start: string | undefined;
220
- title: string;
221
- video: string | undefined;
222
- }[] | undefined;
223
- monday?: undefined;
224
- tuesday?: undefined;
225
- wednesday?: undefined;
226
- thursday?: undefined;
227
- friday?: undefined;
228
- saturday?: undefined;
229
- })[];
230
- }[];
122
+ export declare function formatSchedule(data: ESSchedule[]): Schedule[];
231
123
  export declare function formatChallenges(data: ESChallenge[]): {
232
124
  uuid: string | undefined;
233
125
  title: string | undefined;
package/dist/index.esm.js CHANGED
@@ -208,10 +208,10 @@ function formatWorkout(data) {
208
208
  image: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.image) === null || _x === void 0 ? void 0 : _x[0],
209
209
  title: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.title) === null || _z === void 0 ? void 0 : _z[0],
210
210
  video: (_1 = (_0 = item === null || item === void 0 ? void 0 : item._source) === null || _0 === void 0 ? void 0 : _0.video_url) === null || _1 === void 0 ? void 0 : _1[0],
211
- video_download: (_3 = (_2 = item === null || item === void 0 ? void 0 : item._source) === null || _2 === void 0 ? void 0 : _2.video_download) === null || _3 === void 0 ? void 0 : _3[0],
212
- video_poster: (_5 = (_4 = item === null || item === void 0 ? void 0 : item._source) === null || _4 === void 0 ? void 0 : _4.video_poster) === null || _5 === void 0 ? void 0 : _5[0],
213
- workout_category: (_7 = (_6 = item === null || item === void 0 ? void 0 : item._source) === null || _6 === void 0 ? void 0 : _6.workout_category) === null || _7 === void 0 ? void 0 : _7[0],
214
- workout_type: (_9 = (_8 = item === null || item === void 0 ? void 0 : item._source) === null || _8 === void 0 ? void 0 : _8.workout_type) === null || _9 === void 0 ? void 0 : _9[0],
211
+ videoDownload: (_3 = (_2 = item === null || item === void 0 ? void 0 : item._source) === null || _2 === void 0 ? void 0 : _2.video_download) === null || _3 === void 0 ? void 0 : _3[0],
212
+ videoPoster: (_5 = (_4 = item === null || item === void 0 ? void 0 : item._source) === null || _4 === void 0 ? void 0 : _4.video_poster) === null || _5 === void 0 ? void 0 : _5[0],
213
+ workoutCategory: (_7 = (_6 = item === null || item === void 0 ? void 0 : item._source) === null || _6 === void 0 ? void 0 : _6.workout_category) === null || _7 === void 0 ? void 0 : _7[0],
214
+ workoutType: (_9 = (_8 = item === null || item === void 0 ? void 0 : item._source) === null || _8 === void 0 ? void 0 : _8.workout_type) === null || _9 === void 0 ? void 0 : _9[0],
215
215
  livestream_section: (_11 = (_10 = item === null || item === void 0 ? void 0 : item._source) === null || _10 === void 0 ? void 0 : _10.livestream_section) === null || _11 === void 0 ? void 0 : _11[0],
216
216
  };
217
217
  });
@@ -356,21 +356,24 @@ function formatGuests(data) {
356
356
  });
357
357
  }
358
358
  function formatVideos(data) {
359
- return data.map(function (item) {
360
- var _source = item._source;
359
+ var response = data.map(function (item) {
360
+ 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;
361
361
  return {
362
- uuid: _source.uuid && _source.uuid[0],
363
- title: _source.title && _source.title[0],
364
- updated: _source.updated && _source.updated[0],
365
- description: _source.description && _source.description[0],
366
- image: _source.image && _source.image[0],
367
- duration: _source.duration && _source.duration[0],
368
- section: _source.section && _source.section[0],
369
- video_poster: _source.video_poster && _source.video_poster[0],
370
- video_url: _source.video_url && _source.video_url[0],
371
- section_id: _source.section_id && _source.section_id[0],
362
+ uuid: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.uuid) === null || _b === void 0 ? void 0 : _b[0],
363
+ title: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d[0],
364
+ created: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.created) === null || _f === void 0 ? void 0 : _f[0],
365
+ updated: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.updated) === null || _h === void 0 ? void 0 : _h[0],
366
+ description: (_k = (_j = item === null || item === void 0 ? void 0 : item._source) === null || _j === void 0 ? void 0 : _j.description) === null || _k === void 0 ? void 0 : _k[0],
367
+ image: (_m = (_l = item === null || item === void 0 ? void 0 : item._source) === null || _l === void 0 ? void 0 : _l.image) === null || _m === void 0 ? void 0 : _m[0],
368
+ duration: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.duration) === null || _p === void 0 ? void 0 : _p[0],
369
+ section: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.section) === null || _r === void 0 ? void 0 : _r[0],
370
+ videoPoster: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.video_poster) === null || _t === void 0 ? void 0 : _t[0],
371
+ videoUrl: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.video_url) === null || _v === void 0 ? void 0 : _v[0],
372
+ videoDownload: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.video_download) === null || _x === void 0 ? void 0 : _x[0],
373
+ sectionId: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.section_id) === null || _z === void 0 ? void 0 : _z[0],
372
374
  };
373
375
  });
376
+ return response;
374
377
  }
375
378
  function formatSections(data) {
376
379
  return data.map(function (item) {
@@ -388,103 +391,96 @@ function formatSections(data) {
388
391
  }
389
392
  function formatSchedule(data) {
390
393
  return data.map(function (item) {
391
- var _source = item._source;
394
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
392
395
  return {
393
- uuid: _source.uuid && _source.uuid[0],
394
- created: _source.created && _source.created[0],
395
- langcode: _source.langcode && _source.langcode[0],
396
- updated: _source.updated && _source.updated[0],
396
+ uuid: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.uuid) === null || _b === void 0 ? void 0 : _b[0],
397
+ created: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.created) === null || _d === void 0 ? void 0 : _d[0],
398
+ langcode: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.langcode) === null || _f === void 0 ? void 0 : _f[0],
399
+ updated: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.updated) === null || _h === void 0 ? void 0 : _h[0],
397
400
  days: [
398
401
  {
399
- monday: _source.monday_title &&
400
- _source.monday_title.length > 0 &&
401
- _source.monday_title.map(function (title, index) {
402
- var _a, _b, _c;
403
- return {
404
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.monday_end) === null || _a === void 0 ? void 0 : _a[index],
405
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.monday_start) === null || _b === void 0 ? void 0 : _b[index],
406
- title: title,
407
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.monday_video) === null || _c === void 0 ? void 0 : _c[index],
408
- };
409
- }),
402
+ monday: (_k = (_j = item === null || item === void 0 ? void 0 : item._source) === null || _j === void 0 ? void 0 : _j.monday_title) === null || _k === void 0 ? void 0 : _k.map(function (title, index) {
403
+ var _a, _b, _c, _d, _e, _f, _g, _h;
404
+ return {
405
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.monday_end) === null || _b === void 0 ? void 0 : _b[index],
406
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.monday_start) === null || _d === void 0 ? void 0 : _d[index],
407
+ title: title,
408
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.monday_video) === null || _f === void 0 ? void 0 : _f[index],
409
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.monday_live) === null || _h === void 0 ? void 0 : _h[index],
410
+ };
411
+ }),
410
412
  },
411
413
  {
412
- tuesday: _source.tuesday_title &&
413
- _source.tuesday_title.length > 0 &&
414
- _source.tuesday_title.map(function (title, index) {
415
- var _a, _b, _c;
416
- return {
417
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.tuesday_end) === null || _a === void 0 ? void 0 : _a[index],
418
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.tuesday_start) === null || _b === void 0 ? void 0 : _b[index],
419
- title: title,
420
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.tuesday_video) === null || _c === void 0 ? void 0 : _c[index],
421
- };
422
- }),
414
+ tuesday: (_m = (_l = item === null || item === void 0 ? void 0 : item._source) === null || _l === void 0 ? void 0 : _l.tuesday_title) === null || _m === void 0 ? void 0 : _m.map(function (title, index) {
415
+ var _a, _b, _c, _d, _e, _f, _g, _h;
416
+ return {
417
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.tuesday_end) === null || _b === void 0 ? void 0 : _b[index],
418
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.tuesday_start) === null || _d === void 0 ? void 0 : _d[index],
419
+ title: title,
420
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.tuesday_video) === null || _f === void 0 ? void 0 : _f[index],
421
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.tuesday_live) === null || _h === void 0 ? void 0 : _h[index],
422
+ };
423
+ }),
423
424
  },
424
425
  {
425
- wednesday: _source.wednesday_title &&
426
- _source.wednesday_title.length > 0 &&
427
- _source.wednesday_title.map(function (title, index) {
428
- var _a, _b, _c;
429
- return {
430
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.wednesday_end) === null || _a === void 0 ? void 0 : _a[index],
431
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.wednesday_start) === null || _b === void 0 ? void 0 : _b[index],
432
- title: title,
433
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.wednesday_video) === null || _c === void 0 ? void 0 : _c[index],
434
- };
435
- }),
426
+ wednesday: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.wednesday_title) === null || _p === void 0 ? void 0 : _p.map(function (title, index) {
427
+ var _a, _b, _c, _d, _e, _f, _g, _h;
428
+ return {
429
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.wednesday_end) === null || _b === void 0 ? void 0 : _b[index],
430
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.wednesday_start) === null || _d === void 0 ? void 0 : _d[index],
431
+ title: title,
432
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.wednesday_video) === null || _f === void 0 ? void 0 : _f[index],
433
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.wednesday_live) === null || _h === void 0 ? void 0 : _h[index],
434
+ };
435
+ }),
436
436
  },
437
437
  {
438
- thursday: _source.thursday_title &&
439
- _source.thursday_title.length > 0 &&
440
- _source.thursday_title.map(function (title, index) {
441
- var _a, _b, _c;
442
- return {
443
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.thursday_end) === null || _a === void 0 ? void 0 : _a[index],
444
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.thursday_start) === null || _b === void 0 ? void 0 : _b[index],
445
- title: title,
446
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.thursday_video) === null || _c === void 0 ? void 0 : _c[index],
447
- };
448
- }),
438
+ thursday: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.thursday_title) === null || _r === void 0 ? void 0 : _r.map(function (title, index) {
439
+ var _a, _b, _c, _d, _e, _f, _g, _h;
440
+ return {
441
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.thursday_end) === null || _b === void 0 ? void 0 : _b[index],
442
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.thursday_start) === null || _d === void 0 ? void 0 : _d[index],
443
+ title: title,
444
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.thursday_video) === null || _f === void 0 ? void 0 : _f[index],
445
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.thursday_live) === null || _h === void 0 ? void 0 : _h[index],
446
+ };
447
+ }),
449
448
  },
450
449
  {
451
- friday: _source.friday_title &&
452
- _source.friday_title.length > 0 &&
453
- _source.friday_title.map(function (title, index) {
454
- var _a, _b, _c;
455
- return {
456
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.friday_end) === null || _a === void 0 ? void 0 : _a[index],
457
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.friday_start) === null || _b === void 0 ? void 0 : _b[index],
458
- title: title,
459
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.friday_video) === null || _c === void 0 ? void 0 : _c[index],
460
- };
461
- }),
450
+ friday: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.friday_title) === null || _t === void 0 ? void 0 : _t.map(function (title, index) {
451
+ var _a, _b, _c, _d, _e, _f, _g, _h;
452
+ return {
453
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.friday_end) === null || _b === void 0 ? void 0 : _b[index],
454
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.friday_start) === null || _d === void 0 ? void 0 : _d[index],
455
+ title: title,
456
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.friday_video) === null || _f === void 0 ? void 0 : _f[index],
457
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.friday_live) === null || _h === void 0 ? void 0 : _h[index],
458
+ };
459
+ }),
462
460
  },
463
461
  {
464
- saturday: _source.saturday_title &&
465
- _source.saturday_title.length > 0 &&
466
- _source.saturday_title.map(function (title, index) {
467
- var _a, _b, _c;
468
- return {
469
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.saturday_end) === null || _a === void 0 ? void 0 : _a[index],
470
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.saturday_start) === null || _b === void 0 ? void 0 : _b[index],
471
- title: title,
472
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.saturday_video) === null || _c === void 0 ? void 0 : _c[index],
473
- };
474
- }),
462
+ saturday: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.saturday_title) === null || _v === void 0 ? void 0 : _v.map(function (title, index) {
463
+ var _a, _b, _c, _d, _e, _f, _g, _h;
464
+ return {
465
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.saturday_end) === null || _b === void 0 ? void 0 : _b[index],
466
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.saturday_start) === null || _d === void 0 ? void 0 : _d[index],
467
+ title: title,
468
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.saturday_video) === null || _f === void 0 ? void 0 : _f[index],
469
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.saturday_live) === null || _h === void 0 ? void 0 : _h[index],
470
+ };
471
+ }),
475
472
  },
476
473
  {
477
- sunday: _source.sunday_title &&
478
- _source.sunday_title.length > 0 &&
479
- _source.sunday_title.map(function (title, index) {
480
- var _a, _b, _c;
481
- return {
482
- end: (_a = _source === null || _source === void 0 ? void 0 : _source.sunday_end) === null || _a === void 0 ? void 0 : _a[index],
483
- start: (_b = _source === null || _source === void 0 ? void 0 : _source.sunday_start) === null || _b === void 0 ? void 0 : _b[index],
484
- title: title,
485
- video: (_c = _source === null || _source === void 0 ? void 0 : _source.sunday_video) === null || _c === void 0 ? void 0 : _c[index],
486
- };
487
- }),
474
+ sunday: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.sunday_title) === null || _x === void 0 ? void 0 : _x.map(function (title, index) {
475
+ var _a, _b, _c, _d, _e, _f, _g, _h;
476
+ return {
477
+ end: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.sunday_end) === null || _b === void 0 ? void 0 : _b[index],
478
+ start: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.sunday_start) === null || _d === void 0 ? void 0 : _d[index],
479
+ title: title,
480
+ video: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.sunday_video) === null || _f === void 0 ? void 0 : _f[index],
481
+ live: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.sunday_live) === null || _h === void 0 ? void 0 : _h[index],
482
+ };
483
+ }),
488
484
  },
489
485
  ],
490
486
  };