All files / output zcl_abapgit_gui_page_sett_repo.clas.mjs

11.36% Statements 50/440
66.66% Branches 2/3
10% Functions 1/10
11.36% Lines 50/440

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 4401x 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");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_gui_page_sett_repo.clas.abap
class zcl_abapgit_gui_page_sett_repo extends zcl_abapgit_gui_component {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_PAGE_SETT_REPO';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER","ZIF_ABAPGIT_GUI_RENDERABLE"];
  static ATTRIBUTES = {"MO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MO_VALIDATION_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MI_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_REQUIREMENTS_COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "C_ID": {"type": () => {return new abap.types.Structure({
  "dot": new abap.types.String({qualifiedName: "STRING"}),
  "file_system": new abap.types.String({qualifiedName: "STRING"}),
  "abap_system": new abap.types.String({qualifiedName: "STRING"}),
  "name": new abap.types.String({qualifiedName: "STRING"}),
  "i18n": new abap.types.String({qualifiedName: "STRING"}),
  "main_language": new abap.types.String({qualifiedName: "STRING"}),
  "i18n_langs": new abap.types.String({qualifiedName: "STRING"}),
  "use_lxe": new abap.types.String({qualifiedName: "STRING"}),
  "wo_transaltion": new abap.types.String({qualifiedName: "STRING"}),
  "starting_folder": new abap.types.String({qualifiedName: "STRING"}),
  "folder_logic": new abap.types.String({qualifiedName: "STRING"}),
  "ignore": new abap.types.String({qualifiedName: "STRING"}),
  "requirements": new abap.types.String({qualifiedName: "STRING"}),
  "version_constant": new abap.types.String({qualifiedName: "STRING"}),
  "version_value": new abap.types.String({qualifiedName: "STRING"}),
  "abap_langu_vers": new abap.types.String({qualifiedName: "STRING"}),
  "original_system": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"},
  "C_EVENT": {"type": () => {return new abap.types.Structure({
  "save": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"},
  "C_EMPTY_ROWS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "I", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"VALIDATE_FORM": {"visibility": "I", "parameters": {"RO_VALIDATION_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}},
  "VALIDATE_VERSION_CONSTANT": {"visibility": "I", "parameters": {"IV_VERSION_CONSTANT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "GET_FORM_SCHEMA": {"visibility": "I", "parameters": {"RO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " "}}},
  "READ_SETTINGS": {"visibility": "I", "parameters": {"RO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}},
  "SAVE_SETTINGS": {"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": " "}}},
  "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}}};
  #mo_form;
  #mo_form_data;
  #mo_validation_log;
  #mi_repo;
  #mv_requirements_count;
  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,
      "validate_form": this.#validate_form.bind(this),
      "validate_version_constant": this.#validate_version_constant.bind(this),
      "get_form_schema": this.#get_form_schema.bind(this),
      "read_settings": this.#read_settings.bind(this),
      "save_settings": this.#save_settings.bind(this),
    };
    this.#mo_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
    this.FRIENDS_ACCESS_INSTANCE["mo_form"] = this.#mo_form;
    this.#mo_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    this.FRIENDS_ACCESS_INSTANCE["mo_form_data"] = this.#mo_form_data;
    this.#mo_validation_log = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    this.FRIENDS_ACCESS_INSTANCE["mo_validation_log"] = this.#mo_validation_log;
    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.#mv_requirements_count = new abap.types.Integer({qualifiedName: "I"});
    this.FRIENDS_ACCESS_INSTANCE["mv_requirements_count"] = this.#mv_requirements_count;
    this.c_id = zcl_abapgit_gui_page_sett_repo.c_id;
    this.c_event = zcl_abapgit_gui_page_sett_repo.c_event;
    this.c_empty_rows = zcl_abapgit_gui_page_sett_repo.c_empty_rows;
  }
  async constructor_(INPUT) {
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    await super.constructor_();
    this.#mo_validation_log.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
    this.#mo_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
    this.#mi_repo.set(ii_repo);
    this.#mo_form.set((await this.#get_form_schema()));
    this.#mo_form_data.set((await this.#read_settings()));
    return this;
  }
  async create(INPUT) {
    return zcl_abapgit_gui_page_sett_repo.create(INPUT);
  }
  static async create(INPUT) {
    let ri_page = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});
    let ii_repo = INPUT?.ii_repo;
    if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; }
    if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); }
    let lo_component = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_SETT_REPO", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_PAGE_SETT_REPO"});
    lo_component.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_PAGE_SETT_REPO']()).constructor_({ii_repo: ii_repo}));
    ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_HOC'].create({iv_page_title: abap.CharacterFactory.get(19, 'Repository Settings'), io_page_menu: (await abap.Classes['ZCL_ABAPGIT_GUI_MENUS'].repo_settings({iv_key: (await ii_repo.get().zif_abapgit_repo$get_key()), iv_act: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().repo_settings})), ii_child_component: lo_component})));
    return ri_page;
  }
  async #get_form_schema() {
    let ro_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
    ro_form.set((await abap.Classes['ZCL_ABAPGIT_HTML_FORM'].create({iv_form_id: abap.CharacterFactory.get(18, 'repo-settings-form'), iv_help_page: abap.CharacterFactory.get(50, 'https://docs.abapgit.org/settings-dot-abapgit.html')})));
    await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await (await ro_form.get().start_group({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().dot, iv_label: abap.CharacterFactory.get(34, 'Repository Settings (.abapgit.xml)'), iv_hint: abap.CharacterFactory.get(51, 'Settings stored in root folder in .abapgit.xml file')})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().name, iv_label: abap.CharacterFactory.get(4, 'Name'), iv_hint: abap.CharacterFactory.get(56, 'Official name (can be overwritten by local display name)')})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant, iv_label: abap.CharacterFactory.get(16, 'Version Constant'), iv_placeholder: abap.CharacterFactory.get(54, 'CLASS=>VERSION_CONSTANT or INTERFACE=>VERSION_CONSTANT'), iv_upper_case: abap.builtin.abap_true})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().version_value, iv_label: abap.CharacterFactory.get(13, 'Version Value'), iv_readonly: abap.builtin.abap_true})).get().start_group({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n, iv_label: abap.CharacterFactory.get(5, 'Texts')})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().main_language, iv_label: abap.CharacterFactory.get(13, 'Main Language'), iv_hint: abap.CharacterFactory.get(47, 'Main language of repository (cannot be changed)'), iv_readonly: abap.builtin.abap_true})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs, iv_label: abap.CharacterFactory.get(47, 'Serialize Translations for Additional Languages'), iv_hint: abap.CharacterFactory.get(94, 'Comma-separate 2-letter ISO language codes e.g. "DE,ES,..." - should not include main language')})).get().checkbox({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().use_lxe, iv_label: abap.CharacterFactory.get(33, 'Use LXE Approach for Translations'), iv_hint: abap.CharacterFactory.get(81, 'It\'s mandatory to specify the list of languages above in addition to this setting')})).get().textarea({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion, iv_label: abap.CharacterFactory.get(70, 'Objects (wildcard) to keep in main language only (without translation)'), iv_hint: abap.operators.concat(new abap.types.String().set(`List of patterns to exclude from translation. The check builds a simplified path to object:`),abap.operators.concat(new abap.types.String().set(` like \`/src/pkg/subpkg/obj.type\` which is then checked versus patterns with CP.`),abap.operators.concat(new abap.types.String().set(` So to exclude specific object use \`*/zcl_xy.clas\`, object of the specific type - \`*.clas\`,`),abap.operators.concat(new abap.types.String().set(` all objects in the package \`*/pkg/*\`. For additional compatibility, if line does NOT start`),new abap.types.String().set(` wildcard \`*\` or \`/\` - then \`*/\` is prepended. So \`zcl_xy.clas\` = \`*/zcl_xy.clas\``)))))})).get().start_group({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().file_system, iv_label: abap.CharacterFactory.get(5, 'Files')})).get().radio({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().folder_logic, iv_default_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().prefix, iv_label: abap.CharacterFactory.get(12, 'Folder Logic'), iv_hint: abap.CharacterFactory.get(50, 'Define how package folders are named in repository')})).get().option({iv_label: abap.CharacterFactory.get(6, 'Prefix'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().prefix})).get().option({iv_label: abap.CharacterFactory.get(4, 'Full'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().full})).get().option({iv_label: abap.CharacterFactory.get(5, 'Mixed'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().mixed})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder, iv_label: abap.CharacterFactory.get(15, 'Starting Folder'), iv_hint: abap.CharacterFactory.get(51, 'Root folder that defines where serialization starts')})).get().textarea({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().ignore, iv_label: abap.CharacterFactory.get(12, 'Ignore Files'), iv_hint: abap.CharacterFactory.get(61, 'List of files in starting folder that shall not be serialized')})).get().start_group({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().abap_system, iv_label: abap.CharacterFactory.get(4, 'ABAP')})).get().table({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().requirements, iv_label: abap.CharacterFactory.get(12, 'Requirements'), iv_hint: abap.CharacterFactory.get(58, 'List of software components with minimum release and patch')})).get().column({iv_label: abap.CharacterFactory.get(18, 'Software Component'), iv_width: abap.CharacterFactory.get(3, '40%')})).get().column({iv_label: abap.CharacterFactory.get(15, 'Minimum Release'), iv_width: abap.CharacterFactory.get(3, '30%')})).get().column({iv_label: abap.CharacterFactory.get(13, 'Minimum Patch'), iv_width: abap.CharacterFactory.get(3, '30%')})).get().text({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().original_system, iv_label: abap.CharacterFactory.get(15, 'Original System'), iv_upper_case: abap.builtin.abap_true, iv_max: abap.IntegerFactory.get(3), iv_hint: abap.operators.concat(abap.CharacterFactory.get(74, 'Sets the source system of objects during deserialize in downstream systems'),abap.CharacterFactory.get(51, ' (use "SID" to force the source system to sy-sysid)'))});
    if (abap.compare.eq((await abap.Classes['ZCL_ABAPGIT_FEATURE'].is_enabled({iv_feature: abap.Classes['ZCL_ABAPGIT_ABAP_LANGUAGE_VERS'].c_feature_flag})), abap.builtin.abap_true)) {
      await (await (await (await (await (await ro_form.get().radio({iv_name: zcl_abapgit_gui_page_sett_repo.c_id.get().abap_langu_vers, iv_default_value: abap.CharacterFactory.get(1, ''), iv_condense: abap.builtin.abap_true, iv_label: abap.CharacterFactory.get(21, 'ABAP Language Version'), iv_hint: abap.CharacterFactory.get(62, 'Define the ABAP language version for objects in the repository')})).get().option({iv_label: abap.CharacterFactory.get(43, 'Any (Object-specific ABAP Language Version)'), iv_value: abap.CharacterFactory.get(1, '')})).get().option({iv_label: abap.CharacterFactory.get(45, 'Ignore (ABAP Language Version not serialized)'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_abap_language_version.get().ignore})).get().option({iv_label: abap.CharacterFactory.get(13, 'Standard ABAP'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_abap_language_version.get().standard})).get().option({iv_label: abap.CharacterFactory.get(18, 'ABAP for Key Users'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_abap_language_version.get().key_user})).get().option({iv_label: abap.CharacterFactory.get(26, 'ABAP for Cloud Development'), iv_value: abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_abap_language_version.get().cloud_development});
    }
    await (await ro_form.get().command({iv_label: abap.CharacterFactory.get(13, 'Save Settings'), 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_sett_repo.c_event.get().save})).get().command({iv_label: abap.CharacterFactory.get(4, 'Back'), iv_action: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back});
    return ro_form;
  }
  async #read_settings() {
    let ro_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    let lo_dot = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_DOT_ABAPGIT", RTTIName: "\\CLASS=ZCL_ABAPGIT_DOT_ABAPGIT"});
    let ls_dot = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-NAME"}),
    "master_language": new abap.types.Character(1, {"qualifiedName":"SPRAS","ddicName":"SPRAS","description":"SPRAS"}),
    "i18n_languages": abap.types.TableFactory.construct(new abap.types.Character(2, {"qualifiedName":"LAISO","ddicName":"LAISO","description":"LAISO"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_languages"),
    "use_lxe": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "without_translation": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit-without_translation"),
    "starting_folder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-STARTING_FOLDER"}),
    "folder_logic": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-FOLDER_LOGIC"}),
    "ignore": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit-ignore"),
    "requirements": abap.types.TableFactory.construct(new abap.types.Structure({
    "component": new abap.types.Character(30, {"description":"DLVUNIT"}),
    "min_release": new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"}),
    "min_patch": new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"})}, "zif_abapgit_dot_abapgit=>ty_requirement", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_requirement_tt"),
    "version_constant": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-VERSION_CONSTANT"}),
    "abap_language_version": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DOT_ABAPGIT=>TY_DOT_ABAPGIT-ABAP_LANGUAGE_VERSION"}),
    "original_system": new abap.types.Character(5, {})}, "zif_abapgit_dot_abapgit=>ty_dot_abapgit", undefined, {}, {});
    let lv_main_lang = new abap.types.Character(1, {"qualifiedName":"SPRAS","ddicName":"SPRAS","description":"SPRAS"});
    let lv_ignore = new abap.types.String({qualifiedName: "STRING"});
    let ls_requirements = new abap.types.Structure({
    "component": new abap.types.Character(30, {"description":"DLVUNIT"}),
    "min_release": new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"}),
    "min_patch": new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"})}, "zif_abapgit_dot_abapgit=>ty_requirement", undefined, {}, {});
    let lv_row = new abap.types.Integer({qualifiedName: "I"});
    let lv_val = new abap.types.String({qualifiedName: "STRING"});
    lo_dot.set((await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()));
    ls_dot.set((await lo_dot.get().get_data()));
    lv_main_lang.set((await lo_dot.get().get_main_language()));
    ro_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().name, iv_val: ls_dot.get().name});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().main_language, iv_val: new abap.types.String().set(`${abap.templateFormatting(lv_main_lang)} (${abap.templateFormatting((await abap.Classes['ZCL_ABAPGIT_CONVERT'].language_sap1_to_text({im_lang_sap1: lv_main_lang})))})`)});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs, iv_val: (await abap.Classes['ZCL_ABAPGIT_LXE_TEXTS'].convert_table_to_lang_string({it_languages: (await lo_dot.get().get_i18n_languages())}))});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().use_lxe, iv_val: abap.builtin.boolc(abap.compare.eq((await lo_dot.get().use_lxe()), abap.builtin.abap_true))});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion, iv_val: (abap.builtin.concat_lines_of({table: (await lo_dot.get().get_objs_without_translation()), sep: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline}))});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().folder_logic, iv_val: ls_dot.get().folder_logic});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder, iv_val: ls_dot.get().starting_folder});
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant, iv_val: ls_dot.get().version_constant});
    try {
      await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_value, iv_val: (await abap.Classes['ZCL_ABAPGIT_VERSION'].get_version_constant_value({iv_version_constant: ls_dot.get().version_constant}))});
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_value, iv_val: abap.CharacterFactory.get(1, '')});
      } else {
        throw e;
      }
    }
    lv_ignore.set(abap.builtin.concat_lines_of({table: ls_dot.get().ignore, sep: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline}));
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().ignore, iv_val: lv_ignore});
    for await (const unique917 of abap.statements.loop(ls_dot.get().requirements)) {
      ls_requirements.set(unique917);
      lv_row.set(abap.operators.add(lv_row,abap.IntegerFactory.get(1)));
      const indexBackup1 = abap.builtin.sy.get().index.get();
      const unique918 = abap.IntegerFactory.get(3).get();
      for (let unique919 = 0; unique919 < unique918; unique919++) {
        abap.builtin.sy.get().index.set(unique919 + 1);
        let unique920 = abap.builtin.sy.get().index;
        if (abap.compare.eq(unique920, abap.IntegerFactory.get(1))) {
          lv_val.set(ls_requirements.get().component);
        } else if (abap.compare.eq(unique920, abap.IntegerFactory.get(2))) {
          lv_val.set(ls_requirements.get().min_release);
        } else if (abap.compare.eq(unique920, abap.IntegerFactory.get(3))) {
          lv_val.set(ls_requirements.get().min_patch);
        }
        await ro_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`), iv_val: lv_val});
      }
      abap.builtin.sy.get().index.set(indexBackup1);
    }
    const indexBackup2 = abap.builtin.sy.get().index.get();
    const unique921 = zcl_abapgit_gui_page_sett_repo.c_empty_rows.get();
    for (let unique922 = 0; unique922 < unique921; unique922++) {
      abap.builtin.sy.get().index.set(unique922 + 1);
      lv_row.set(abap.operators.add(lv_row,abap.IntegerFactory.get(1)));
      const indexBackup3 = abap.builtin.sy.get().index.get();
      const unique923 = abap.IntegerFactory.get(3).get();
      for (let unique924 = 0; unique924 < unique923; unique924++) {
        abap.builtin.sy.get().index.set(unique924 + 1);
        await ro_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`), iv_val: abap.CharacterFactory.get(1, '')});
      }
      abap.builtin.sy.get().index.set(indexBackup3);
    }
    abap.builtin.sy.get().index.set(indexBackup2);
    this.#mv_requirements_count.set(lv_row);
    await ro_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_rows)}`), iv_val: new abap.types.String().set(`${abap.templateFormatting(this.#mv_requirements_count)}`)});
    if (abap.compare.eq((await abap.Classes['ZCL_ABAPGIT_FEATURE'].is_enabled({iv_feature: abap.Classes['ZCL_ABAPGIT_ABAP_LANGUAGE_VERS'].c_feature_flag})), abap.builtin.abap_true)) {
      await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().abap_langu_vers, iv_val: ls_dot.get().abap_language_version});
    }
    await ro_form_data.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().original_system, iv_val: ls_dot.get().original_system});
    return ro_form_data;
  }
  async #save_settings() {
    let lo_dot = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_DOT_ABAPGIT", RTTIName: "\\CLASS=ZCL_ABAPGIT_DOT_ABAPGIT"});
    let lv_ignore = new abap.types.String({qualifiedName: "STRING"});
    let lt_ignore = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
    let lt_wo_transl = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
    let ls_requirements = new abap.types.Structure({
    "component": new abap.types.Character(30, {"description":"DLVUNIT"}),
    "min_release": new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"}),
    "min_patch": new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"})}, "zif_abapgit_dot_abapgit=>ty_requirement", undefined, {}, {});
    let lt_requirements = abap.types.TableFactory.construct(new abap.types.Structure({
    "component": new abap.types.Character(30, {"description":"DLVUNIT"}),
    "min_release": new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"}),
    "min_patch": new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"})}, "zif_abapgit_dot_abapgit=>ty_requirement", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_dot_abapgit=>ty_requirement_tt");
    lo_dot.set((await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()));
    await lo_dot.get().set_name({iv_name: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().name}))});
    await lo_dot.get().set_folder_logic({iv_logic: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().folder_logic}))});
    await lo_dot.get().set_starting_folder({iv_path: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder}))});
    await lo_dot.get().set_version_constant({iv_version_constant: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant}))});
    await lo_dot.get().set_original_system({iv_original_system: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().original_system}))});
    if (abap.compare.eq((await abap.Classes['ZCL_ABAPGIT_FEATURE'].is_enabled({iv_feature: abap.Classes['ZCL_ABAPGIT_ABAP_LANGUAGE_VERS'].c_feature_flag})), abap.builtin.abap_true)) {
      await lo_dot.get().set_abap_language_version({iv_abap_language_version: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().abap_langu_vers}))});
    }
    await lo_dot.get().set_i18n_languages({it_languages: (await abap.Classes['ZCL_ABAPGIT_LXE_TEXTS'].convert_lang_string_to_table({iv_langs: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs})), iv_skip_main_language: (await lo_dot.get().get_main_language())}))});
    await lo_dot.get().use_lxe({iv_yes: abap.builtin.boolc(abap.compare.eq((await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().use_lxe})), abap.builtin.abap_true))});
    lt_wo_transl.set((await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].normalize_obj_patterns({it_wo_translation_patterns: (await abap.Classes['ZCL_ABAPGIT_CONVERT'].split_string({iv_string: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion}))}))})));
    await lo_dot.get().set_objs_without_translation({it_list: lt_wo_transl});
    lt_ignore.set(((await lo_dot.get().get_data())).get().ignore);
    for await (const unique925 of abap.statements.loop(lt_ignore)) {
      lv_ignore.set(unique925);
      await lo_dot.get().remove_ignore({iv_path: abap.CharacterFactory.get(1, ''), iv_filename: lv_ignore});
    }
    lt_ignore.set((await abap.Classes['ZCL_ABAPGIT_CONVERT'].split_string({iv_string: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().ignore}))})));
    for await (const unique926 of abap.statements.loop(lt_ignore)) {
      lv_ignore.set(unique926);
      lv_ignore.set(abap.builtin.condense({val: lv_ignore}));
      if (abap.compare.initial(lv_ignore) === false) {
        await lo_dot.get().add_ignore({iv_path: abap.CharacterFactory.get(1, ''), iv_filename: lv_ignore});
      }
    }
    const indexBackup1 = abap.builtin.sy.get().index.get();
    const unique927 = this.#mv_requirements_count.get();
    for (let unique928 = 0; unique928 < unique927; unique928++) {
      abap.builtin.sy.get().index.set(unique928 + 1);
      ls_requirements.get().component.set((abap.builtin.to_upper({val: (await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-1`)}))})));
      ls_requirements.get().min_release.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-2`)})));
      ls_requirements.get().min_patch.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-3`)})));
      abap.statements.append({source: ls_requirements, target: lt_requirements});
    }
    abap.builtin.sy.get().index.set(indexBackup1);
    abap.statements.sort(lt_requirements,{by: [{component: "component"},{component: "min_release"},{component: "min_patch"}]});
    await abap.statements.deleteInternal(lt_requirements,{where: async (I) => {return abap.compare.initial(I.component);}});
    await abap.statements.deleteInternal(lt_requirements,{adjacent: true});
    await lo_dot.get().set_requirements({it_requirements: lt_requirements});
    await this.#mi_repo.get().zif_abapgit_repo$set_dot_abapgit({io_dot_abapgit: lo_dot});
    await this.#mi_repo.get().zif_abapgit_repo$refresh();
    abap.statements.commit();
    await abap.statements.message({text: abap.CharacterFactory.get(27, 'Settings successfully saved'), type: abap.CharacterFactory.get(1, 'S')});
    this.#mo_form_data.set((await this.#read_settings()));
  }
  async #validate_form(INPUT) {
    let ro_validation_log = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
    let io_form_data = INPUT?.io_form_data;
    if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; }
    if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); }
    let lc_allowed = new abap.types.Character(36, {});
    lc_allowed.set('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789');
    let lt_lang_list = abap.types.TableFactory.construct(new abap.types.Character(2, {"qualifiedName":"LAISO","ddicName":"LAISO","description":"LAISO"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_languages");
    let lv_folder = new abap.types.String({qualifiedName: "STRING"});
    let lv_len = new abap.types.Integer({qualifiedName: "I"});
    let lv_component = new abap.types.Character(30, {"description":"DLVUNIT"});
    let lv_min_release = new abap.types.Character(10, {"qualifiedName":"SAPRELEASE","ddicName":"SAPRELEASE","description":"SAPRELEASE"});
    let lv_min_patch = new abap.types.Character(10, {"qualifiedName":"SAPPATCHLV","ddicName":"SAPPATCHLV","description":"SAPPATCHLV"});
    let lv_version_constant = new abap.types.String({qualifiedName: "STRING"});
    let lv_original_system = new abap.types.String({qualifiedName: "STRING"});
    let lx_exception = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"});
    ro_validation_log.set((await (await abap.Classes['ZCL_ABAPGIT_HTML_FORM_UTILS'].create({io_form: this.#mo_form})).get().validate({io_form_data: io_form_data})));
    lv_folder.set((await io_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder})));
    lv_len.set(abap.operators.minus(abap.builtin.strlen({val: lv_folder}),abap.IntegerFactory.get(1)));
    if (abap.compare.gt(lv_len, abap.IntegerFactory.get(0)) && abap.compare.ne(lv_folder.getOffset({length: 1}), abap.CharacterFactory.get(1, '/'))) {
      await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder, iv_val: new abap.types.String().set(`The folder must begin with /`)});
    } else if (abap.compare.gt(lv_len, abap.IntegerFactory.get(0)) && abap.compare.ne(lv_folder.getOffset({offset: lv_len, length: 1}), abap.CharacterFactory.get(1, '/'))) {
      await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder, iv_val: new abap.types.String().set(`The folder must end with /`)});
    } else if (abap.compare.ca(lv_folder, abap.CharacterFactory.get(1, '\\'))) {
      await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder, iv_val: new abap.types.String().set(`Use / instead of \\`)});
    }
    const indexBackup1 = abap.builtin.sy.get().index.get();
    const unique929 = this.#mv_requirements_count.get();
    for (let unique930 = 0; unique930 < unique929; unique930++) {
      abap.builtin.sy.get().index.set(unique930 + 1);
      lv_component.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-1`)})));
      lv_min_release.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-2`)})));
      lv_min_patch.set((await this.#mo_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(zcl_abapgit_gui_page_sett_repo.c_id.get().requirements)}-${abap.templateFormatting(abap.builtin.sy.get().index)}-3`)})));
      if (abap.compare.initial(lv_component) && (abap.compare.initial(lv_min_release) === false || abap.compare.initial(lv_min_patch) === false)) {
        await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().requirements, iv_val: new abap.types.String().set(`If you enter a release or patch, you must also enter a software component`)});
      } else if (abap.compare.initial(lv_component) === false && abap.compare.initial(lv_min_release)) {
        await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().requirements, iv_val: new abap.types.String().set(`If you enter a software component, you must also enter a minimum release`)});
      }
    }
    abap.builtin.sy.get().index.set(indexBackup1);
    try {
      lv_version_constant.set((await io_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant})));
      if (abap.compare.initial(lv_version_constant) === false) {
        await abap.Classes['ZCL_ABAPGIT_VERSION'].get_version_constant_value({iv_version_constant: lv_version_constant});
        await this.#validate_version_constant({iv_version_constant: lv_version_constant});
      }
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        lx_exception.set(e);
        await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant, iv_val: (await lx_exception.get().if_message$get_text())});
      } else {
        throw e;
      }
    }
    lt_lang_list.set((await abap.Classes['ZCL_ABAPGIT_LXE_TEXTS'].convert_lang_string_to_table({iv_langs: (await io_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs})), iv_skip_main_language: (await (await this.#mi_repo.get().zif_abapgit_repo$get_dot_abapgit()).get().get_main_language())})));
    if (abap.compare.eq((await io_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().use_lxe})), abap.builtin.abap_true) && abap.compare.initial(lt_lang_list)) {
      await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs, iv_val: abap.CharacterFactory.get(51, 'LXE approach requires a non-empty list of languages')});
    }
    try {
      await abap.Classes['ZCL_ABAPGIT_I18N_PARAMS'].normalize_obj_patterns({it_wo_translation_patterns: (await abap.Classes['ZCL_ABAPGIT_CONVERT'].split_string({iv_string: (await this.#mo_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion}))}))});
    } catch (e) {
      if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
        lx_exception.set(e);
        await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion, iv_val: (await lx_exception.get().if_message$get_text())});
      } else {
        throw e;
      }
    }
    lv_original_system.set((await io_form_data.get().get({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().original_system})));
    if (abap.compare.cn(lv_original_system, lc_allowed)) {
      await ro_validation_log.get().set({iv_key: zcl_abapgit_gui_page_sett_repo.c_id.get().original_system, iv_val: abap.CharacterFactory.get(34, 'System name must be alphanumerical')});
    }
    return ro_validation_log;
  }
  async #validate_version_constant(INPUT) {
    let iv_version_constant = INPUT?.iv_version_constant;
    if (iv_version_constant?.getQualifiedName === undefined || iv_version_constant.getQualifiedName() !== "STRING") { iv_version_constant = undefined; }
    if (iv_version_constant === undefined) { iv_version_constant = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_version_constant); }
    let lv_version_class = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"});
    let lv_version_component = new abap.types.String({qualifiedName: "STRING"});
    let lt_local = abap.types.TableFactory.construct(new abap.types.Structure({
    "file": new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}),
    "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}),
    "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}),
    "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}),
    "item": new abap.types.Structure({
    "obj_type": new abap.types.Character(4, {}),
    "obj_name": new abap.types.Character(40, {}),
    "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}),
    "srcsystem": new abap.types.Character(5, {}),
    "origlang": new abap.types.Character(1, {}),
    "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {})}, "zif_abapgit_definitions=>ty_file_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_files_item_tt");
    abap.statements.split({source: iv_version_constant, at: abap.CharacterFactory.get(2, '=>'), targets: [lv_version_class,lv_version_component]});
    lt_local.set((await this.#mi_repo.get().zif_abapgit_repo$get_files_local()));
    abap.statements.readTable(lt_local,{withKey: (i) => {return abap.compare.eq(i.item.get().obj_type, abap.CharacterFactory.get(4, 'CLAS')) && abap.compare.eq(i.item.get().obj_name, lv_version_class);},
      withKeyValue: [{key: (i) => {return i.item.get().obj_type}, value: abap.CharacterFactory.get(4, 'CLAS')},{key: (i) => {return i.item.get().obj_name}, value: lv_version_class}],
      usesTableLine: false,
      withKeySimple: {"item.get().obj_type": abap.CharacterFactory.get(4, 'CLAS'),"item.get().obj_name": lv_version_class}});
    if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
      abap.statements.readTable(lt_local,{withKey: (i) => {return abap.compare.eq(i.item.get().obj_type, abap.CharacterFactory.get(4, 'INTF')) && abap.compare.eq(i.item.get().obj_name, lv_version_class);},
        withKeyValue: [{key: (i) => {return i.item.get().obj_type}, value: abap.CharacterFactory.get(4, 'INTF')},{key: (i) => {return i.item.get().obj_name}, value: lv_version_class}],
        usesTableLine: false,
        withKeySimple: {"item.get().obj_type": abap.CharacterFactory.get(4, 'INTF'),"item.get().obj_name": lv_version_class}});
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`Object ${abap.templateFormatting(lv_version_class)} is not included in this repository`)});
      }
    }
  }
  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 (await abap.Classes['ZCL_ABAPGIT_HTML_FORM_UTILS'].create({io_form: this.#mo_form})).get().normalize({io_form_data: (await ii_event.get().zif_abapgit_gui_event$form_data())}))});
    let unique931 = ii_event.get().zif_abapgit_gui_event$mv_action;
    if (abap.compare.eq(unique931, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back)) {
      rs_handled.get().state.set((await (await abap.Classes['ZCL_ABAPGIT_HTML_FORM_UTILS'].create({io_form: this.#mo_form})).get().exit({io_form_data: this.#mo_form_data, io_compare_with: (await this.#read_settings())})));
    } else if (abap.compare.eq(unique931, zcl_abapgit_gui_page_sett_repo.c_event.get().save)) {
      this.#mo_validation_log.set((await this.#validate_form({io_form_data: this.#mo_form_data})));
      if (abap.compare.eq((await this.#mo_validation_log.get().is_empty()), abap.builtin.abap_true)) {
        await this.#save_settings();
      }
      rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
    }
    return rs_handled;
  }
  async zif_abapgit_gui_renderable$render() {
    let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    await this.register_handlers();
    ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="repo">`)});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_repo_top({ii_repo: this.#mi_repo, iv_show_commit: abap.builtin.abap_false, iv_interactive_branch: abap.builtin.abap_true}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#mo_form.get().render({io_values: this.#mo_form_data, io_validation_log: this.#mo_validation_log}))});
    await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`</div>`)});
    return ri_html;
  }
}
abap.Classes['ZCL_ABAPGIT_GUI_PAGE_SETT_REPO'] = zcl_abapgit_gui_page_sett_repo;
zcl_abapgit_gui_page_sett_repo.c_id = new abap.types.Structure({
"dot": new abap.types.String({qualifiedName: "STRING"}),
"file_system": new abap.types.String({qualifiedName: "STRING"}),
"abap_system": new abap.types.String({qualifiedName: "STRING"}),
"name": new abap.types.String({qualifiedName: "STRING"}),
"i18n": new abap.types.String({qualifiedName: "STRING"}),
"main_language": new abap.types.String({qualifiedName: "STRING"}),
"i18n_langs": new abap.types.String({qualifiedName: "STRING"}),
"use_lxe": new abap.types.String({qualifiedName: "STRING"}),
"wo_transaltion": new abap.types.String({qualifiedName: "STRING"}),
"starting_folder": new abap.types.String({qualifiedName: "STRING"}),
"folder_logic": new abap.types.String({qualifiedName: "STRING"}),
"ignore": new abap.types.String({qualifiedName: "STRING"}),
"requirements": new abap.types.String({qualifiedName: "STRING"}),
"version_constant": new abap.types.String({qualifiedName: "STRING"}),
"version_value": new abap.types.String({qualifiedName: "STRING"}),
"abap_langu_vers": new abap.types.String({qualifiedName: "STRING"}),
"original_system": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_sett_repo.c_id.get().dot.set('dot');
zcl_abapgit_gui_page_sett_repo.c_id.get().file_system.set('file_system');
zcl_abapgit_gui_page_sett_repo.c_id.get().abap_system.set('abap_system');
zcl_abapgit_gui_page_sett_repo.c_id.get().name.set('name');
zcl_abapgit_gui_page_sett_repo.c_id.get().i18n.set('i18n');
zcl_abapgit_gui_page_sett_repo.c_id.get().main_language.set('main_language');
zcl_abapgit_gui_page_sett_repo.c_id.get().i18n_langs.set('i18n_langs');
zcl_abapgit_gui_page_sett_repo.c_id.get().use_lxe.set('use_lxe');
zcl_abapgit_gui_page_sett_repo.c_id.get().wo_transaltion.set('wo_translation');
zcl_abapgit_gui_page_sett_repo.c_id.get().starting_folder.set('starting_folder');
zcl_abapgit_gui_page_sett_repo.c_id.get().folder_logic.set('folder_logic');
zcl_abapgit_gui_page_sett_repo.c_id.get().ignore.set('ignore');
zcl_abapgit_gui_page_sett_repo.c_id.get().requirements.set('requirements');
zcl_abapgit_gui_page_sett_repo.c_id.get().version_constant.set('version_constant');
zcl_abapgit_gui_page_sett_repo.c_id.get().version_value.set('version_value');
zcl_abapgit_gui_page_sett_repo.c_id.get().abap_langu_vers.set('abap_langu_vers');
zcl_abapgit_gui_page_sett_repo.c_id.get().original_system.set('original_system');
zcl_abapgit_gui_page_sett_repo.c_event = new abap.types.Structure({
"save": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_gui_page_sett_repo.c_event.get().save.set('save');
zcl_abapgit_gui_page_sett_repo.c_empty_rows = new abap.types.Integer({qualifiedName: "I"});
zcl_abapgit_gui_page_sett_repo.c_empty_rows.set(2);
export {zcl_abapgit_gui_page_sett_repo};