All files / output zcl_abapgit_gui_page_stage.clas.mjs

5.03% Statements 58/1153
66.66% Branches 2/3
2.77% Functions 1/36
5.03% Lines 58/1153

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 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 11531x 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 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {zcl_abapgit_gui_component} = await import("./zcl_abapgit_gui_component.clas.mjs");
await import("./zcl_abapgit_gui_page_stage.clas.locals.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_gui_page_stage.clas.abap
class zcl_abapgit_gui_page_stage extends zcl_abapgit_gui_component {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_PAGE_STAGE';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER","ZIF_ABAPGIT_GUI_HOTKEYS","ZIF_ABAPGIT_GUI_MENU_PROVIDER","ZIF_ABAPGIT_GUI_RENDERABLE"];
  static ATTRIBUTES = {"MI_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MI_REPO_ONLINE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MS_FILES": {"type": () => {return new abap.types.Structure({
  "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"),
  "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"),
  "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_SEED": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_FILTER_VALUE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_SCI_RESULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MI_OBJ_FILTER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "C_ACTION": {"type": () => {return new abap.types.Structure({
  "stage_refresh": new abap.types.String({qualifiedName: "STRING"}),
  "stage_all": new abap.types.String({qualifiedName: "STRING"}),
  "stage_commit": new abap.types.String({qualifiedName: "STRING"}),
  "stage_filter": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"FIND_CHANGED_BY": {"visibility": "I", "parameters": {"RT_CHANGED_BY": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "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, {}, {}),
  "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
  "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["ITEM","FILENAME"]},"secondary":[]}, "zcl_abapgit_gui_page_stage=>ty_changed_by_tt");}, "is_optional": " "}, "IT_FILES": {"type": () => {return new abap.types.Structure({
  "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"),
  "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"),
  "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {});}, "is_optional": " "}, "IT_TRANSPORTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]},"secondary":[]}, "zif_abapgit_cts_api=>ty_transport_list");}, "is_optional": " "}}},
  "FIND_TRANSPORTS": {"visibility": "I", "parameters": {"RT_TRANSPORTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "obj_type": new abap.types.Character(4, {}),
  "obj_name": new abap.types.Character(40, {}),
  "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]},"secondary":[]}, "zif_abapgit_cts_api=>ty_transport_list");}, "is_optional": " "}, "IT_FILES": {"type": () => {return new abap.types.Structure({
  "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"),
  "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"),
  "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {});}, "is_optional": " "}}},
  "RENDER_LIST": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}},
  "RENDER_FILE": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}, "IV_CONTEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "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": " "}, "IS_ITEM": {"type": () => {return 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, {}, {});}, "is_optional": " "}, "IS_STATUS": {"type": () => {return 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, {}, {});}, "is_optional": " "}, "IV_CHANGED_BY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"});}, "is_optional": " "}, "IV_TRANSPORT": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});}, "is_optional": " "}}},
  "RENDER_ACTIONS": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}},
  "STAGE_SELECTED": {"visibility": "I", "parameters": {"RO_STAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});}, "is_optional": " "}, "II_EVENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_EVENT"});}, "is_optional": " "}}},
  "STAGE_ALL": {"visibility": "I", "parameters": {"RO_STAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});}, "is_optional": " "}}},
  "GET_PAGE_PATCH": {"visibility": "I", "parameters": {"RI_PAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "is_optional": " "}, "IO_STAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});}, "is_optional": " "}}},
  "RENDER_MAIN_LANGUAGE_WARNING": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}},
  "COUNT_DEFAULT_FILES_TO_COMMIT": {"visibility": "I", "parameters": {"RV_COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "RENDER_DEFERRED_HIDDEN_EVENTS": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}},
  "RENDER_SCRIPTS": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}},
  "INIT_FILES": {"visibility": "I", "parameters": {}},
  "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_ONLINE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"});}, "is_optional": " "}, "IV_SEED": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_SCI_RESULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});}, "is_optional": " "}, "II_OBJ_FILTER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});}, "is_optional": " "}, "II_FORCE_REFRESH": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_REPO_ONLINE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"});}, "is_optional": " "}, "IV_SEED": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_SCI_RESULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});}, "is_optional": " "}, "II_OBJ_FILTER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});}, "is_optional": " "}, "II_FORCE_REFRESH": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}};
  #mi_repo;
  #mi_repo_online;
  #ms_files;
  #mv_seed;
  #mv_filter_value;
  #mv_sci_result;
  #mi_obj_filter;
  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,
      "find_changed_by": this.#find_changed_by.bind(this),
      "find_transports": this.#find_transports.bind(this),
      "render_list": this.#render_list.bind(this),
      "render_file": this.#render_file.bind(this),
      "render_actions": this.#render_actions.bind(this),
      "stage_selected": this.#stage_selected.bind(this),
      "stage_all": this.#stage_all.bind(this),
      "get_page_patch": this.#get_page_patch.bind(this),
      "render_main_language_warning": this.#render_main_language_warning.bind(this),
      "count_default_files_to_commit": this.#count_default_files_to_commit.bind(this),
      "render_deferred_hidden_events": this.#render_deferred_hidden_events.bind(this),
      "render_scripts": this.#render_scripts.bind(this),
      "init_files": this.#init_files.bind(this),
    };
    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.#mi_repo_online = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"});
    this.FRIENDS_ACCESS_INSTANCE["mi_repo_online"] = this.#mi_repo_online;
    this.#ms_files = new abap.types.Structure({
    "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"),
    "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"),
    "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {});
    this.FRIENDS_ACCESS_INSTANCE["ms_files"] = this.#ms_files;
    this.#mv_seed = new abap.types.String({qualifiedName: "STRING"});
    this.FRIENDS_ACCESS_INSTANCE["mv_seed"] = this.#mv_seed;
    this.#mv_filter_value = new abap.types.String({qualifiedName: "STRING"});
    this.FRIENDS_ACCESS_INSTANCE["mv_filter_value"] = this.#mv_filter_value;
    this.#mv_sci_result = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});
    this.FRIENDS_ACCESS_INSTANCE["mv_sci_result"] = this.#mv_sci_result;
    this.#mi_obj_filter = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});
    this.FRIENDS_ACCESS_INSTANCE["mi_obj_filter"] = this.#mi_obj_filter;
    this.c_action = zcl_abapgit_gui_page_stage.c_action;
  }
  async constructor_(INPUT) {
    let ii_repo_online = INPUT?.ii_repo_online;
    if (ii_repo_online?.getQualifiedName === undefined || ii_repo_online.getQualifiedName() !== "ZIF_ABAPGIT_REPO_ONLINE") { ii_repo_online = undefined; }
    if (ii_repo_online === undefined) { ii_repo_online = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"}).set(INPUT.ii_repo_online); }
    let iv_seed = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_seed) {iv_seed.set(INPUT.iv_seed);}
    let iv_sci_result = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});
    if (INPUT && INPUT.iv_sci_result) {iv_sci_result.set(INPUT.iv_sci_result);}
    if (INPUT === undefined || INPUT.iv_sci_result === undefined) {iv_sci_result = abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_sci_result.get().no_run;}
    let ii_obj_filter = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});
    if (INPUT && INPUT.ii_obj_filter) {ii_obj_filter.set(INPUT.ii_obj_filter);}
    let ii_force_refresh = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.ii_force_refresh) {ii_force_refresh.set(INPUT.ii_force_refresh);}
    if (INPUT === undefined || INPUT.ii_force_refresh === undefined) {ii_force_refresh = abap.builtin.abap_true;}
    let lv_ts = new abap.types.Packed({length: 15, decimals: 0, qualifiedName: "TIMESTAMP"});
    await super.constructor_();
    this.#mi_repo.set(ii_repo_online);
    this.#mi_repo_online.set(ii_repo_online);
    this.#mv_seed.set(iv_seed);
    this.#mv_sci_result.set(iv_sci_result);
    this.#mi_obj_filter.set(ii_obj_filter);
    if (abap.compare.eq(ii_force_refresh, abap.builtin.abap_true)) {
      await ii_repo_online.get().zif_abapgit_repo$refresh();
    }
    if (abap.compare.initial(this.#mv_seed)) {
      abap.statements.getTime({stamp: lv_ts});
      this.#mv_seed.set(new abap.types.String().set(`stage${abap.templateFormatting(lv_ts)}`));
    }
    await this.#init_files();
    return this;
  }
  async #count_default_files_to_commit() {
    let rv_count = new abap.types.Integer({qualifiedName: "I"});
    let fs_ls_status_ = 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, {}, {}));
    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, {}, {}));
    rv_count.set(abap.builtin.lines({val: this.#ms_files.get().local}));
    for await (const unique991 of abap.statements.loop(this.#ms_files.get().remote)) {
      fs_ls_remote_.assign(unique991);
      abap.statements.readTable(this.#ms_files.get().status,{withTableKey: true,
        assigning: fs_ls_status_,
        withKey: (i) => {return abap.compare.eq(i.path, fs_ls_remote_.get().path) && abap.compare.eq(i.filename, fs_ls_remote_.get().filename);},
        withKeyValue: [{key: (i) => {return i.path}, value: fs_ls_remote_.get().path},{key: (i) => {return i.filename}, value: fs_ls_remote_.get().filename}],
        usesTableLine: false,
        withKeySimple: {"path": fs_ls_remote_.get().path,"filename": fs_ls_remote_.get().filename}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      if (abap.compare.eq(fs_ls_status_.get().lstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().deleted) && abap.compare.eq(fs_ls_status_.get().rstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().unchanged)) {
        rv_count.set(abap.operators.add(rv_count,abap.IntegerFactory.get(1)));
      }
    }
    return rv_count;
  }
  async create(INPUT) {
    return zcl_abapgit_gui_page_stage.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_online = INPUT?.ii_repo_online;
    if (ii_repo_online?.getQualifiedName === undefined || ii_repo_online.getQualifiedName() !== "ZIF_ABAPGIT_REPO_ONLINE") { ii_repo_online = undefined; }
    if (ii_repo_online === undefined) { ii_repo_online = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO_ONLINE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO_ONLINE"}).set(INPUT.ii_repo_online); }
    let iv_seed = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_seed) {iv_seed.set(INPUT.iv_seed);}
    let iv_sci_result = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_sci_result"});
    if (INPUT && INPUT.iv_sci_result) {iv_sci_result.set(INPUT.iv_sci_result);}
    if (INPUT === undefined || INPUT.iv_sci_result === undefined) {iv_sci_result = abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_sci_result.get().no_run;}
    let ii_obj_filter = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});
    if (INPUT && INPUT.ii_obj_filter) {ii_obj_filter.set(INPUT.ii_obj_filter);}
    let ii_force_refresh = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.ii_force_refresh) {ii_force_refresh.set(INPUT.ii_force_refresh);}
    if (INPUT === undefined || INPUT.ii_force_refresh === undefined) {ii_force_refresh = abap.builtin.abap_true;}
    let lo_component = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_PAGE_STAGE"});
    lo_component.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_PAGE_STAGE']()).constructor_({ii_repo_online: ii_repo_online, iv_seed: iv_seed, iv_sci_result: iv_sci_result, ii_force_refresh: ii_force_refresh, ii_obj_filter: ii_obj_filter}));
    ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_HOC'].create({iv_page_title: abap.CharacterFactory.get(5, 'Stage'), ii_page_menu_provider: lo_component, ii_child_component: lo_component})));
    return ri_page;
  }
  async #find_changed_by(INPUT) {
    let rt_changed_by = abap.types.TableFactory.construct(new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["ITEM","FILENAME"]},"secondary":[]}, "zcl_abapgit_gui_page_stage=>ty_changed_by_tt");
    let it_files = INPUT?.it_files;
    if (it_files?.getQualifiedName === undefined || it_files.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_STAGE_FILES") { it_files = undefined; }
    if (it_files === undefined) { it_files = new abap.types.Structure({
    "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"),
    "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"),
    "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {}).set(INPUT.it_files); }
    let it_transports = INPUT?.it_transports;
    if (it_transports?.getQualifiedName === undefined || it_transports.getQualifiedName() !== "ZIF_ABAPGIT_CTS_API=>TY_TRANSPORT_LIST") { it_transports = undefined; }
    if (it_transports === undefined) { it_transports = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]},"secondary":[]}, "zif_abapgit_cts_api=>ty_transport_list").set(INPUT.it_transports); }
    let ls_local = 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 ls_remote = 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, {}, {});
    let ls_changed_by = new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {});
    let lt_changed_by_remote = abap.types.TableFactory.construct(new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["ITEM","FILENAME"]},"secondary":[]}, "zcl_abapgit_gui_page_stage=>ty_changed_by_tt");
    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 lv_transport = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {});
    let lv_user = new abap.types.Character(12, {"qualifiedName":"UNAME","ddicName":"UNAME","description":"UNAME"});
    let fs_ls_changed_by_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}));
    for await (const unique992 of abap.statements.loop(it_files.get().local,{where: async (I) => {return abap.compare.initial(I.item) === false;}})) {
      ls_local.set(unique992);
      ls_changed_by.get().item.set(ls_local.get().item);
      ls_changed_by.get().filename.set(ls_local.get().file.get().filename);
      ls_changed_by.get().name.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].changed_by({is_item: ls_local.get().item, iv_filename: ls_local.get().file.get().filename})));
      abap.statements.insertInternal({data: ls_changed_by, table: rt_changed_by});
    }
    for await (const unique993 of abap.statements.loop(it_files.get().remote,{where: async (I) => {return abap.compare.initial(I.filename) === false;}})) {
      ls_remote.set(unique993);
      try {
        await abap.Classes['ZCL_ABAPGIT_FILENAME_LOGIC'].file_to_object({iv_filename: ls_remote.get().filename, iv_path: ls_remote.get().path, io_dot: (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()), es_item: ls_item});
        ls_changed_by.get().item.set(ls_item);
        abap.statements.insertInternal({data: ls_changed_by, table: lt_changed_by_remote});
      } catch (e) {
        if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        } else {
          throw e;
        }
      }
    }
    for await (const unique994 of abap.statements.loop(lt_changed_by_remote)) {
      fs_ls_changed_by_.assign(unique994);
      lv_transport.clear();
      abap.statements.readTable(it_transports,{into: lv_transport,
        withKey: (i) => {return abap.compare.eq(i.obj_type, fs_ls_changed_by_.get().item.get().obj_type) && abap.compare.eq(i.obj_name, fs_ls_changed_by_.get().item.get().obj_name);},
        withKeyValue: [{key: (i) => {return i.obj_type}, value: fs_ls_changed_by_.get().item.get().obj_type},{key: (i) => {return i.obj_name}, value: fs_ls_changed_by_.get().item.get().obj_name}],
        usesTableLine: false,
        withKeySimple: {"obj_type": fs_ls_changed_by_.get().item.get().obj_type,"obj_name": fs_ls_changed_by_.get().item.get().obj_name}});
      if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        lv_user.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_cts_api()).get().zif_abapgit_cts_api$read_user({iv_trkorr: lv_transport.get().trkorr})));
        if (abap.compare.initial(lv_user) === false) {
          fs_ls_changed_by_.get().name.set(lv_user);
        }
      }
      if (abap.compare.initial(fs_ls_changed_by_.get().name)) {
        fs_ls_changed_by_.get().name.set(abap.Classes['ZCL_ABAPGIT_OBJECTS_SUPER'].c_user_unknown);
      }
    }
    abap.statements.insertInternal({lines: true, data: lt_changed_by_remote, table: rt_changed_by});
    return rt_changed_by;
  }
  async #find_transports(INPUT) {
    let rt_transports = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]},"secondary":[]}, "zif_abapgit_cts_api=>ty_transport_list");
    let it_files = INPUT?.it_files;
    if (it_files?.getQualifiedName === undefined || it_files.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_STAGE_FILES") { it_files = undefined; }
    if (it_files === undefined) { it_files = new abap.types.Structure({
    "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"),
    "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"),
    "status": 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":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["PATH","FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_results_ts_path")}, "zif_abapgit_definitions=>ty_stage_files", undefined, {}, {}).set(INPUT.it_files); }
    let li_cts_api = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_CTS_API", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_CTS_API"});
    let lt_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_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 lo_dot = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_DOT_ABAPGIT", RTTIName: "\\CLASS=ZCL_ABAPGIT_DOT_ABAPGIT"});
    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, {}, {}));
    li_cts_api.set((await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_cts_api()));
    try {
      for await (const unique995 of abap.statements.loop(it_files.get().local,{where: async (I) => {return abap.compare.initial(I.item) === false;}})) {
        fs_ls_local_.assign(unique995);
        if (abap.compare.eq((await li_cts_api.get().zif_abapgit_cts_api$is_chrec_possible_for_package({iv_package: fs_ls_local_.get().item.get().devclass})), abap.builtin.abap_false)) {
          return rt_transports;
        }
        abap.statements.append({source: fs_ls_local_.get().item, target: lt_items});
      }
      lo_dot.set((await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()));
      for await (const unique996 of abap.statements.loop(it_files.get().remote,{where: async (I) => {return abap.compare.initial(I.filename) === false;}})) {
        fs_ls_remote_.assign(unique996);
        await abap.Classes['ZCL_ABAPGIT_FILENAME_LOGIC'].file_to_object({iv_filename: fs_ls_remote_.get().filename, iv_path: fs_ls_remote_.get().path, io_dot: lo_dot, es_item: ls_item});
        if (abap.compare.initial(ls_item)) {
          continue;
        }
        abap.statements.append({source: ls_item, target: lt_items});
      }
      abap.statements.sort(lt_items,{by: [{component: "obj_type"},{component: "obj_name"}]});
      await abap.statements.deleteInternal(lt_items,{adjacent: true,comparing: ['obj_type','obj_name']});
      rt_transports.set((await li_cts_api.get().zif_abapgit_cts_api$get_transports_for_list({it_items: lt_items})));
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
      } else {
        throw e;
      }
    }
    return rt_transports;
  }
  async #get_page_patch(INPUT) {
    let ri_page = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});
    let io_stage = INPUT?.io_stage;
    if (io_stage?.getQualifiedName === undefined || io_stage.getQualifiedName() !== "ZCL_ABAPGIT_STAGE") { io_stage = undefined; }
    if (io_stage === undefined) { io_stage = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"}).set(INPUT.io_stage); }
    let lv_key = new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"});
    let lt_files = 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, {}, {}),
    "method": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_method"}),
    "status": 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, {}, {})}, "zif_abapgit_definitions=>ty_stage", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["FILE-PATH","FILE-FILENAME"]},"secondary":[]}, "zif_abapgit_definitions=>ty_stage_tt");
    lv_key.set((await this.#mi_repo.get().zif_abapgit_repo$get_key()));
    lt_files.set((await io_stage.get().get_all()));
    await abap.statements.deleteInternal(lt_files,{where: async (I) => {return abap.compare.ne(I.method, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_method.get().add) && abap.compare.ne(I.method, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_method.get().rm);}});
    ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_PATCH'].create({iv_key: lv_key, it_files: lt_files})));
    return ri_page;
  }
  async #init_files() {
    this.#ms_files.set((await (await abap.Classes['ZCL_ABAPGIT_STAGE_LOGIC'].get_stage_logic()).get().zif_abapgit_stage_logic$get({ii_repo_online: this.#mi_repo_online, ii_obj_filter: this.#mi_obj_filter})));
    if (abap.compare.eq(abap.builtin.lines({val: this.#ms_files.get().local}), abap.IntegerFactory.get(0)) && abap.compare.eq(abap.builtin.lines({val: this.#ms_files.get().remote}), abap.IntegerFactory.get(0))) {
      await this.#mi_repo.get().zif_abapgit_repo$refresh();
      await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(41, 'There are no changes that could be staged')});
    }
  }
  async #render_actions() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let lv_local_count = new abap.types.Integer({qualifiedName: "I"});
    let lv_add_all_txt = new abap.types.String({qualifiedName: "STRING"});
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    lv_local_count.set((await this.#count_default_files_to_commit()));
    if (abap.compare.gt(lv_local_count, abap.IntegerFactory.get(0))) {
      lv_add_all_txt.set(new abap.types.String().set(`Add All and Commit (${abap.templateFormatting(lv_local_count)})`));
    }
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(34, '<table class="w100 margin-v5"><tr>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(22, '<td class="indent5em">')});
    await ri_html.get().zif_abapgit_html$add_a({iv_act: abap.CharacterFactory.get(16, 'errorStub(event)'), iv_typ: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().onclick, iv_id: abap.CharacterFactory.get(20, 'commitSelectedButton'), iv_style: abap.CharacterFactory.get(13, 'display: none'), iv_txt: abap.CharacterFactory.get(47, 'Commit Selected (<span class="counter"></span>)'), iv_opt: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().strong});
    await ri_html.get().zif_abapgit_html$add_a({iv_act: abap.CharacterFactory.get(16, 'errorStub(event)'), iv_typ: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().onclick, iv_id: abap.CharacterFactory.get(20, 'commitFilteredButton'), iv_style: abap.CharacterFactory.get(13, 'display: none'), iv_txt: abap.CharacterFactory.get(62, 'Add <b>Filtered</b> and Commit (<span class="counter"></span>)')});
    await ri_html.get().zif_abapgit_html$add_a({iv_act: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_stage.c_action.get().stage_all)}`), iv_id: abap.CharacterFactory.get(15, 'commitAllButton'), iv_txt: lv_add_all_txt});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(18, '<td class="right">')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.operators.concat(abap.CharacterFactory.get(45, '<input class="stage-filter" id="objectSearch"'),abap.operators.concat(abap.CharacterFactory.get(43, ' type="search" placeholder="Filter Objects"'),new abap.types.String().set(` value="${abap.templateFormatting(this.#mv_filter_value)}">`)))});
    await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_sci_result({ii_html: ri_html, iv_sci_result: this.#mv_sci_result});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</tr>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '</table>')});
    return ri_html;
  }
  async #render_deferred_hidden_events() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let ls_event = new abap.types.Structure({
    "method": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_CHUNK_LIB=>TY_EVENT_SIGNATURE-METHOD"}),
    "name": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_CHUNK_LIB=>TY_EVENT_SIGNATURE-NAME"})}, "zcl_abapgit_gui_chunk_lib=>ty_event_signature", undefined, {}, {});
    ls_event.get().method.set(abap.CharacterFactory.get(4, 'post'));
    ls_event.get().name.set(abap.CharacterFactory.get(12, 'stage_commit'));
    ri_html.set((await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_event_as_form({is_event: ls_event})));
    await ri_html.get().zif_abapgit_html$set_title({iv_title: (await (await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_object_ref({p_object_ref: this.me})).get().get_relative_name())});
    return ri_html;
  }
  async #render_file(INPUT) {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_context = INPUT?.iv_context;
    if (iv_context?.getQualifiedName === undefined || iv_context.getQualifiedName() !== "STRING") { iv_context = undefined; }
    if (iv_context === undefined) { iv_context = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_context); }
    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 is_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, {}, {});
    if (INPUT && INPUT.is_item) {is_item.set(INPUT.is_item);}
    let is_status = INPUT?.is_status;
    if (is_status?.getQualifiedName === undefined || is_status.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT") { is_status = undefined; }
    if (is_status === undefined) { is_status = 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, {}, {}).set(INPUT.is_status); }
    let iv_changed_by = new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"});
    if (INPUT && INPUT.iv_changed_by) {iv_changed_by.set(INPUT.iv_changed_by);}
    let iv_transport = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});
    if (INPUT && INPUT.iv_transport) {iv_transport.set(INPUT.iv_transport);}
    let lv_param = new abap.types.String({qualifiedName: "STRING"});
    let lv_filename = new abap.types.String({qualifiedName: "STRING"});
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    lv_filename.set(abap.operators.concat(is_file.get().path,is_file.get().filename));
    abap.statements.replace({target: lv_filename, all: true, with: abap.CharacterFactory.get(6, '&nbsp;'), of: new abap.types.String().set(` `)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<tr class="${abap.templateFormatting(iv_context)}">`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(4, '<td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_item_state({iv_lstate: is_status.get().lstate, iv_rstate: is_status.get().rstate}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</td>')});
    let unique997 = iv_context;
    if (abap.compare.eq(unique997, abap.CharacterFactory.get(5, 'local'))) {
      lv_param.set((await abap.Classes['ZCL_ABAPGIT_HTML_ACTION_UTILS'].file_encode({iv_key: (await this.#mi_repo.get().zif_abapgit_repo$get_key()), ig_file: is_file})));
      lv_filename.set((await ri_html.get().zif_abapgit_html$a({iv_txt: lv_filename, iv_act: new abap.types.String().set(`${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_file_diff)}?${abap.templateFormatting(lv_param)}`)})));
      await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<td class="type">${abap.templateFormatting(is_item.get().obj_type)}</td>`)});
      await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<td class="name">${abap.templateFormatting(lv_filename)}</td>`)});
    } else if (abap.compare.eq(unique997, abap.CharacterFactory.get(6, 'remote'))) {
      await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<td class="type">${abap.templateFormatting(is_item.get().obj_type)}</td>`)});
      await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<td class="name">${abap.templateFormatting(lv_filename)}</td>`)});
    }
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(17, '<td class="user">')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_user_name({iv_username: iv_changed_by}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(22, '<td class="transport">')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_transport({iv_transport: iv_transport, iv_obj_type: is_item.get().obj_type, iv_obj_name: is_item.get().obj_name}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(25, '<td class="status">?</td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(21, '<td class="cmd"></td>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</tr>')});
    return ri_html;
  }
  async #render_list() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let lt_changed_by = abap.types.TableFactory.construct(new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["ITEM","FILENAME"]},"secondary":[]}, "zcl_abapgit_gui_page_stage=>ty_changed_by_tt");
    let ls_changed_by = new abap.types.Structure({
    "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, {}, {}),
    "filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
    "name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {});
    let lt_transports = abap.types.TableFactory.construct(new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]},"secondary":[]}, "zif_abapgit_cts_api=>ty_transport_list");
    let ls_transport = new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_cts_api=>ty_transport", undefined, {}, {});
    let ls_item_remote = 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_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, {}, {}));
    let fs_ls_status_ = 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, {}, {}));
    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, {}, {}));
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(44, '<table id="stageTab" class="stage_tab w100">')});
    lt_transports.set((await this.#find_transports({it_files: this.#ms_files})));
    lt_changed_by.set((await this.#find_changed_by({it_files: this.#ms_files, it_transports: lt_transports})));
    let unique999 = false;
    for await (const unique998 of abap.statements.loop(this.#ms_files.get().local)) {
      fs_ls_local_.assign(unique998);
      if (unique999 === false) {
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(25, '<thead><tr class="local">')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(30, '<th class="stage-status"></th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(35, '<th class="stage-objtype">Type</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(48, '<th title="Click filename to see diff">File</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(19, '<th>Changed by</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(18, '<th>Transport</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(9, '<th></th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(16, '<th class="cmd">')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(39, '<a>add</a>&#x2193; <a>reset</a>&#x2193;')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(13, '</tr></thead>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(7, '<tbody>')});
        unique999 = true;
      }
      abap.statements.readTable(lt_changed_by,{withTableKey: true,
        into: ls_changed_by,
        withKey: (i) => {return abap.compare.eq(i.item, fs_ls_local_.get().item) && abap.compare.eq(i.filename, fs_ls_local_.get().file.get().filename);},
        withKeyValue: [{key: (i) => {return i.item}, value: fs_ls_local_.get().item},{key: (i) => {return i.filename}, value: fs_ls_local_.get().file.get().filename}],
        usesTableLine: false,
        withKeySimple: {"item": fs_ls_local_.get().item,"filename": fs_ls_local_.get().file.get().filename}});
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        abap.statements.readTable(lt_changed_by,{into: ls_changed_by,
          withKey: (i) => {return abap.compare.eq(i.item, fs_ls_local_.get().item);},
          withKeyValue: [{key: (i) => {return i.item}, value: fs_ls_local_.get().item}],
          usesTableLine: false,
          withKeySimple: {"item": fs_ls_local_.get().item}});
      }
      abap.statements.readTable(lt_transports,{into: ls_transport,
        withKey: (i) => {return abap.compare.eq(i.obj_type, fs_ls_local_.get().item.get().obj_type) && abap.compare.eq(i.obj_name, fs_ls_local_.get().item.get().obj_name);},
        withKeyValue: [{key: (i) => {return i.obj_type}, value: fs_ls_local_.get().item.get().obj_type},{key: (i) => {return i.obj_name}, value: fs_ls_local_.get().item.get().obj_name}],
        usesTableLine: false,
        withKeySimple: {"obj_type": fs_ls_local_.get().item.get().obj_type,"obj_name": fs_ls_local_.get().item.get().obj_name}});
      abap.statements.readTable(this.#ms_files.get().status,{withTableKey: true,
        assigning: fs_ls_status_,
        withKey: (i) => {return abap.compare.eq(i.path, fs_ls_local_.get().file.get().path) && abap.compare.eq(i.filename, fs_ls_local_.get().file.get().filename);},
        withKeyValue: [{key: (i) => {return i.path}, value: fs_ls_local_.get().file.get().path},{key: (i) => {return i.filename}, value: fs_ls_local_.get().file.get().filename}],
        usesTableLine: false,
        withKeySimple: {"path": fs_ls_local_.get().file.get().path,"filename": fs_ls_local_.get().file.get().filename}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_file({iv_context: abap.CharacterFactory.get(5, 'local'), is_file: fs_ls_local_.get().file, is_item: fs_ls_local_.get().item, is_status: fs_ls_status_, iv_changed_by: ls_changed_by.get().name, iv_transport: ls_transport.get().trkorr}))});
      ls_transport.clear();
    }
    if (abap.builtin.sy.get().subrc.get() === 0) {
      await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '</tbody>')});
    }
    let unique1001 = false;
    for await (const unique1000 of abap.statements.loop(this.#ms_files.get().remote)) {
      fs_ls_remote_.assign(unique1000);
      if (unique1001 === false) {
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(26, '<thead><tr class="remote">')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(9, '<th></th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(9, '<th></th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(48, '<th colspan="3">Files to remove or non-code</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(9, '<th></th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(16, '<th class="cmd">')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(64, '<a>ignore</a>&#x2193; <a>remove</a>&#x2193; <a>reset</a>&#x2193;')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</th>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(13, '</tr></thead>')});
        await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(7, '<tbody>')});
        unique1001 = true;
      }
      abap.statements.readTable(this.#ms_files.get().status,{withTableKey: true,
        assigning: fs_ls_status_,
        withKey: (i) => {return abap.compare.eq(i.path, fs_ls_remote_.get().path) && abap.compare.eq(i.filename, fs_ls_remote_.get().filename);},
        withKeyValue: [{key: (i) => {return i.path}, value: fs_ls_remote_.get().path},{key: (i) => {return i.filename}, value: fs_ls_remote_.get().filename}],
        usesTableLine: false,
        withKeySimple: {"path": fs_ls_remote_.get().path,"filename": fs_ls_remote_.get().filename}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      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, io_dot: (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()), es_item: ls_item_remote});
        abap.statements.readTable(lt_transports,{into: ls_transport,
          withKey: (i) => {return abap.compare.eq(i.obj_type, ls_item_remote.get().obj_type) && abap.compare.eq(i.obj_name, ls_item_remote.get().obj_name);},
          withKeyValue: [{key: (i) => {return i.obj_type}, value: ls_item_remote.get().obj_type},{key: (i) => {return i.obj_name}, value: ls_item_remote.get().obj_name}],
          usesTableLine: false,
          withKeySimple: {"obj_type": ls_item_remote.get().obj_type,"obj_name": ls_item_remote.get().obj_name}});
        abap.statements.readTable(lt_changed_by,{withTableKey: true,
          into: ls_changed_by,
          withKey: (i) => {return abap.compare.eq(i.item, ls_item_remote) && abap.compare.eq(i.filename, fs_ls_remote_.get().filename);},
          withKeyValue: [{key: (i) => {return i.item}, value: ls_item_remote},{key: (i) => {return i.filename}, value: fs_ls_remote_.get().filename}],
          usesTableLine: false,
          withKeySimple: {"item": ls_item_remote,"filename": fs_ls_remote_.get().filename}});
        if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
          abap.statements.readTable(lt_changed_by,{into: ls_changed_by,
            withKey: (i) => {return abap.compare.eq(i.item, ls_item_remote);},
            withKeyValue: [{key: (i) => {return i.item}, value: ls_item_remote}],
            usesTableLine: false,
            withKeySimple: {"item": ls_item_remote}});
        }
      } catch (e) {
        if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
          ls_transport.clear();
        } else {
          throw e;
        }
      }
      await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_file({iv_context: abap.CharacterFactory.get(6, 'remote'), is_status: fs_ls_status_, is_file: fs_ls_remote_, is_item: ls_item_remote, iv_changed_by: ls_changed_by.get().name, iv_transport: ls_transport.get().trkorr}))});
    }
    if (abap.builtin.sy.get().subrc.get() === 0) {
      await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '</tbody>')});
    }
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '</table>')});
    return ri_html;
  }
  async #render_main_language_warning() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let lv_main_language = new abap.types.Character(1, {"qualifiedName":"SPRAS","ddicName":"SPRAS","description":"SPRAS"});
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    lv_main_language.set((await (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()).get().get_main_language()));
    if (abap.compare.ne(lv_main_language, abap.builtin.sy.get().langu)) {
      await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_warning_banner({iv_text: abap.operators.concat(new abap.types.String().set(`Caution: Main language of the repo is '${abap.templateFormatting(lv_main_language)}', `),new abap.types.String().set(`but you're logged on in '${abap.templateFormatting(abap.builtin.sy.get().langu)}'`))}))});
    }
    return ri_html;
  }
  async #render_scripts() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    await ri_html.get().zif_abapgit_html$set_title({iv_title: (await (await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_object_ref({p_object_ref: this.me})).get().get_relative_name())});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(20, 'var gStageParams = {')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`  seed:            "${abap.templateFormatting(this.#mv_seed)}",`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`  user:            "${abap.templateFormatting(abap.builtin.to_lower({val: abap.builtin.sy.get().uname}))}",`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(34, '  formAction:      "stage_commit",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`  patchAction:     "${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_patch)}",`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(23, '  focusFilterKey:  "f",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '  ids: {')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(34, '    stageTab:          "stageTab",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(41, '    commitAllBtn:      "commitAllButton",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(46, '    commitSelectedBtn: "commitSelectedButton",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(46, '    commitFilteredBtn: "commitFilteredButton",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(34, '    patchBtn:          "patchBtn",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(38, '    objectSearch:      "objectSearch",')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(3, '  }')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(1, '}')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(44, 'var gHelper = new StageHelper(gStageParams);')});
    return ri_html;
  }
  async #stage_all() {
    let ro_stage = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});
    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, {}, {}));
    let fs_ls_status_ = 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, {}, {}));
    ro_stage.set(await (new abap.Classes['ZCL_ABAPGIT_STAGE']()).constructor_());
    for await (const unique1002 of abap.statements.loop(this.#ms_files.get().local)) {
      fs_ls_local_.assign(unique1002);
      abap.statements.readTable(this.#ms_files.get().status,{withTableKey: true,
        assigning: fs_ls_status_,
        withKey: (i) => {return abap.compare.eq(i.path, fs_ls_local_.get().file.get().path) && abap.compare.eq(i.filename, fs_ls_local_.get().file.get().filename);},
        withKeyValue: [{key: (i) => {return i.path}, value: fs_ls_local_.get().file.get().path},{key: (i) => {return i.filename}, value: fs_ls_local_.get().file.get().filename}],
        usesTableLine: false,
        withKeySimple: {"path": fs_ls_local_.get().file.get().path,"filename": fs_ls_local_.get().file.get().filename}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      await ro_stage.get().add({iv_path: fs_ls_local_.get().file.get().path, iv_filename: fs_ls_local_.get().file.get().filename, is_status: fs_ls_status_, iv_data: fs_ls_local_.get().file.get().data});
    }
    for await (const unique1003 of abap.statements.loop(this.#ms_files.get().remote)) {
      fs_ls_remote_.assign(unique1003);
      abap.statements.readTable(this.#ms_files.get().status,{withTableKey: true,
        assigning: fs_ls_status_,
        withKey: (i) => {return abap.compare.eq(i.path, fs_ls_remote_.get().path) && abap.compare.eq(i.filename, fs_ls_remote_.get().filename);},
        withKeyValue: [{key: (i) => {return i.path}, value: fs_ls_remote_.get().path},{key: (i) => {return i.filename}, value: fs_ls_remote_.get().filename}],
        usesTableLine: false,
        withKeySimple: {"path": fs_ls_remote_.get().path,"filename": fs_ls_remote_.get().filename}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      if (abap.compare.eq(fs_ls_status_.get().lstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().deleted) && abap.compare.eq(fs_ls_status_.get().rstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().unchanged)) {
        await ro_stage.get().rm({iv_path: fs_ls_remote_.get().path, iv_filename: fs_ls_remote_.get().filename, is_status: fs_ls_status_});
      }
    }
    return ro_stage;
  }
  async #stage_selected(INPUT) {
    let ro_stage = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});
    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); }
    ro_stage.set((await (await abap.Classes['CLAS-ZCL_ABAPGIT_GUI_PAGE_STAGE-LCL_SELECTED'].get_instance()).get().lif_selected$stage_selected({ii_event: ii_event, it_status: this.#ms_files.get().status, it_local: this.#ms_files.get().local})));
    return ro_stage;
  }
  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); }
    let lo_stage = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STAGE", RTTIName: "\\CLASS=ZCL_ABAPGIT_STAGE"});
    let unique1004 = ii_event.get().zif_abapgit_gui_event$mv_action;
    if (abap.compare.eq(unique1004, zcl_abapgit_gui_page_stage.c_action.get().stage_all)) {
      lo_stage.set((await this.#stage_all()));
      rs_handled.get().page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_COMMIT'].create({ii_repo_online: this.#mi_repo_online, io_stage: lo_stage, iv_sci_result: this.#mv_sci_result})));
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().new_page);
    } else if (abap.compare.eq(unique1004, zcl_abapgit_gui_page_stage.c_action.get().stage_commit)) {
      lo_stage.set((await this.#stage_selected({ii_event: ii_event})));
      rs_handled.get().page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_COMMIT'].create({ii_repo_online: this.#mi_repo_online, io_stage: lo_stage, iv_sci_result: this.#mv_sci_result})));
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().new_page);
    } else if (abap.compare.eq(unique1004, zcl_abapgit_gui_page_stage.c_action.get().stage_filter)) {
      this.#mv_filter_value.set((await (await ii_event.get().zif_abapgit_gui_event$form_data()).get().get({iv_key: abap.CharacterFactory.get(11, 'filterValue')})));
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().no_more_act);
    } else if (abap.compare.eq(unique1004, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_patch)) {
      lo_stage.set((await this.#stage_selected({ii_event: ii_event})));
      rs_handled.get().page.set((await this.#get_page_patch({io_stage: lo_stage})));
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().new_page);
    } else if (abap.compare.eq(unique1004, zcl_abapgit_gui_page_stage.c_action.get().stage_refresh)) {
      await this.#mi_repo.get().zif_abapgit_repo$refresh({iv_drop_cache: abap.builtin.abap_true});
      await this.#init_files();
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
    } else if (abap.compare.eq(unique1004, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().git_branch_switch)) {
      await abap.Classes['ZCL_ABAPGIT_SERVICES_GIT'].switch_branch({iv_key: new abap.types.String().set(`${abap.templateFormatting((await (await ii_event.get().zif_abapgit_gui_event$query()).get().get({iv_key: abap.CharacterFactory.get(3, 'KEY')})))}`)});
      await this.#mi_repo.get().zif_abapgit_repo$refresh({iv_drop_cache: abap.builtin.abap_true});
      await this.#init_files();
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
    }
    return rs_handled;
  }
  async zif_abapgit_gui_hotkeys$get_hotkey_actions() {
    let rt_hotkey_actions = abap.types.TableFactory.construct(new abap.types.Structure({
    "ui_component": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-UI_COMPONENT"}),
    "action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-ACTION"}),
    "hotkey": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-HOTKEY"}),
    "description": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-DESCRIPTION"})}, "zif_abapgit_gui_hotkeys=>ty_hotkey_with_descr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"action","type":"SORTED","isUnique":true,"keyFields":["UI_COMPONENT","ACTION"]}]}, "zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr");
    let ls_hotkey_action = new abap.types.Structure({
    "ui_component": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-UI_COMPONENT"}),
    "action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-ACTION"}),
    "hotkey": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-HOTKEY"}),
    "description": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-DESCRIPTION"})}, "zif_abapgit_gui_hotkeys=>ty_hotkey_with_descr", undefined, {}, {});
    ls_hotkey_action.get().ui_component.set(abap.CharacterFactory.get(5, 'Stage'));
    ls_hotkey_action.get().description.set(new abap.types.String().set(`Patch`));
    ls_hotkey_action.get().action.set(abap.CharacterFactory.get(11, 'submitPatch'));
    ls_hotkey_action.get().hotkey.set(new abap.types.String().set(`p`));
    abap.statements.insertInternal({data: ls_hotkey_action, table: rt_hotkey_actions});
    ls_hotkey_action.get().description.set(new abap.types.String().set(`Diff`));
    ls_hotkey_action.get().action.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_repo_diff);
    ls_hotkey_action.get().hotkey.set(new abap.types.String().set(`d`));
    abap.statements.insertInternal({data: ls_hotkey_action, table: rt_hotkey_actions});
    ls_hotkey_action.get().description.set(new abap.types.String().set(`Refresh`));
    ls_hotkey_action.get().action.set(zcl_abapgit_gui_page_stage.c_action.get().stage_refresh);
    ls_hotkey_action.get().hotkey.set(new abap.types.String().set(`r`));
    abap.statements.insertInternal({data: ls_hotkey_action, table: rt_hotkey_actions});
    ls_hotkey_action.get().description.set(new abap.types.String().set(`Focus filter`));
    ls_hotkey_action.get().action.set(new abap.types.String().set(`#`));
    ls_hotkey_action.get().hotkey.set(new abap.types.String().set(`f`));
    abap.statements.insertInternal({data: ls_hotkey_action, table: rt_hotkey_actions});
    return rt_hotkey_actions;
  }
  async zif_abapgit_gui_menu_provider$get_menu() {
    let ro_toolbar = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"});
    ro_toolbar.set((await abap.Classes['ZCL_ABAPGIT_HTML_TOOLBAR'].create({iv_id: abap.CharacterFactory.get(15, 'toolbar-staging')})));
    if (abap.compare.gt(abap.builtin.lines({val: this.#ms_files.get().local}), abap.IntegerFactory.get(0)) || abap.compare.gt(abap.builtin.lines({val: this.#ms_files.get().remote}), abap.IntegerFactory.get(0))) {
      await (await (await (await ro_toolbar.get().add({iv_txt: abap.CharacterFactory.get(7, 'Refresh'), iv_act: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_stage.c_action.get().stage_refresh)}`), iv_opt: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().strong})).get().add({iv_txt: new abap.types.String().set(`Diff`), iv_act: new abap.types.String().set(`${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_repo_diff)}?key=${abap.templateFormatting((await this.#mi_repo.get().zif_abapgit_repo$get_key()))}`)})).get().add({iv_txt: new abap.types.String().set(`Patch`), iv_typ: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().onclick, iv_id: new abap.types.String().set(`patchBtn`)})).get().add({iv_txt: new abap.types.String().set(`Back`), iv_act: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back});
    }
    return ro_toolbar;
  }
  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();
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(18, '<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 abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_js_error_banner())});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_main_language_warning())});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(29, '<div class="stage-container">')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_actions())});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_list())});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(6, '</div>')});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(6, '</div>')});
    await (await (await this.gui_services()).get().zif_abapgit_gui_services$get_html_parts()).get().add_part({iv_collection: abap.Classes['ZCL_ABAPGIT_GUI_COMPONENT'].c_html_parts.get().hidden_forms, ii_part: (await this.#render_deferred_hidden_events())});
    await this.register_deferred_script({ii_part: (await this.#render_scripts())});
    return ri_html;
  }
}
abap.Classes['ZCL_ABAPGIT_GUI_PAGE_STAGE'] = zcl_abapgit_gui_page_stage;
zcl_abapgit_gui_page_stage.c_action = new abap.types.Structure({
"stage_refresh": new abap.types.String({qualifiedName: "STRING"}),
"stage_all": new abap.types.String({qualifiedName: "STRING"}),
"stage_commit": new abap.types.String({qualifiedName: "STRING"}),
"stage_filter": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_stage.c_action.get().stage_refresh.set('stage_refresh');
zcl_abapgit_gui_page_stage.c_action.get().stage_all.set('stage_all');
zcl_abapgit_gui_page_stage.c_action.get().stage_commit.set('stage_commit');
zcl_abapgit_gui_page_stage.c_action.get().stage_filter.set('stage_filter');
zcl_abapgit_gui_page_stage.ty_changed_by = new abap.types.Structure({
"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, {}, {}),
"filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
"name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {});
zcl_abapgit_gui_page_stage.ty_changed_by_tt = abap.types.TableFactory.construct(new abap.types.Structure({
"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, {}, {}),
"filename": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_STAGE=>TY_CHANGED_BY-FILENAME"}),
"name": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"})}, "zcl_abapgit_gui_page_stage=>ty_changed_by", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["ITEM","FILENAME"]},"secondary":[]}, "zcl_abapgit_gui_page_stage=>ty_changed_by_tt");
export {zcl_abapgit_gui_page_stage};