PageSourceSearch

https://www.abernethygolfclub.com/controls-vue/services/page-service.js?v=ebafd0b63c

js abernethygolfclub.com collected 2026-10-08 22:40:14 UTC 35,542 bytes, 734 lines download raw bytes

1/// <reference path="./base-service.ts" />
2var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4    return new (P || (P = Promise))(function (resolve, reject) {
5        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8        step((generator = generator.apply(thisArg, _arguments || [])).next());
9    });
10};
11var __generator = (this && this.__generator) || function (thisArg, body) {
12    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14    function verb(n) { return function (v) { return step([n, v]); }; }
15    function step(op) {
16        if (f) throw new TypeError("Generator is already executing.");
17        while (g && (g = 0, op[0] && (_ = 0)), _) try {
18            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19            if (y = 0, t) op = [op[0] & 2, t.value];
20            switch (op[0]) {
21                case 0: case 1: t = op; break;
22                case 4: _.label++; return { value: op[1], done: false };
23                case 5: _.label++; y = op[1]; op = [0]; continue;
24                case 7: op = _.ops.pop(); _.trys.pop(); continue;
25                default:
26                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30                    if (t[2]) _.ops.pop();
31                    _.trys.pop(); continue;
32            }
33            op = body.call(thisArg, _);
34        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36    }
37};
38var AppServices;
39(function (AppServices) {
40    var PageService = /** @class */ (function () {
41        function PageService() {
42            this.pageControlBaseUrl = '/api/pagecontrol/';
43            this.pageBaseUrl = '/api/page/';
44            this._api = null;
45            this._api = new BaseService.ApiService();
46        }
47        PageService.prototype.GetJsonContent = function (pageControlId) {
48            return __awaiter(this, void 0, void 0, function () {
49                var url, result, error_1;
50                return __generator(this, function (_a) {
51                    switch (_a.label) {
52                        case 0:
53                            url = this.pageControlBaseUrl + "GetPageControlJsonContent";
54                            _a.label = 1;
55                        case 1:
56                            _a.trys.push([1, 3, , 4]);
57                            return [4 /*yield*/, this._api.get(url, {
58                                    pageControlId: pageControlId,
59                                })];
60                        case 2:
61                            result = _a.sent();
62                            return [2 /*return*/, result.data];
63                        case 3:
64                            error_1 = _a.sent();
65                            return [2 /*return*/, {
66                                    successful: false,
67                                    errorMessage: error_1.response,
68                                }];
69                        case 4: return [2 /*return*/];
70                    }
71                });
72            });
73        };
74        PageService.prototype.UpsertJsonContent = function (pageControlId, jsonContent) {
75            return __awaiter(this, void 0, void 0, function () {
76                var url, result, error_2;
77                return __generator(this, function (_a) {
78                    switch (_a.label) {
79                        case 0:
80                            url = this.pageControlBaseUrl + "UpdateControlJsonContent";
81                            _a.label = 1;
82                        case 1:
83                            _a.trys.push([1, 3, , 4]);
84                            return [4 /*yield*/, this._api.post(url, {
85                                    pageControlId: pageControlId,
86                                    jsonContent: jsonContent,
87                                })];
88                        case 2:
89                            result = _a.sent();
90                            return [2 /*return*/, result.data];
91                        case 3:
92                            error_2 = _a.sent();
93                            return [2 /*return*/, {
94                                    successful: false,
95                                    errorMessage: error_2.response,
96                                }];
97                        case 4: return [2 /*return*/];
98                    }
99                });
100            });
101        };
102        PageService.prototype.GetPagesWithControl = function (pageControlId, clubWebsiteId) {
103            return __awaiter(this, void 0, void 0, function () {
104                var url, result, error_3;
105                return __generator(this, function (_a) {
106                    switch (_a.label) {
107                        case 0:
108                            url = this.pageControlBaseUrl + "GetPagesWhereControlIsAvailable";
109                            _a.label = 1;
110                        case 1:
111                            _a.trys.push([1, 3, , 4]);
112                            return [4 /*yield*/, this._api.get(url, {
113                                    pageControlId: pageControlId,
114                                    clubWebsiteId: clubWebsiteId,
115                                })];
116                        case 2:
117                            result = _a.sent();
118                            return [2 /*return*/, result.data];
119                        case 3:
120                            error_3 = _a.sent();
121                            return [2 /*return*/, {
122                                    successful: false,
123                                    errorMessage: error_3.response,
124                                }];
125                        case 4: return [2 /*return*/];
126                    }
127                });
128            });
129        };
130        PageService.prototype.GetIdenticalPageControlsByPage = function (pageId, pageControlId, clubWebsiteId) {
131            return __awaiter(this, void 0, void 0, function () {
132                var url, result, error_4;
133                return __generator(this, function (_a) {
134                    switch (_a.label) {
135                        case 0:
136                            url = this.pageControlBaseUrl + "GetIdenticalPageControlsByPage";
137                            _a.label = 1;
138                        case 1:
139                            _a.trys.push([1, 3, , 4]);
140                            return [4 /*yield*/, this._api.get(url, {
141                                    pageId: pageId,
142                                    pageControlId: pageControlId,
143                                    clubWebsiteId: clubWebsiteId,
144                                })];
145                        case 2:
146                            result = _a.sent();
147                            return [2 /*return*/, result.data];
148                        case 3:
149                            error_4 = _a.sent();
150                            return [2 /*return*/, {
151                                    successful: false,
152                                    errorMessage: error_4.response,
153                                }];
154                        case 4: return [2 /*return*/];
155                    }
156                });
157            });
158        };
159        PageService.prototype.CloneContent = function (targetPageControlId, sourcePageControlId) {
160            return __awaiter(this, void 0, void 0, function () {
161                var url, result, error_5;
162                return __generator(this, function (_a) {
163                    switch (_a.label) {
164                        case 0:
165                            url = this.pageControlBaseUrl + "CloneJsonContentFromPageControl";
166                            _a.label = 1;
167                        case 1:
168                            _a.trys.push([1, 3, , 4]);
169                            return [4 /*yield*/, this._api.post(url, {
170                                    targetPageControlId: targetPageControlId,
171                                    sourcePageControlId: sourcePageControlId,
172                                })];
173                        case 2:
174                            result = _a.sent();
175                            return [2 /*return*/, result.data];
176                        case 3:
177                            error_5 = _a.sent();
178                            return [2 /*return*/, {
179                                    successful: false,
180                                    errorMessage: error_5.response,
181                                }];
182                        case 4: return [2 /*return*/];
183                    }
184                });
185            });
186        };
187        PageService.prototype.AddParentPageControl = function (currentPageControlId, parentPageControlId) {
188            return __awaiter(this, void 0, void 0, function () {
189                var url, result, error_6;
190                return __generator(this, function (_a) {
191                    switch (_a.label) {
192                        case 0:
193                            url = this.pageControlBaseUrl + "AddParentPageControl";
194                            _a.label = 1;
195                        case 1:
196                            _a.trys.push([1, 3, , 4]);
197                            return [4 /*yield*/, this._api.post(url, {
198                                    targetPageControlId: currentPageControlId,
199                                    sourcePageControlId: parentPageControlId,
200                                })];
201                        case 2:
202                            result = _a.sent();
203                            return [2 /*return*/, result.data];
204                        case 3:
205                            error_6 = _a.sent();
206                            return [2 /*return*/, {
207                                    successful: false,
208                                    errorMessage: error_6.response,
209                                }];
210                        case 4: return [2 /*return*/];
211                    }
212                });
213            });
214        };
215        PageService.prototype.RemoveParentPageControl = function (pageControlId) {
216            return __awaiter(this, void 0, void 0, function () {
217                var url, result, error_7;
218                return __generator(this, function (_a) {
219                    switch (_a.label) {
220                        case 0:
221                            url = this.pageControlBaseUrl + "RemoveParentPageControl";
222                            _a.label = 1;
223                        case 1:
224                            _a.trys.push([1, 3, , 4]);
225                            return [4 /*yield*/, this._api.post(url, {
226                                    targetPageControlId: pageControlId,
227                                })];
228                        case 2:
229                            result = _a.sent();
230                            return [2 /*return*/, result.data];
231                        case 3:
232                            error_7 = _a.sent();
233                            return [2 /*return*/, {
234                                    successful: false,
235                                    errorMessage: error_7.response,
236                                }];
237                        case 4: return [2 /*return*/];
238                    }
239                });
240            });
241        };
242        PageService.prototype.GetCoupledPageControls = function (pageControlId) {
243            return __awaiter(this, void 0, void 0, function () {
244                var url, result, error_8;
245                return __generator(this, function (_a) {
246                    switch (_a.label) {
247                        case 0:
248                            url = this.pageControlBaseUrl + "GetCoupledPageControls";
249                            _a.label = 1;
250                        case 1:
251                            _a.trys.push([1, 3, , 4]);
252                            return [4 /*yield*/, this._api.get(url, {
253                                    pageControlId: pageControlId,
254                                })];
255                        case 2:
256                            result = _a.sent();
257                            return [2 /*return*/, result.data];
258                        case 3:
259                            error_8 = _a.sent();
260                            return [2 /*return*/, {
261                                    successful: false,
262                                    errorMessage: error_8.response,
263                                }];
264                        case 4: return [2 /*return*/];
265                    }
266                });
267            });
268        };
269        PageService.prototype.UpdatePageControlSetting = function (pageControlSettingId, setting, headers) {
270            return __awaiter(this, void 0, void 0, function () {
271                var url, result, error_9;
272                return __generator(this, function (_a) {
273                    switch (_a.label) {
274                        case 0:
275                            url = this.pageControlBaseUrl + "UpdatePageControlSetting?pageControlSettingId=".concat(pageControlSettingId, "&setting=").concat(setting);
276                            _a.label = 1;
277                        case 1:
278                            _a.trys.push([1, 3, , 4]);
279                            return [4 /*yield*/, this._api.post(url, null, headers)];
280                        case 2:
281                            result = _a.sent();
282                            return [2 /*return*/, result.data];
283                        case 3:
284                            error_9 = _a.sent();
285                            return [2 /*return*/, {
286                                    successful: false,
287                                    errorMessage: error_9.response,
288                                }];
289                        case 4: return [2 /*return*/];
290                    }
291                });
292            });
293        };
294        PageService.prototype.GetControlSettings = function (params, headers) {
295            return __awaiter(this, void 0, void 0, function () {
296                var url, result, error_10;
297                return __generator(this, function (_a) {
298                    switch (_a.label) {
299                        case 0:
300                            url = this.pageControlBaseUrl + "GetControlSettings";
301                            _a.label = 1;
302                        case 1:
303                            _a.trys.push([1, 3, , 4]);
304                            return [4 /*yield*/, this._api.get(url, params, headers)];
305                        case 2:
306                            result = _a.sent();
307                            return [2 /*return*/, result.data];
308                        case 3:
309                            error_10 = _a.sent();
310                            return [2 /*return*/, {
311                                    successful: false,
312                                    errorMessage: error_10.response,
313                                }];
314                        case 4: return [2 /*return*/];
315                    }
316                });
317            });
318        };
319        PageService.prototype.GetPageControlsInPage = function (params) {
320            return __awaiter(this, void 0, void 0, function () {
321                var url, result, error_11;
322                return __generator(this, function (_a) {
323                    switch (_a.label) {
324   
324                     case 0:
325                            url = this.pageControlBaseUrl + "GetPageControlsInPage";
326                            _a.label = 1;
327                        case 1:
328                            _a.trys.push([1, 3, , 4]);
329                            return [4 /*yield*/, this._api.get(url, params)];
330                        case 2:
331                            result = _a.sent();
332                            return [2 /*return*/, result.data];
333                        case 3:
334                            error_11 = _a.sent();
335                            return [2 /*return*/, {
336                                    successful: false,
337                                    errorMessage: error_11.response,
338                                }];
339                        case 4: return [2 /*return*/];
340                    }
341                });
342            });
343        };
344        PageService.prototype.GetPageDetailsByPageControlId = function (params, headers) {
345            return __awaiter(this, void 0, void 0, function () {
346                var url, result, error_12;
347                return __generator(this, function (_a) {
348                    switch (_a.label) {
349                        case 0:
350                            url = this.pageBaseUrl + "GetPageDetailsByPageControlId";
351                            _a.label = 1;
352                        case 1:
353                            _a.trys.push([1, 3, , 4]);
354                            return [4 /*yield*/, this._api.get(url, params, headers)];
355                        case 2:
356                            result = _a.sent();
357                            return [2 /*return*/, result.data];
358                        case 3:
359                            error_12 = _a.sent();
360                            return [2 /*return*/, {
361                                    successful: false,
362                                    errorMessage: error_12.response,
363                                }];
364                        case 4: return [2 /*return*/];
365                    }
366                });
367            });
368        };
369        PageService.prototype.GetPageName = function (pageId) {
370            return __awaiter(this, void 0, void 0, function () {
371                var url, result, error_13;
372                return __generator(this, function (_a) {
373                    switch (_a.label) {
374                        case 0:
375                            url = this.pageControlBaseUrl + "GetPageName";
376                            _a.label = 1;
377                        case 1:
378                            _a.trys.push([1, 3, , 4]);
379                            return [4 /*yield*/, this._api.get(url, {
380                                    pageId: pageId,
381                                })];
382                        case 2:
383                            result = _a.sent();
384                            return [2 /*return*/, result.data];
385                        case 3:
386                            error_13 = _a.sent();
387                            return [2 /*return*/, {
388                                    successful: false,
389                                    errorMessage: error_13.response,
390                                }];
391                        case 4: return [2 /*return*/];
392                    }
393                });
394            });
395        };
396        PageService.prototype.GetPageNameByPageControlId = function (pageControlId) {
397            return __awaiter(this, void 0, void 0, function () {
398                var url, result, error_14;
399                return __generator(this, function (_a) {
400                    switch (_a.label) {
401                        case 0:
402                            url = this.pageBaseUrl + "GetPageName";
403                            _a.label = 1;
404                        case 1:
405                            _a.trys.push([1, 3, , 4]);
406                            return [4 /*yield*/, this._api.get(url, {
407                                    pageControlId: pageControlId,
408                                })];
409                        case 2:
410                            result = _a.sent();
411                            return [2 /*return*/, result.data];
412                        case 3:
413                            error_14 = _a.sent();
414                            return [2 /*return*/, {
415                                    successful: false,
416                                    errorMessage: error_14.response,
417                                }];
418                        case 4: return [2 /*return*/];
419                    }
420                });
421            });
422        };
423        PageService.prototype.GetPages = function (payload, clubWebsiteId) {
424            return __awaiter(this, void 0, void 0, function () {
425                var url, result, error_15;
426                return __generator(this, function (_a) {
427                    switch (_a.label) {
428                        case 0:
429                            url = "".concat(this.pageBaseUrl, "GetPageResult?clubWebsiteId=").concat(clubWebsiteId);
430                            _a.label = 1;
431                        case 1:
432                            _a.trys.push([1, 3, , 4]);
433                            return [4 /*yield*/, this._api.get(url, payload)];
434                        case 2:
435                            result = _a.sent();
436                            return [2 /*return*/, result.data];
437                        case 3:
438                            error_15 = _a.sent();
439                            return [2 /*return*/, {
440                                    successful: false,
441                                    errorMessage: error_15.response,
442                                }];
443                        case 4: return [2 /*return*/];
444                    }
445                });
446            });
447        };
448        PageService.prototype.GetAllPages = function (payload) {
449            return __awaiter(this, void 0, void 0, function () {
450                var url, result, error_16;
451                return __generator(this, function (_a) {
452                    switch (_a.label) {
453                        case 0:
454                            url = "".concat(this.pageBaseUrl, "GetPages");
455                            _a.label = 1;
456                        case 1:
457                            _a.trys.push([1, 3, , 4]);
458                            return [4 /*yield*/, this._api.post(url, payload)];
459                        case 2:
460                            result = _a.sent();
461                            return [2 /*return*/, result.data];
462                        case 3:
463                            error_16 = _a.sent();
464                            return [2 /*return*/, {
465                                    successful: false,
466                                    errorMessage: error_16.response,
467                                }];
468                        case 4: return [2 /*return*/];
469                    }
470                });
471            });
472        };
473        PageService.prototype.CreateEmptyPage = function (payload) {
474            return __awaiter(this, void 0, void 0, function () {
475                var url, result, error_17;
476                return __generator(this, function (_a) {
477                    switch (_a.label) {
478                        case 0:
479                            url = "".concat(this.pageBaseUrl, "CreateEmptyPage");
480                            _a.label = 1;
481                        case 1:
482                            _a.trys.push([1, 3, , 4]);
483                            return [4 /*yield*/, this._api.post(url, payload)];
484                        case 2:
485                            result = _a.sent();
486                            return [2 /*return*/, result.data];
487                        case 3:
488                            error_17 = _a.sent();
489                            return [2 /*return*/, {
490                                    successful: false,
491                                    errorMessage: error_17.response,
492                                }];
493                        case 4: return [2 /*return*/];
494                    }
495                });
496            });
497        };
498        PageService.prototype.ClonePage = function (payload) {
499            return __awaiter(this, void 0, void 0, function () {
500                var url, result, error_18;
501                return __generator(this, function (_a) {
502                    switch (_a.label) {
503                        case 0:
504                            url = "".concat(this.pageBaseUrl, "ClonePage");
505                            _a.label = 1;
506                        case 1:
507                            _a.trys.push([1, 3, , 4]);
508                            return [4 /*yield*/, this._api.post(url, payload)];
509                        case 2:
510                            result = _a.sent();
511                            return [2 /*return*/, result.data];
512                        case 3:
513                            error_18 = _a.sent();
514                            return [2 /*return*/, {
515                                    successful: false,
516                                    errorMessage: error_18.response,
517                                }];
518                        case 4: return [2 /*return*/];
519                    }
520                });
521            });
522        };
523        PageService.prototype.SavePage = function (payload) {
524            return __awaiter(this, void 0, void 0, function () {
525                var url, result, error_19;
526                return __generator(this, function (_a) {
527                    switch (_a.label) {
528                        case 0:
529                            url = "".concat(this.pageBaseUrl, "SavePage");
530                            _a.label = 1;
531                        case 1:
532                            _a.trys.push([1, 3, , 4]);
533                            return [4 /*yield*/, this._api.post(url, payload)];
534                        case 2:
535                            result = _a.sent();
536                            return [2 /*return*/, result.data];
537                        case 3:
538                            error_19 = _a.sent();
539                            return [2 /*return*/, {
540                                    successful: false,
541                                    errorMessage: error_19.response,
542                                }];
543                        case 4: return [2 /*return*/];
544                    }
545                });
546            });
547        };
548        PageService.prototype.GetPage = function (pageId) {
549            return __awaiter(this, void 0, void 0, function () {
550                var url, result, error_20;
551                return __generator(this, function (_a) {
552                    switch (_a.label) {
553                        case 0:
554                            url = "".concat(this.pageBaseUrl, "GetPage?pageId=").concat(pageId);
555                            _a.label = 1;
556                        case 1:
557                            _a.trys.push([1, 3, , 4]);
558                            return [4 /*yield*/, this._api.get(url)];
559                        case 2:
560                            result = _a.sent();
561                            return [2 /*return*/, result.data];
562                        case 3:
563                            error_20 = _a.sent();
564                            return [2 /*return*/, {
565                                    successful: false,
566                                    errorMessage: error_20.response,
567                                }];
568                        case 4: return [2 /*return*/];
569                    }
570                });
571            });
572        };
573        PageService.prototype.IsPageExists = function (payload) {
574            return __awaiter(this, void 0, void 0, function () {
575                var url, result, error_21;
576                return __generator(this, function (_a) {
577                    switch (_a.label) {
578                        case 0:
579                            url = "".concat(this.pageBaseUrl, "IsPageExists");
580                            _a.label = 1;
581                        case 1:
582                            _a.trys.push([1, 3, , 4]);
583                            return [4 /*yield*/, this._api.post(url, payload)];
584                        case 2:
585                            result = _a.sent();
586                            return [2 /*return*/, result.data];
587                        case 3:
588                            error_21 = _a.sent();
589                            return [2 /*return*/, {
590                                    successful: false,
591                                    errorMessage: error_21.response,
592                                }];
593                        case 4: return [2 /*return*/];
594                    }
595                });
596            });
597        };
598        PageService.prototype.UpdatePublishPage = function (pageId, publish) {
599            return __awaiter(this, void 0, void 0, function () {
600                var url, result, error_22;
601                return __generator(this, function (_a) {
602                    switch (_a.label) {
603                        case 0:
604                            url = "".concat(this.pageBaseUrl, "UpdatePublishPage?pageId=").concat(pageId, "&publish=").concat(publish);
605                            _a.label = 1;
606                        case 1:
607                            _a.trys.push([1, 3, , 4]);
608                            return [4 /*yield*/, this._api.post(url)];
609                        case 2:
610                            result = _a.sent();
611                            return [2 /*return*/, result.data];
612                        case 3:
613                            error_22 = _a.sent();
614                            return [2 /*return*/, {
615                                    successful: false,
616                                    errorMessage: error_22.response,
617                                }];
618                        case 4: return [2 /*return*/];
619                    }
620                });
621            });
622        };
623        PageService.prototype.GetPageBreadcrumbControl = function (pageId, breadcrumbControlLocation) {
624            return __awaiter(this, void 0, void 0, function () {
625                var url, result, error_23;
626                return __generator(this, function (_a) {
627                    switch (_a.label) {
628                        case 0:
629                            url = "".concat(this.pageBaseUrl, "GetPageBreadcrumbControl");
630                            _a.label = 1;
631                        case 1:
632                            _a.trys.push([1, 3, , 4]);
633                            return [4 /*yield*/, this._api.get(url, {
634                                    pageId: pageId,
635                                    breadcrumbControlLocation: breadcrumbControlLocation
636                                })];
637                        case 2:
638                            result = _a.sent();
639                            return [2 /*return*/, result.data];
640                        case 3:
641                            error_23 = _a.sent();
642                            return [2 /*return*/, {
643                                    successful: false,
644                                    errorMessage: error_23.response,
645                                }];
646                        case 4: return [2 /*return*/];
647                    }
648                });
649            });
650        };
651        PageService.prototype.SaveContentHtml = function (payload) {
652            return __awaiter(this, void 0, void 0, function () {
653                var url, result, error_24;
654                return __generator(this, function (_a) {
655                    switch (_a.label) {
656                        case 0:
657                            url = "".concat(this.pageControlBaseUrl, "SaveContentHtml");
658                            _a.label = 1;
659                        case 1:
660                            _a.trys.push([1, 3, , 4]);
661                            return [4 /*yield*/, this._api.post(url, payload)];
662                        case 2:
663                            result = _a.sent();
664                            return [2 /*return*/, result.data];
665                        case 3:
666                            error_24 = _a.sent();
667                            return [2 /*return*/, {
668                                    successful: false,
669                                    errorMessage: error_24.response,
670                                }];
671                        case 4: return [2 /*return*/];
672                    }
673                
673});
674            });
675        };
676        PageService.prototype.GetCompetitionJsonContent = function (competitionId) {
677            return __awaiter(this, void 0, void 0, function () {
678                var url, result, error_25;
679                return __generator(this, function (_a) {
680                    switch (_a.label) {
681                        case 0:
682                            url = this.pageControlBaseUrl + "GetControlJsonContent";
683                            _a.label = 1;
684                        case 1:
685                            _a.trys.push([1, 3, , 4]);
686                            return [4 /*yield*/, this._api.get(url, {
687                                    competitionId: competitionId
688                                })];
689                        case 2:
690                            result = _a.sent();
691                            return [2 /*return*/, result.data];
692                        case 3:
693                            error_25 = _a.sent();
694                            return [2 /*return*/, {
695                                    successful: false,
696                                    errorMessage: error_25.response,
697                                }];
698                        case 4: return [2 /*return*/];
699                    }
700                });
701            });
702        };
703        PageService.prototype.UpsertCompetitionJsonContent = function (competitionId, jsonContent) {
704            return __awaiter(this, void 0, void 0, function () {
705                var url, result, error_26;
706                return __generator(this, function (_a) {
707                    switch (_a.label) {
708                        case 0:
709                            url = this.pageControlBaseUrl + "UpdateControlJsonContent";
710                            _a.label = 1;
711                        case 1:
712                            _a.trys.push([1, 3, , 4]);
713                            return [4 /*yield*/, this._api.post(url, {
714                                    competitionId: competitionId,
715                                    jsonContent: jsonContent,
716                                })];
717                        case 2:
718                            result = _a.sent();
719                            return [2 /*return*/, result.data];
720                        case 3:
721                            error_26 = _a.sent();
722                            return [2 /*return*/, {
723                                    successful: false,
724                                    errorMessage: error_26.response,
725                                }];
726                        case 4: return [2 /*return*/];
727                    }
728                });
729            });
730        };
731        return PageService;
732    }());
733    AppServices.PageService = PageService;
734})(AppServices || (AppServices = {}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.