All files / output zcl_abapgit_gui_page_sett_info.clas.mjs

6.67% Statements 49/734
66.66% Branches 2/3
4.54% Functions 1/22
6.67% Lines 49/734

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 7341x 1x 1x                                         1x 1x 1x                         1x       1x 1x 1x                         1x       1x             1x             1x 1x     1x       1x 1x             1x             1x 1x 1x 1x 1x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {zcl_abapgit_gui_component} = await import("./zcl_abapgit_gui_component.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_gui_page_sett_info.clas.abap
class zcl_abapgit_gui_page_sett_info extends zcl_abapgit_gui_component {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_PAGE_SETT_INFO';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER","ZIF_ABAPGIT_GUI_RENDERABLE"];
  static ATTRIBUTES = {"MO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MI_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MT_STATS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
  "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
  "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["MEASURE"]},"secondary":[]}, "");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "C_ID": {"type": () => {return new abap.types.Structure({
  "info": new abap.types.String({qualifiedName: "STRING"}),
  "created_by": new abap.types.String({qualifiedName: "STRING"}),
  "created_at": new abap.types.String({qualifiedName: "STRING"}),
  "deserialized_by": new abap.types.String({qualifiedName: "STRING"}),
  "deserialized_at": new abap.types.String({qualifiedName: "STRING"}),
  "stats": new abap.types.String({qualifiedName: "STRING"}),
  "stats_table": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"GET_FORM_SCHEMA": {"visibility": "I", "parameters": {"RO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " "}}},
  "READ_SETTINGS": {"visibility": "I", "parameters": {}},
  "READ_STATS": {"visibility": "I", "parameters": {}},
  "READ_STATS_FILES": {"visibility": "I", "parameters": {"ET_LOCAL": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "file": new abap.types.Structure({
  "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
  "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
  "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
  "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
  "item": new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt");}, "is_optional": " "}, "ET_REMOTE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
  "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
  "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
  "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt");}, "is_optional": " "}}},
  "READ_STATS_STATE": {"visibility": "I", "parameters": {}},
  "READ_STATS_SIZE_LINES_SLOC": {"visibility": "I", "parameters": {"IT_LOCAL": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "file": new abap.types.Structure({
  "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
  "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
  "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
  "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
  "item": new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt");}, "is_optional": " "}, "IT_REMOTE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
  "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
  "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
  "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt");}, "is_optional": " "}, "ET_LOCAL_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "is_optional": " "}, "ET_REMOTE_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "is_optional": " "}}},
  "READ_STATS_FILE": {"visibility": "I", "parameters": {"RS_INFO": {"type": () => {return new abap.types.Structure({
  "size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
  "line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
  "sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});}, "is_optional": " "}, "IS_FILE": {"type": () => {return new abap.types.Structure({
  "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
  "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
  "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
  "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {});}, "is_optional": " "}}},
  "READ_STATS_OBJECTS": {"visibility": "I", "parameters": {"CT_LOCAL_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "is_optional": " "}, "CT_REMOTE_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
  "srcsystem": new abap.types.Character(5, {}),
  "origlang": new abap.types.Character(1, {}),
  "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "is_optional": " "}}},
  "FORMAT_USER": {"visibility": "I", "parameters": {"RV_USER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_USERNAME": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"});}, "is_optional": " "}}},
  "FORMAT_TIMESTAMP": {"visibility": "I", "parameters": {"RV_TIMESTAMP": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TIMESTAMP": {"type": () => {return new abap.types.Packed({length: 21, decimals: 7, qualifiedName: "TIMESTAMPL"});}, "is_optional": " "}}},
  "FORMAT_SIZE": {"visibility": "I", "parameters": {"RV_SIZE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_SIZE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "CREATE": {"visibility": "U", "parameters": {"RI_PAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "is_optional": " "}, "II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}},
  "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}}};
  #mo_form;
  #mo_form_data;
  #mi_repo;
  #mt_stats;
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "get_form_schema": this.#get_form_schema.bind(this),
      "read_settings": this.#read_settings.bind(this),
      "read_stats": this.#read_stats.bind(this),
      "read_stats_files": this.#read_stats_files.bind(this),
      "read_stats_state": this.#read_stats_state.bind(this),
      "read_stats_size_lines_sloc": this.#read_stats_size_lines_sloc.bind(this),
      "read_stats_file": this.#read_stats_file.bind(this),
      "read_stats_objects": this.#read_stats_objects.bind(this),
      "format_user": this.#format_user.bind(this),
      "format_timestamp": this.#format_timestamp.bind(this),
      "format_size": this.#format_size.bind(this),
    };
    this.#mo_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
    this.FRIENDS_ACCESS_INSTANCE["mo_form"] = this.#mo_form;
    this.#mo_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    this.FRIENDS_ACCESS_INSTANCE["mo_form_data"] = this.#mo_form_data;
    this.#mi_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});
    this.FRIENDS_ACCESS_INSTANCE["mi_repo"] = this.#mi_repo;
    this.#mt_stats = abap.types.TableFactory.construct(new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["MEASURE"]},"secondary":[]}, "");
    this.FRIENDS_ACCESS_INSTANCE["mt_stats"] = this.#mt_stats;
    this.c_id = zcl_abapgit_gui_page_sett_info.c_id;
  }
  async constructor_(INPUT) {
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    await super.constructor_();
    this.#mo_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
    this.#mi_repo.set(ii_repo);
    this.#mo_form.set((await this.#get_form_schema()));
    return this;
  }
  async create(INPUT) {
    return zcl_abapgit_gui_page_sett_info.create(INPUT);
  }
  static async create(INPUT) {
    let ri_page = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    let lo_component = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_PAGE_SETT_INFO"});
    lo_component.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_PAGE_SETT_INFO']()).constructor_({ii_repo: ii_repo}));
    ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_HOC'].create({iv_page_title: abap.CharacterFactory.get(16, 'Repository Stats'), io_page_menu: (await abap.Classes['ZCL_ABAPGIT_GUI_MENUS'].repo_settings({iv_key: (await ii_repo.get().zif_abapgit_repo$get_key()), iv_act: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().repo_infos})), ii_child_component: lo_component})));
    return ri_page;
  }
  async #format_size(INPUT) {
    let rv_size = new abap.types.String({qualifiedName: "STRING"});
    let iv_size = INPUT?.iv_size;
    if (iv_size?.getQualifiedName === undefined || iv_size.getQualifiedName() !== "I") { iv_size = undefined; }
    if (iv_size === undefined) { iv_size = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.iv_size); }
    let lv_size = new abap.types.Packed({length: 16, decimals: 2});
    if (abap.compare.gt(iv_size, abap.operators.multiply(abap.operators.multiply(new abap.types.Integer().set(1024),new abap.types.Integer().set(1024)),new abap.types.Integer().set(1024)))) {
      lv_size.set(abap.operators.divide(abap.operators.divide(abap.operators.divide(iv_size,new abap.types.Integer().set(1024)),new abap.types.Integer().set(1024)),new abap.types.Integer().set(1024)));
      rv_size.set(new abap.types.String().set(`${abap.templateFormatting(lv_size)} GB`));
    } else if (abap.compare.gt(iv_size, abap.operators.multiply(new abap.types.Integer().set(1024),new abap.types.Integer().set(1024)))) {
      lv_size.set(abap.operators.divide(abap.operators.divide(iv_size,new abap.types.Integer().set(1024)),new abap.types.Integer().set(1024)));
      rv_size.set(new abap.types.String().set(`${abap.templateFormatting(lv_size)} MB`));
    } else if (abap.compare.gt(iv_size, new abap.types.Integer().set(1024))) {
      lv_size.set(abap.operators.divide(iv_size,new abap.types.Integer().set(1024)));
      rv_size.set(new abap.types.String().set(`${abap.templateFormatting(lv_size)} KB`));
    } else {
      rv_size.set(new abap.types.String().set(`${abap.templateFormatting(iv_size)} Bytes`));
    }
    return rv_size;
  }
  async #format_timestamp(INPUT) {
    let rv_timestamp = new abap.types.String({qualifiedName: "STRING"});
    let iv_timestamp = INPUT?.iv_timestamp;
    if (iv_timestamp?.getQualifiedName === undefined || iv_timestamp.getQualifiedName() !== "TIMESTAMPL") { iv_timestamp = undefined; }
    if (iv_timestamp === undefined) { iv_timestamp = new abap.types.Packed({length: 21, decimals: 7, qualifiedName: "TIMESTAMPL"}).set(INPUT.iv_timestamp); }
    let lv_short = new abap.types.Packed({length: 15, decimals: 0, qualifiedName: "TIMESTAMP"});
    if (abap.compare.initial(iv_timestamp)) {
      rv_timestamp.set(abap.CharacterFactory.get(3, 'n/a'));
      return rv_timestamp;
    }
    await abap.Classes['CL_ABAP_TSTMP'].move({tstmp_src: iv_timestamp, tstmp_tgt: lv_short});
    rv_timestamp.set(new abap.types.String().set(`${abap.templateFormatting(lv_short,{"timestamp":"iso"})}`));
    return rv_timestamp;
  }
  async #format_user(INPUT) {
    let rv_user = new abap.types.String({qualifiedName: "STRING"});
    let iv_username = INPUT?.iv_username;
    if (iv_username?.getQualifiedName === undefined || iv_username.getQualifiedName() !== "SYUNAME") { iv_username = undefined; }
    if (iv_username === undefined) { iv_username = new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}).set(INPUT.iv_username); }
    let lv_title = new abap.types.String({qualifiedName: "STRING"});
    if (abap.compare.initial(iv_username)) {
      rv_user.set(abap.CharacterFactory.get(3, 'n/a'));
      return rv_user;
    }
    if (abap.compare.ne(iv_username, abap.Classes['ZCL_ABAPGIT_OBJECTS_SUPER'].c_user_unknown)) {
      lv_title.set((await (await abap.Classes['ZCL_ABAPGIT_ENV_FACTORY'].get_user_record()).get().zif_abapgit_user_record$get_title({iv_username: iv_username})));
    }
    rv_user.set(iv_username);
    if (abap.compare.initial(lv_title) === false) {
      rv_user.set(new abap.types.String().set(`${abap.templateFormatting(rv_user)} (${abap.templateFormatting(lv_title)})`));
    }
    return rv_user;
  }
  async #get_form_schema() {
    let ro_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
    let lv_label = new abap.types.String({qualifiedName: "STRING"});
    ro_form.set((await abap.Classes['ZCL_ABAPGIT_HTML_FORM'].create({iv_form_id: abap.CharacterFactory.get(15, 'repo-infos-form'), iv_help_page: abap.CharacterFactory.get(44, 'https://docs.abapgit.org/settings-stats.html')})));
    if (abap.compare.eq((await this.#mi_repo.get().zif_abapgit_repo$is_offline()), abap.builtin.abap_true)) {
      lv_label.set(abap.CharacterFactory.get(8, 'ZIP File'));
    } else {
      lv_label.set(abap.CharacterFactory.get(6, 'Remote'));
    }
    await (await (await (await (await (await (await (await (await (await ro_form.get().start_group({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().info, iv_label: abap.CharacterFactory.get(5, 'Stats')})).get().text({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().created_by, iv_label: abap.CharacterFactory.get(10, 'Created By'), iv_readonly: abap.builtin.abap_true})).get().text({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().created_at, iv_label: abap.CharacterFactory.get(10, 'Created At'), iv_readonly: abap.builtin.abap_true})).get().text({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_by, iv_label: abap.CharacterFactory.get(20, 'Last Deserialized By'), iv_readonly: abap.builtin.abap_true})).get().text({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_at, iv_label: abap.CharacterFactory.get(20, 'Last Deserialized At'), iv_readonly: abap.builtin.abap_true})).get().table({iv_name: zcl_abapgit_gui_page_sett_info.c_id.get().stats_table, iv_label: abap.CharacterFactory.get(10, 'Statistics')})).get().column({iv_label: abap.CharacterFactory.get(7, 'Measure'), iv_width: abap.CharacterFactory.get(3, '50%'), iv_readonly: abap.builtin.abap_true})).get().column({iv_label: abap.CharacterFactory.get(5, 'Local'), iv_width: abap.CharacterFactory.get(3, '25%'), iv_readonly: abap.builtin.abap_true})).get().column({iv_label: lv_label, iv_width: abap.CharacterFactory.get(3, '25%'), iv_readonly: abap.builtin.abap_true})).get().command({iv_label: abap.CharacterFactory.get(4, 'Back'), iv_action: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back});
    return ro_form;
  }
  async #read_settings() {
    let ls_repo = new abap.types.Structure({
    "key": new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"}),
    "url": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-URL"}),
    "branch_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-BRANCH_NAME"}),
    "selected_commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "created_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}),
    "created_at": new abap.types.Packed({length: 21, decimals: 7, qualifiedName: "TIMESTAMPL"}),
    "deserialized_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}),
    "deserialized_at": new abap.types.Packed({length: 21, decimals: 7, qualifiedName: "TIMESTAMPL"}),
    "offline": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "switched_origin": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-SWITCHED_ORIGIN"}),
    "dot_abapgit": new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-NAME"}),
    "master_language": new abap.types.Character(1, {"qualifiedName":"SPRAS","ddicName":"SPRAS","description":"SPRAS"}),
    "i18n_languages": abap.types.TableFactory.construct(new abap.types.Character(2, {"qualifiedName":"LAISO","ddicName":"LAISO","description":"LAISO"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_languages"),
    "use_lxe": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "without_translation": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit-without_translation"),
    "starting_folder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-STARTING_FOLDER"}),
    "folder_logic": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-FOLDER_LOGIC"}),
    "ignore": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit-ignore"),
    "requirements": abap.types.TableFactory.construct(new abap.types.Structure({
    "component": new abap.types.Character(30, {"description":"DLVUNIT"}),
    "min_release": new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"}),
    "min_patch": new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"})}, "zif_abapgit_dot_abapgit=>ty_requirement", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_requirement_tt"),
    "version_constant": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-VERSION_CONSTANT"}),
    "abap_language_version": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-ABAP_LANGUAGE_VERSION"}),
    "original_system": new abap.types.Character(5, {})}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit", undefined, {}, {}),
    "head_branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-HEAD_BRANCH"}),
    "local_settings": new abap.types.Structure({
    "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_LOCAL_SETTINGS-DISPLAY_NAME"}),
    "ignore_subpackages": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "write_protected": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "only_local_objects": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "code_inspector_check_variant": new abap.types.Character(30, {"qualifiedName":"SCI_CHKV","ddicName":"SCI_CHKV","description":"SCI_CHKV"}),
    "block_commit": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "main_language_only": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suppress_lxe_po_comments": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "labels": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_LOCAL_SETTINGS-LABELS"}),
    "transport_request": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "customizing_request": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "flow": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "exclude_remote_paths": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE")}, "zif_abapgit_persistence=>ty_local_settings", undefined, {}, {})}, "zif_abapgit_persistence=>ty_repo", undefined, {}, {});
    let ls_stats = new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
    let lv_row = new abap.types.Integer({qualifiedName: "I"});
    let lv_int = new abap.types.Integer({qualifiedName: "I"});
    let lv_val = new abap.types.String({qualifiedName: "STRING"});
    try {
      ls_repo.set((await (await abap.Classes['ZCL_ABAPGIT_PERSIST_FACTORY'].get_repo()).get().zif_abapgit_persist_repo$read({iv_key: (await this.#mi_repo.get().zif_abapgit_repo$get_key())})));
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_NOT_FOUND'] && e instanceof abap.Classes['ZCX_ABAPGIT_NOT_FOUND'])) {
        await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`Repo not found, key ${abap.templateFormatting((await this.#mi_repo.get().zif_abapgit_repo$get_key()))}`)});
      } else {
        throw e;
      }
    }
    await this.#read_stats();
    await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_info.c_id.get().created_by, iv_val: (await this.#format_user({iv_username: ls_repo.get().created_by}))});
    await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_info.c_id.get().created_at, iv_val: (await this.#format_timestamp({iv_timestamp: ls_repo.get().created_at}))});
    await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_by, iv_val: (await this.#format_user({iv_username: ls_repo.get().deserialized_by}))});
    await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_at, iv_val: (await this.#format_timestamp({iv_timestamp: ls_repo.get().deserialized_at}))});
    for await (const unique894 of abap.statements.loop(this.#mt_stats)) {
      ls_stats.set(unique894);
      lv_row.set(abap.builtin.sy.get().tabix);
      const indexBackup1 = abap.builtin.sy.get().index.get();
      const unique895 = abap.IntegerFactory.get(3).get();
      for (let unique896 = 0; unique896 < unique895; unique896++) {
        abap.builtin.sy.get().index.set(unique896 + 1);
        let unique897 = abap.builtin.sy.get().index;
        if (abap.compare.eq(unique897, abap.IntegerFactory.get(1))) {
          lv_val.set(ls_stats.get().measure);
        } else if (abap.compare.eq(unique897, abap.IntegerFactory.get(2))) {
          lv_val.set(ls_stats.get().local);
        } else if (abap.compare.eq(unique897, abap.IntegerFactory.get(3))) {
          lv_val.set(ls_stats.get().remote);
        }
        if (abap.compare.cs(ls_stats.get().measure, abap.CharacterFactory.get(4, 'Size')) && abap.compare.between(abap.builtin.sy.get().index, abap.IntegerFactory.get(2), abap.IntegerFactory.get(3))) {
          lv_int.set(lv_val);
          lv_val.set((await this.#format_size({iv_size: lv_int})));
        }
        await this.#mo_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_info.c_id.get().stats_table)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`), iv_val: lv_val});
      }
      abap.builtin.sy.get().index.set(indexBackup1);
    }
    await this.#mo_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_info.c_id.get().stats_table)}-${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_rows)}`), iv_val: new abap.types.String().set(`${abap.templateFormatting(lv_row)}`)});
  }
  async #read_stats() {
    let lt_local = abap.types.TableFactory.construct(new abap.types.Structure({
    "file": new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt");
    let lt_remote = abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt");
    let lt_local_items = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    let lt_remote_items = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    this.#mt_stats.clear();
    await this.#read_stats_files({et_local: lt_local, et_remote: lt_remote});
    await this.#read_stats_state();
    await this.#read_stats_size_lines_sloc({it_local: lt_local, it_remote: lt_remote, et_local_items: lt_local_items, et_remote_items: lt_remote_items});
    await this.#read_stats_objects({ct_local_items: lt_local_items, ct_remote_items: lt_remote_items});
  }
  async #read_stats_file(INPUT) {
    let rs_info = new abap.types.Structure({
    "size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
    "line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
    "sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});
    let is_file = INPUT?.is_file;
    if (is_file?.getQualifiedName === undefined || is_file.getQualifiedName() !== "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE") { is_file = undefined; }
    if (is_file === undefined) { is_file = new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}).set(INPUT.is_file); }
    
    let lv_code = new abap.types.String({qualifiedName: "STRING"});
    let lt_code = abap.types.TableFactory.construct(new abap.types.Character(255, {"qualifiedName":"ty_char255"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
    let fs_ls_code_ = new abap.types.FieldSymbol(new abap.types.Character(255, {"qualifiedName":"ty_char255"}));
    rs_info.get().size.set(abap.builtin.xstrlen({val: is_file.get().data}));
    if (abap.compare.cp(is_file.get().filename, abap.CharacterFactory.get(6, '*.abap'))) {
      try {
        lv_code.set((await abap.Classes['ZCL_ABAPGIT_CONVERT'].xstring_to_string_utf8({iv_data: is_file.get().data})));
      } catch (e) {
        if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        } else {
          throw e;
        }
      }
      abap.statements.split({source: lv_code, at: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline, table: lt_code});
      rs_info.get().line.set(abap.builtin.lines({val: lt_code}));
      for await (const unique898 of abap.statements.loop(lt_code,{where: async (I) => {return abap.compare.initial(I.table_line) === false && abap.compare.ne(new abap.OffsetLength(I.table_line, {length: 1}), abap.CharacterFactory.get(1, '*'));}})) {
        fs_ls_code_.assign(unique898);
        abap.statements.shift(fs_ls_code_, {direction: 'LEFT',deletingLeading: abap.builtin.space});
        if (abap.compare.ne(fs_ls_code_.getOffset({length: 1}), abap.CharacterFactory.get(1, '"'))) {
          rs_info.get().sloc.set(abap.operators.add(rs_info.get().sloc,abap.IntegerFactory.get(1)));
        }
      }
    }
    return rs_info;
  }
  async #read_stats_files(INPUT) {
    let et_local = INPUT?.et_local || abap.types.TableFactory.construct(new abap.types.Structure({
    "file": new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt");
    let et_remote = INPUT?.et_remote || abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt");
    let ls_stats = new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
    let lt_remote_wo_ignored = abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt");
    et_local.set((await this.#mi_repo.get().zif_abapgit_repo$get_files_local()));
    ls_stats.get().measure.set(abap.CharacterFactory.get(15, 'Number of Files'));
    ls_stats.get().local.set(abap.builtin.lines({val: et_local}));
    if (abap.compare.eq((await this.#mi_repo.get().zif_abapgit_repo$has_remote_source()), abap.builtin.abap_true)) {
      et_remote.set((await this.#mi_repo.get().zif_abapgit_repo$get_files_remote()));
      ls_stats.get().remote.set(abap.builtin.lines({val: et_remote}));
      lt_remote_wo_ignored.set((await this.#mi_repo.get().zif_abapgit_repo$get_files_remote({iv_ignore_files: abap.builtin.abap_true})));
    }
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
    if (abap.compare.initial(et_remote) === false) {
      ls_stats.clear();
      ls_stats.get().measure.set(abap.CharacterFactory.get(23, 'Number of Ignored Files'));
      ls_stats.get().remote.set(abap.operators.minus(abap.builtin.lines({val: et_remote}),abap.builtin.lines({val: lt_remote_wo_ignored})));
      abap.statements.append({source: ls_stats, target: this.#mt_stats});
    }
  }
  async #read_stats_objects(INPUT) {
    let ct_local_items = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    if (INPUT && INPUT.ct_local_items) {ct_local_items = INPUT.ct_local_items;}
    let ct_remote_items = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    if (INPUT && INPUT.ct_remote_items) {ct_remote_items = INPUT.ct_remote_items;}
    let ls_stats = new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    let lt_supported_types = abap.types.TableFactory.construct(new abap.types.Character(4, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_objects=>ty_types_tt");
    ls_stats.get().measure.set(abap.CharacterFactory.get(17, 'Number of Objects'));
    await abap.statements.deleteInternal(ct_local_items,{where: async (I) => {return abap.compare.initial(I.obj_type) || abap.compare.initial(I.obj_name);}});
    ls_stats.get().local.set(abap.builtin.lines({val: ct_local_items}));
    await abap.statements.deleteInternal(ct_remote_items,{where: async (I) => {return abap.compare.initial(I.obj_type) || abap.compare.initial(I.obj_name);}});
    ls_stats.get().remote.set(abap.builtin.lines({val: ct_remote_items}));
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
    ls_stats.clear();
    ls_stats.get().measure.set(abap.CharacterFactory.get(29, 'Number of Unsupported Objects'));
    ls_stats.get().local.set((abap.builtin.lines({val: (await this.#mi_repo.get().zif_abapgit_repo$get_unsupported_objects_local())})));
    lt_supported_types.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].supported_list()));
    for await (const unique899 of abap.statements.loop(ct_remote_items)) {
      ls_item.set(unique899);
      abap.statements.readTable(lt_supported_types,{withKey: (i) => {return abap.compare.eq(i.table_line, ls_item.get().obj_type);},
        withKeyValue: [{key: (i) => {return i.table_line}, value: ls_item.get().obj_type}],
        usesTableLine: true,
        withKeySimple: {"table_line": ls_item.get().obj_type}});
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        ls_stats.get().remote.set(abap.operators.add(ls_stats.get().remote,abap.IntegerFactory.get(1)));
      }
    }
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
  }
  async #read_stats_size_lines_sloc(INPUT) {
    let it_local = INPUT?.it_local;
    if (it_local?.getQualifiedName === undefined || it_local.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_FILES_ITEM_TT") { it_local = undefined; }
    if (it_local === undefined) { it_local = abap.types.TableFactory.construct(new abap.types.Structure({
    "file": new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt").set(INPUT.it_local); }
    let it_remote = INPUT?.it_remote;
    if (it_remote?.getQualifiedName === undefined || it_remote.getQualifiedName() !== "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILES_TT") { it_remote = undefined; }
    if (it_remote === undefined) { it_remote = abap.types.TableFactory.construct(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt").set(INPUT.it_remote); }
    let et_local_items = INPUT?.et_local_items || abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    let et_remote_items = INPUT?.et_remote_items || abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");
    let ls_stats = new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
    let lv_ignored = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let ls_info_file = new abap.types.Structure({
    "size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
    "line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
    "sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});
    let ls_info_local = new abap.types.Structure({
    "size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
    "line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
    "sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});
    let ls_info_remote = new abap.types.Structure({
    "size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
    "line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
    "sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});
    let ls_item = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {});
    let fs_ls_local_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "file": new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}));
    let fs_ls_remote_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}));
    for await (const unique900 of abap.statements.loop(it_local)) {
      fs_ls_local_.assign(unique900);
      ls_info_file.set((await this.#read_stats_file({is_file: fs_ls_local_.get().file})));
      ls_info_local.get().size.set(abap.operators.add(ls_info_local.get().size,ls_info_file.get().size));
      ls_info_local.get().line.set(abap.operators.add(ls_info_local.get().line,ls_info_file.get().line));
      ls_info_local.get().sloc.set(abap.operators.add(ls_info_local.get().sloc,ls_info_file.get().sloc));
      abap.statements.collect(fs_ls_local_.get().item,et_local_items);
    }
    if (abap.compare.eq((await this.#mi_repo.get().zif_abapgit_repo$has_remote_source()), abap.builtin.abap_true)) {
      for await (const unique901 of abap.statements.loop(it_remote,{where: async (I) => {return abap.compare.initial(I.filename) === false;}})) {
        fs_ls_remote_.assign(unique901);
        lv_ignored.set((await (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()).get().is_ignored({iv_filename: fs_ls_remote_.get().filename, iv_path: fs_ls_remote_.get().path})));
        if (abap.compare.eq(lv_ignored, abap.builtin.abap_false)) {
          ls_info_file.set((await this.#read_stats_file({is_file: fs_ls_remote_})));
          ls_info_remote.get().size.set(abap.operators.add(ls_info_remote.get().size,ls_info_file.get().size));
          ls_info_remote.get().line.set(abap.operators.add(ls_info_remote.get().line,ls_info_file.get().line));
          ls_info_remote.get().sloc.set(abap.operators.add(ls_info_remote.get().sloc,ls_info_file.get().sloc));
          try {
            await abap.Classes['ZCL_ABAPGIT_FILENAME_LOGIC'].file_to_object({iv_filename: fs_ls_remote_.get().filename, iv_path: fs_ls_remote_.get().path, iv_devclass: (await this.#mi_repo.get().zif_abapgit_repo$get_package()), io_dot: (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()), es_item: ls_item});
            abap.statements.collect(ls_item,et_remote_items);
          } catch (e) {
            if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
            } else {
              throw e;
            }
          }
        }
      }
    }
    ls_stats.get().measure.set(abap.CharacterFactory.get(13, 'Size of Files'));
    ls_stats.get().local.set(ls_info_local.get().size);
    ls_stats.get().remote.set(ls_info_remote.get().size);
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
    ls_stats.get().measure.set(abap.CharacterFactory.get(19, 'Lines in ABAP Files'));
    ls_stats.get().local.set(ls_info_local.get().line);
    ls_stats.get().remote.set(ls_info_remote.get().line);
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
    ls_stats.get().measure.set(abap.CharacterFactory.get(27, 'Lines of Code in ABAP Files'));
    ls_stats.get().local.set(ls_info_local.get().sloc);
    ls_stats.get().remote.set(ls_info_remote.get().sloc);
    abap.statements.append({source: ls_stats, target: this.#mt_stats});
  }
  async #read_stats_state() {
    let lt_results = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}),
    "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}),
    "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}),
    "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");
    let lv_state = new abap.types.Character(1, {});
    let ls_stats = new abap.types.Structure({
    "measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
    "local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
    "remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
    let fs_ls_result_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}),
    "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}),
    "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}),
    "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {}));
    lt_results.set((await abap.Classes['ZCL_ABAPGIT_REPO_STATUS'].calculate({ii_repo: this.#mi_repo})));
    const indexBackup1 = abap.builtin.sy.get().index.get();
    const unique902 = abap.IntegerFactory.get(3).get();
    for (let unique903 = 0; unique903 < unique902; unique903++) {
      abap.builtin.sy.get().index.set(unique903 + 1);
      ls_stats.clear();
      let unique904 = abap.builtin.sy.get().index;
      if (abap.compare.eq(unique904, abap.IntegerFactory.get(1))) {
        ls_stats.get().measure.set(abap.CharacterFactory.get(24, 'Number of Modified Files'));
        lv_state.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().modified);
      } else if (abap.compare.eq(unique904, abap.IntegerFactory.get(2))) {
        ls_stats.get().measure.set(abap.CharacterFactory.get(21, 'Number of Added Files'));
        lv_state.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().added);
      } else if (abap.compare.eq(unique904, abap.IntegerFactory.get(3))) {
        ls_stats.get().measure.set(abap.CharacterFactory.get(23, 'Number of Deleted Files'));
        lv_state.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().deleted);
      }
      for await (const unique905 of abap.statements.loop(lt_results)) {
        fs_ls_result_.assign(unique905);
        if (abap.compare.eq(fs_ls_result_.get().lstate, lv_state)) {
          ls_stats.get().local.set(abap.operators.add(ls_stats.get().local,abap.IntegerFactory.get(1)));
        }
        if (abap.compare.eq(fs_ls_result_.get().rstate, lv_state) && abap.compare.eq((await this.#mi_repo.get().zif_abapgit_repo$has_remote_source()), abap.builtin.abap_true)) {
          ls_stats.get().remote.set(abap.operators.add(ls_stats.get().remote,abap.IntegerFactory.get(1)));
        }
      }
      abap.statements.append({source: ls_stats, target: this.#mt_stats});
    }
    abap.builtin.sy.get().index.set(indexBackup1);
  }
  async zif_abapgit_gui_event_handler$on_event(INPUT) {
    let rs_handled = new abap.types.Structure({
    "page": new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}),
    "state": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT_HANDLER=>TY_HANDLING_RESULT-STATE"})}, "zif_abapgit_gui_event_handler=>ty_handling_result", undefined, {}, {});
    let ii_event = INPUT?.ii_event;
    if (ii_event?.getQualifiedName === undefined || ii_event.getQualifiedName() !== "ZIF_ABAPGIT_GUI_EVENT") { ii_event = undefined; }
    if (ii_event === undefined) { ii_event = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_EVENT"}).set(INPUT.ii_event); }
    if (abap.compare.eq(ii_event.get().zif_abapgit_gui_event$mv_action, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back)) {
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().go_back_to_bookmark);
    }
    return rs_handled;
  }
  async zif_abapgit_gui_renderable$render() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    await this.register_handlers();
    await this.#read_settings();
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="repo">`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_repo_top({ii_repo: this.#mi_repo, iv_show_commit: abap.builtin.abap_false, iv_interactive_branch: abap.builtin.abap_true}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#mo_form.get().render({io_values: this.#mo_form_data}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`</div>`)});
    return ri_html;
  }
}
abap.Classes['ZCL_ABAPGIT_GUI_PAGE_SETT_INFO'] = zcl_abapgit_gui_page_sett_info;
zcl_abapgit_gui_page_sett_info.c_id = new abap.types.Structure({
"info": new abap.types.String({qualifiedName: "STRING"}),
"created_by": new abap.types.String({qualifiedName: "STRING"}),
"created_at": new abap.types.String({qualifiedName: "STRING"}),
"deserialized_by": new abap.types.String({qualifiedName: "STRING"}),
"deserialized_at": new abap.types.String({qualifiedName: "STRING"}),
"stats": new abap.types.String({qualifiedName: "STRING"}),
"stats_table": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_sett_info.c_id.get().info.set('info');
zcl_abapgit_gui_page_sett_info.c_id.get().created_by.set('created_by');
zcl_abapgit_gui_page_sett_info.c_id.get().created_at.set('created_at');
zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_by.set('deserialized_by');
zcl_abapgit_gui_page_sett_info.c_id.get().deserialized_at.set('deserialized_at');
zcl_abapgit_gui_page_sett_info.c_id.get().stats.set('stats');
zcl_abapgit_gui_page_sett_info.c_id.get().stats_table.set('stats_table');
zcl_abapgit_gui_page_sett_info.ty_stats = new abap.types.Structure({
"measure": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-MEASURE"}),
"local": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-LOCAL"}),
"remote": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_INFO=>TY_STATS-REMOTE"})}, "zcl_abapgit_gui_page_sett_info=>ty_stats", undefined, {}, {});
zcl_abapgit_gui_page_sett_info.ty_infos = new abap.types.Structure({
"size": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-size"}),
"line": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-line"}),
"sloc": new abap.types.Packed({length: 16, decimals: 0, qualifiedName: "zcl_abapgit_gui_page_sett_info=>ty_infos-sloc"})}, "zcl_abapgit_gui_page_sett_info=>ty_infos", undefined, {}, {});
export {zcl_abapgit_gui_page_sett_info};