All files / output zcl_abapgit_gui_page_pull.clas.mjs

5.09% Statements 18/353
66.66% Branches 2/3
10% Functions 1/10
5.09% Lines 18/353

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 3531x 1x 1x                                                                                                                                                 1x 1x 1x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {zcl_abapgit_gui_component} = await import("./zcl_abapgit_gui_component.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_gui_page_pull.clas.abap
class zcl_abapgit_gui_page_pull extends zcl_abapgit_gui_component {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_PAGE_PULL';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER","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_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": " "},
  "MO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MS_CHECKS": {"type": () => {return new abap.types.Structure({
  "overwrite": 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"}),
  "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
  "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
  "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
  "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
  "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
  "warning_package": 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"}),
  "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
  "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
  "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
  "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
  "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
  "data_loss": 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"}),
  "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
  "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
  "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
  "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
  "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
  "requirements": new abap.types.Structure({
  "met": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"}),
  "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_requirements", undefined, {}, {}),
  "dependencies": new abap.types.Structure({
  "met": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"}),
  "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_dependencies", undefined, {}, {}),
  "transport": new abap.types.Structure({
  "required": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
  "type": new abap.types.Structure({
  "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}),
  "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {})}, "zif_abapgit_definitions=>ty_transport", undefined, {}, {}),
  "customizing": new abap.types.Structure({
  "required": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
  "type": new abap.types.Structure({
  "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}),
  "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {})}, "zif_abapgit_definitions=>ty_transport", undefined, {}, {})}, "zif_abapgit_definitions=>ty_deserialize_checks", undefined, {}, {});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "C_ID": {"type": () => {return new abap.types.Structure({
  "transport_request": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "C_ACTION": {"type": () => {return new abap.types.Structure({
  "pull": new abap.types.String({qualifiedName: "STRING"}),
  "refresh": new abap.types.String({qualifiedName: "STRING"}),
  "choose_tr": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"PULL": {"visibility": "I", "parameters": {}},
  "FORM": {"visibility": "I", "parameters": {"RO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " "}}},
  "CHOOSE_TRANSPORT_REQUEST": {"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": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}, "IV_TRKORR": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});}, "is_optional": " "}, "II_OBJ_FILTER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});}, "is_optional": " "}}},
  "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}, "IV_TRKORR": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});}, "is_optional": " "}, "II_OBJ_FILTER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_OBJECT_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_OBJECT_FILTER"});}, "is_optional": " "}}}};
  #mi_repo;
  #mi_obj_filter;
  #mo_form_data;
  #ms_checks;
  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,
      "pull": this.#pull.bind(this),
      "form": this.#form.bind(this),
      "choose_transport_request": this.#choose_transport_request.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_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.#mo_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    this.FRIENDS_ACCESS_INSTANCE["mo_form_data"] = this.#mo_form_data;
    this.#ms_checks = new abap.types.Structure({
    "overwrite": 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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
    "warning_package": 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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
    "data_loss": 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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"object_type_and_name","type":"HASHED","isUnique":true,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_overwrite_tt"),
    "requirements": new abap.types.Structure({
    "met": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_requirements", undefined, {}, {}),
    "dependencies": new abap.types.Structure({
    "met": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_dependencies", undefined, {}, {}),
    "transport": new abap.types.Structure({
    "required": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "type": new abap.types.Structure({
    "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}),
    "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {})}, "zif_abapgit_definitions=>ty_transport", undefined, {}, {}),
    "customizing": new abap.types.Structure({
    "required": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}),
    "type": new abap.types.Structure({
    "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}),
    "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {})}, "zif_abapgit_definitions=>ty_transport", undefined, {}, {})}, "zif_abapgit_definitions=>ty_deserialize_checks", undefined, {}, {});
    this.FRIENDS_ACCESS_INSTANCE["ms_checks"] = this.#ms_checks;
    this.c_id = zcl_abapgit_gui_page_pull.c_id;
    this.c_action = zcl_abapgit_gui_page_pull.c_action;
  }
  async #choose_transport_request() {
    let lv_transport_request = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});
    lv_transport_request.set((await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()).get().zif_abapgit_popups$popup_transport_request()));
    if (abap.compare.initial(lv_transport_request) === false) {
      await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_pull.c_id.get().transport_request, iv_val: lv_transport_request});
    }
  }
  async constructor_(INPUT) {
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    let iv_trkorr = INPUT?.iv_trkorr;
    if (iv_trkorr?.getQualifiedName === undefined || iv_trkorr.getQualifiedName() !== "TRKORR") { iv_trkorr = undefined; }
    if (iv_trkorr === undefined) { iv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}).set(INPUT.iv_trkorr); }
    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);}
    await super.constructor_();
    this.#mi_repo.set(ii_repo);
    this.#mi_obj_filter.set(ii_obj_filter);
    this.#mo_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
    await this.#mo_form_data.get().set({iv_key: zcl_abapgit_gui_page_pull.c_id.get().transport_request, iv_val: iv_trkorr});
    return this;
  }
  async create(INPUT) {
    return zcl_abapgit_gui_page_pull.create(INPUT);
  }
  static async create(INPUT) {
    let ri_page = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    let iv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});
    if (INPUT && INPUT.iv_trkorr) {iv_trkorr.set(INPUT.iv_trkorr);}
    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 lo_component = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_PULL", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_PAGE_PULL"});
    lo_component.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_PAGE_PULL']()).constructor_({ii_repo: ii_repo, iv_trkorr: iv_trkorr, ii_obj_filter: ii_obj_filter}));
    ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_HOC'].create({iv_page_title: abap.CharacterFactory.get(4, 'Pull'), ii_page_menu_provider: lo_component, ii_child_component: lo_component})));
    return ri_page;
  }
  async #form() {
    let ro_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
    let lt_filter = abap.types.TableFactory.construct(new abap.types.Structure({
    "pgmid": new abap.types.Character(4, {}),
    "object": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "korrnum": new abap.types.Character(10, {}),
    "delflag": new abap.types.Character(1, {}),
    "genflag": new abap.types.Character(1, {}),
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}),
    "srcsystem": new abap.types.Character(5, {}),
    "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt");
    let fs_ls_overwrite_ = new abap.types.FieldSymbol(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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}));
    if (abap.compare.initial(this.#mi_obj_filter) === false) {
      lt_filter.set((await this.#mi_obj_filter.get().zif_abapgit_object_filter$get_filter()));
    }
    ro_form.set((await abap.Classes['ZCL_ABAPGIT_HTML_FORM'].create({iv_form_id: abap.CharacterFactory.get(9, 'pull-form')})));
    await ro_form.get().start_group({iv_name: abap.CharacterFactory.get(10, 'id-objects'), iv_label: abap.CharacterFactory.get(7, 'Objects')});
    for await (const unique968 of abap.statements.loop(this.#ms_checks.get().overwrite)) {
      fs_ls_overwrite_.assign(unique968);
      if (abap.compare.gt(abap.builtin.lines({val: lt_filter}), abap.IntegerFactory.get(0))) {
        abap.statements.readTable(lt_filter,{withKey: (i) => {return abap.compare.eq(i.object, fs_ls_overwrite_.get().obj_type) && abap.compare.eq(i.obj_name, fs_ls_overwrite_.get().obj_name);},
          withKeyValue: [{key: (i) => {return i.object}, value: fs_ls_overwrite_.get().obj_type},{key: (i) => {return i.obj_name}, value: fs_ls_overwrite_.get().obj_name}],
          usesTableLine: false,
          withKeySimple: {"object": fs_ls_overwrite_.get().obj_type,"obj_name": fs_ls_overwrite_.get().obj_name}});
        if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
          continue;
        }
      }
      await ro_form.get().checkbox({iv_label: new abap.types.String().set(`${abap.templateFormatting(fs_ls_overwrite_.get().obj_type)} ${abap.templateFormatting(fs_ls_overwrite_.get().obj_name)}`), iv_name: new abap.types.String().set(`${abap.templateFormatting(fs_ls_overwrite_.get().obj_type)}-${abap.templateFormatting(fs_ls_overwrite_.get().obj_name)}`)});
    }
    await ro_form.get().text({iv_name: zcl_abapgit_gui_page_pull.c_id.get().transport_request, iv_required: abap.builtin.abap_true, iv_upper_case: abap.builtin.abap_true, iv_side_action: zcl_abapgit_gui_page_pull.c_action.get().choose_tr, iv_max: abap.IntegerFactory.get(10), iv_label: new abap.types.String().set(`Transport Request`)});
    await (await ro_form.get().command({iv_label: abap.CharacterFactory.get(4, 'Pull'), iv_cmd_type: abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input_main, iv_action: zcl_abapgit_gui_page_pull.c_action.get().pull})).get().command({iv_label: abap.CharacterFactory.get(4, 'Back'), iv_action: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back});
    return ro_form;
  }
  async #pull() {
    let lv_value = new abap.types.String({qualifiedName: "STRING"});
    let fs_ls_overwrite_ = new abap.types.FieldSymbol(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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}));
    let fs_ls_warning_ = new abap.types.FieldSymbol(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"}),
    "state": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_definitions=>ty_overwrite-state"}),
    "action": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-ACTION"}),
    "icon": new abap.types.Character(4, {"qualifiedName":"ICON_D","ddicName":"ICON_D","description":"ICON_D"}),
    "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_OVERWRITE-TEXT"}),
    "decision": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_definitions=>ty_yes_no"})}, "zif_abapgit_definitions=>ty_overwrite", undefined, {}, {}));
    this.#ms_checks.get().transport.get().transport.set((await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_pull.c_id.get().transport_request})));
    for await (const unique969 of abap.statements.loop(this.#ms_checks.get().overwrite)) {
      fs_ls_overwrite_.assign(unique969);
      lv_value.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_overwrite_.get().obj_type)}-${abap.templateFormatting(fs_ls_overwrite_.get().obj_name)}`)})));
      if (abap.compare.eq(lv_value, abap.CharacterFactory.get(2, 'on'))) {
        fs_ls_overwrite_.get().decision.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_yes);
      } else {
        fs_ls_overwrite_.get().decision.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_no);
      }
    }
    for await (const unique970 of abap.statements.loop(this.#ms_checks.get().warning_package)) {
      fs_ls_warning_.assign(unique970);
      lv_value.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_warning_.get().obj_type)}-${abap.templateFormatting(fs_ls_warning_.get().obj_name)}`)})));
      if (abap.compare.eq(lv_value, abap.CharacterFactory.get(2, 'on'))) {
        fs_ls_warning_.get().decision.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_yes);
      } else {
        fs_ls_warning_.get().decision.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_no);
      }
    }
    await abap.Classes['ZCL_ABAPGIT_SERVICES_REPO'].real_deserialize({is_checks: this.#ms_checks, ii_repo: this.#mi_repo});
  }
  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); }
    await this.#mo_form_data.get().merge({io_string_map: (await ii_event.get().zif_abapgit_gui_event$form_data())});
    let unique971 = ii_event.get().zif_abapgit_gui_event$mv_action;
    if (abap.compare.eq(unique971, zcl_abapgit_gui_page_pull.c_action.get().refresh)) {
      await this.#mi_repo.get().zif_abapgit_repo$refresh();
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
    } else if (abap.compare.eq(unique971, zcl_abapgit_gui_page_pull.c_action.get().choose_tr)) {
      await this.#choose_transport_request();
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
    } else if (abap.compare.eq(unique971, zcl_abapgit_gui_page_pull.c_action.get().pull)) {
      await this.#pull();
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().go_back);
    }
    return rs_handled;
  }
  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(12, 'toolbar-pull')})));
    await ro_toolbar.get().add({iv_txt: abap.CharacterFactory.get(7, 'Refresh'), iv_act: zcl_abapgit_gui_page_pull.c_action.get().refresh});
    await ro_toolbar.get().add({iv_txt: abap.CharacterFactory.get(4, '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(27, '<div class="repo-overview">')});
    this.#ms_checks.set((await this.#mi_repo.get().zif_abapgit_repo$deserialize_checks()));
    if (abap.compare.eq(abap.builtin.lines({val: this.#ms_checks.get().overwrite}), abap.IntegerFactory.get(0))) {
      await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(83, 'There is nothing to pull. The local state completely matches the remote repository.')});
    }
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await (await this.#form()).get().render({io_values: this.#mo_form_data}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(6, '</div>')});
    return ri_html;
  }
}
abap.Classes['ZCL_ABAPGIT_GUI_PAGE_PULL'] = zcl_abapgit_gui_page_pull;
zcl_abapgit_gui_page_pull.c_id = new abap.types.Structure({
"transport_request": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_pull.c_id.get().transport_request.set('transport_request');
zcl_abapgit_gui_page_pull.c_action = new abap.types.Structure({
"pull": new abap.types.String({qualifiedName: "STRING"}),
"refresh": new abap.types.String({qualifiedName: "STRING"}),
"choose_tr": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_pull.c_action.get().pull.set('pull');
zcl_abapgit_gui_page_pull.c_action.get().refresh.set('refresh');
zcl_abapgit_gui_page_pull.c_action.get().choose_tr.set('choose_tr');
export {zcl_abapgit_gui_page_pull};