All files / output zcl_abapgit_html.clas.mjs

76% Statements 608/800
69.69% Branches 138/198
75.86% Functions 44/58
76% Lines 608/800

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 8001x 1x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 2x 2x 2x 2x 31x 31x 2x 2x 31x 31x 2x 2x 2x 2x 2x 2x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 2x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 2x 1x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x     31x                                 31x     31x 1x 1x 1x 31x 1x 1x 31x 6x 6x 6x 6x 4x 4x 6x 6x 31x     31x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x     12x     12x     12x 12x 12x 12x 12x 12x 12x 31x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 1x 1x 536x 1x 1x 535x 2x 2x 536x 1x 1x 536x 1x 1x 531x 3x 3x 536x 65x 65x 65x 65x     536x 462x 462x 527x 536x     536x 1x 1x 527x 1x 1x 1x 1x 536x 430x 365x 430x 65x 65x 430x 430x 230x 430x 200x 200x 430x 536x 31x     31x 3x 3x 3x 3x 3x 3x 3x     3x 3x 31x     31x           31x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x 536x               536x 536x 536x 536x 536x 5x   5x 1x 1x 5x 5x 1x 1x 5x 5x 5x 536x 531x           531x 1x 1x 1x 1x 1x 531x 65x 65x 531x 531x 531x 443x 443x 531x 531x 536x 1x 536x 2x 2x 1x 1x 2x 536x 1x 536x 1x 1x 1x 1x 1x 536x 536x 31x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x     4x     4x     4x       4x 4x 4x 4x 4x         4x 4x     4x 4x           4x 4x     4x     4x     4x     4x 4x 4x 31x 540x 540x 540x 540x 540x 540x 540x 540x 540x 540x 536x 540x     4x 4x 4x 4x 2x 2x 2x 2x 2x 1x 1x   1x 1x 1x 1x     1x 2x     2x 4x 4x     540x 540x 540x 31x                                                 31x                     31x                             31x                                               31x                           31x         31x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x   23x 23x 23x 536x 536x 536x 536x 23x 23x 23x 23x 31x                 31x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 31x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 31x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 43x 1x 1x 43x 7x 7x 43x     43x 1x 1x 43x 1x 1x 43x 6x 6x 6x 43x 43x 43x 2x 2x 2x 43x 35x 43x 8x 8x 2x 8x 4x 4x 8x 6x 6x 8x 43x 43x 43x 31x 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 {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_html.clas.abap
class zcl_abapgit_html {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_HTML';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_HTML"];
  static ATTRIBUTES = {"GO_SINGLE_TAGS_RE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_REGEX", RTTIName: "\\CLASS=CL_ABAP_REGEX"});}, "visibility": "I", "is_constant": " ", "is_class": "X"},
  "GV_SPACES": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": "X"},
  "GV_DEBUG_MODE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": "X"},
  "MT_BUFFER": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "C_INDENT_SIZE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "C_MAX_INDENT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "I", "is_constant": "X", "is_class": "X"},
  "ZIF_ABAPGIT_HTML~MV_CHUNK_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "ZIF_ABAPGIT_HTML~C_ACTION_TYPE": {"type": () => {return new abap.types.Structure({
  "sapevent": new abap.types.Character(1, {}),
  "url": new abap.types.Character(1, {}),
  "onclick": new abap.types.Character(1, {}),
  "separator": new abap.types.Character(1, {}),
  "dummy": new abap.types.Character(1, {})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ZIF_ABAPGIT_HTML~C_HTML_OPT": {"type": () => {return new abap.types.Structure({
  "strong": new abap.types.Character(1, {}),
  "cancel": new abap.types.Character(1, {}),
  "crossout": new abap.types.Character(1, {})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"INDENT_LINE": {"visibility": "I", "parameters": {"CS_CONTEXT": {"type": () => {return new abap.types.Structure({
  "no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
  "indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {});}, "is_optional": " "}, "CV_LINE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "STUDY_LINE": {"visibility": "I", "parameters": {"RS_RESULT": {"type": () => {return new abap.types.Structure({
  "style_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "style_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "script_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "script_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "textarea_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "textarea_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "pre_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "pre_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "tag_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "curly_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "openings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-OPENINGS"}),
  "closings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-CLOSINGS"}),
  "singles": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-SINGLES"})}, "zcl_abapgit_html=>ty_study_result", undefined, {}, {});}, "is_optional": " "}, "IV_LINE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IS_CONTEXT": {"type": () => {return new abap.types.Structure({
  "no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
  "indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {});}, "is_optional": " "}}},
  "CLASS_CONSTRUCTOR": {"visibility": "U", "parameters": {}},
  "CREATE": {"visibility": "U", "parameters": {"RI_INSTANCE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}, "IV_INITIAL_CHUNK": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "ICON": {"visibility": "U", "parameters": {"RV_STR": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_HINT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_CLASS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_ONCLICK": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "CHECKBOX": {"visibility": "U", "parameters": {"RV_HTML": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_ID": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_CHECKED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "PARSE_DATA_ATTR": {"visibility": "U", "parameters": {"RS_DATA_ATTR": {"type": () => {return new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
  "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});}, "is_optional": " "}, "IV_STR": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "SET_DEBUG_MODE": {"visibility": "U", "parameters": {"IV_MODE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}};
  #go_single_tags_re;
  #gv_spaces;
  #gv_debug_mode;
  #mt_buffer;
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "indent_line": this.#indent_line.bind(this),
      "study_line": this.#study_line.bind(this),
    };
    this.go_single_tags_re = zcl_abapgit_html.go_single_tags_re;
    this.gv_spaces = zcl_abapgit_html.gv_spaces;
    this.gv_debug_mode = zcl_abapgit_html.gv_debug_mode;
    this.#mt_buffer = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");
    this.FRIENDS_ACCESS_INSTANCE["mt_buffer"] = this.#mt_buffer;
    this.zif_abapgit_html$c_action_type = abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type;
    this.zif_abapgit_html$c_html_opt = abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt;
    if (this.zif_abapgit_html$mv_chunk_title === undefined) this.zif_abapgit_html$mv_chunk_title = new abap.types.String({qualifiedName: "STRING"});
    this.c_indent_size = zcl_abapgit_html.c_indent_size;
    this.c_max_indent = zcl_abapgit_html.c_max_indent;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async checkbox(INPUT) {
    return zcl_abapgit_html.checkbox(INPUT);
  }
  static async checkbox(INPUT) {
    let rv_html = new abap.types.String({qualifiedName: "STRING"});
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_checked = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_checked) {iv_checked.set(INPUT.iv_checked);}
    let lv_checked = new abap.types.String({qualifiedName: "STRING"});
    if (abap.compare.eq(iv_checked, abap.builtin.abap_true)) {
      lv_checked.set(new abap.types.String().set(`checked`));
    }
    rv_html.set(new abap.types.String().set(`<input type="checkbox" ${abap.templateFormatting(lv_checked)} `));
    if (abap.compare.initial(iv_id) === false) {
      rv_html.set(abap.operators.concat(rv_html,new abap.types.String().set(`id="${abap.templateFormatting(iv_id)}"`)));
    }
    rv_html.set(abap.operators.concat(rv_html,new abap.types.String().set(`/>`)));
    return rv_html;
  }
  async class_constructor() {
    return zcl_abapgit_html.class_constructor();
  }
  static async class_constructor() {
    zcl_abapgit_html.go_single_tags_re.set(await (new abap.Classes['CL_ABAP_REGEX']()).constructor_({pattern: abap.CharacterFactory.get(71, '<(AREA|BASE|BR|COL|COMMAND|EMBED|HR|IMG|INPUT|LINK|META|PARAM|SOURCE|!)'), ignore_case: abap.builtin.abap_false}));
    zcl_abapgit_html.gv_spaces.set(abap.builtin.repeat({val: new abap.types.String().set(` `), occ: zcl_abapgit_html.c_max_indent}));
  }
  async create(INPUT) {
    return zcl_abapgit_html.create(INPUT);
  }
  static async create(INPUT) {
    let ri_instance = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_initial_chunk = INPUT?.iv_initial_chunk || new abap.types.Character(4);
    ri_instance.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_());
    if (abap.compare.initial(iv_initial_chunk) === false) {
      await ri_instance.get().zif_abapgit_html$add({ig_chunk: iv_initial_chunk});
    }
    return ri_instance;
  }
  async icon(INPUT) {
    return zcl_abapgit_html.icon(INPUT);
  }
  static async icon(INPUT) {
    let rv_str = new abap.types.String({qualifiedName: "STRING"});
    let iv_name = INPUT?.iv_name;
    if (iv_name?.getQualifiedName === undefined || iv_name.getQualifiedName() !== "STRING") { iv_name = undefined; }
    if (iv_name === undefined) { iv_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_name); }
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_onclick = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_onclick) {iv_onclick.set(INPUT.iv_onclick);}
    let lv_hint = new abap.types.String({qualifiedName: "STRING"});
    let lv_name = new abap.types.String({qualifiedName: "STRING"});
    let lv_color = new abap.types.String({qualifiedName: "STRING"});
    let lv_class = new abap.types.String({qualifiedName: "STRING"});
    let lv_onclick = new abap.types.String({qualifiedName: "STRING"});
    abap.statements.split({source: iv_name, at: abap.CharacterFactory.get(1, '/'), targets: [lv_name,lv_color]});
    if (abap.compare.initial(iv_hint) === false) {
      lv_hint.set(new abap.types.String().set(` title="${abap.templateFormatting(iv_hint)}"`));
    }
    if (abap.compare.initial(iv_onclick) === false) {
      lv_onclick.set(new abap.types.String().set(` onclick="${abap.templateFormatting(iv_onclick)}"`));
    }
    if (abap.compare.initial(iv_class) === false) {
      lv_class.set(new abap.types.String().set(` ${abap.templateFormatting(iv_class)}`));
    }
    if (abap.compare.initial(lv_color) === false) {
      lv_color.set(new abap.types.String().set(` ${abap.templateFormatting(lv_color)}`));
    }
    rv_str.set(new abap.types.String().set(`<i class="icon icon-${abap.templateFormatting(lv_name)}${abap.templateFormatting(lv_color)}`));
    rv_str.set(new abap.types.String().set(`${abap.templateFormatting(rv_str)}${abap.templateFormatting(lv_class)}"${abap.templateFormatting(lv_onclick)}${abap.templateFormatting(lv_hint)}></i>`));
    return rv_str;
  }
  async #indent_line(INPUT) {
    let cs_context = new abap.types.Structure({
    "no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
    "indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {});
    if (INPUT && INPUT.cs_context) {cs_context = INPUT.cs_context;}
    let cv_line = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.cv_line) {cv_line = INPUT.cv_line;}
    let ls_study = new abap.types.Structure({
    "style_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "style_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "script_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "script_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "textarea_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "textarea_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "pre_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "pre_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "tag_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "curly_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "openings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-OPENINGS"}),
    "closings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-CLOSINGS"}),
    "singles": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-SINGLES"})}, "zcl_abapgit_html=>ty_study_result", undefined, {}, {});
    let lv_spaces = new abap.types.Integer({qualifiedName: "I"});
    ls_study.set((await this.#study_line({is_context: cs_context, iv_line: cv_line})));
    if (abap.compare.eq(ls_study.get().textarea_open, abap.builtin.abap_true)) {
      cs_context.get().within_textarea.set(abap.builtin.abap_true);
      return;
    } else if (abap.compare.eq(ls_study.get().textarea_close, abap.builtin.abap_true)) {
      cs_context.get().within_textarea.set(abap.builtin.abap_false);
      return;
    } else if (abap.compare.eq(cs_context.get().within_textarea, abap.builtin.abap_true)) {
      return;
    }
    if (abap.compare.eq(ls_study.get().pre_open, abap.builtin.abap_true)) {
      cs_context.get().within_pre.set(abap.builtin.abap_true);
      return;
    } else if (abap.compare.eq(ls_study.get().pre_close, abap.builtin.abap_true)) {
      cs_context.get().within_pre.set(abap.builtin.abap_false);
      return;
    } else if (abap.compare.eq(cs_context.get().within_pre, abap.builtin.abap_true)) {
      return;
    }
    if ((abap.compare.eq(ls_study.get().script_close, abap.builtin.abap_true) || abap.compare.eq(ls_study.get().style_close, abap.builtin.abap_true) || abap.compare.eq(ls_study.get().curly_close, abap.builtin.abap_true) || abap.compare.eq(ls_study.get().tag_close, abap.builtin.abap_true)) && abap.compare.gt(cs_context.get().indent, abap.IntegerFactory.get(0))) {
      lv_spaces.set(abap.operators.multiply(abap.operators.minus(cs_context.get().indent,abap.IntegerFactory.get(1)),zcl_abapgit_html.c_indent_size));
      if (abap.compare.le(lv_spaces, zcl_abapgit_html.c_max_indent)) {
        cv_line.set(abap.operators.concat(zcl_abapgit_html.gv_spaces.getOffset({length: lv_spaces}),cv_line));
      } else {
        cv_line.set(abap.operators.concat(zcl_abapgit_html.gv_spaces,cv_line));
      }
    } else {
      cv_line.set(abap.operators.concat(cs_context.get().indent_str,cv_line));
    }
    let unique685 = abap.builtin.abap_true;
    if (abap.compare.eq(unique685, ls_study.get().script_open)) {
      cs_context.get().within_js.set(abap.builtin.abap_true);
      cs_context.get().within_style.set(abap.builtin.abap_false);
    } else if (abap.compare.eq(unique685, ls_study.get().style_open)) {
      cs_context.get().within_js.set(abap.builtin.abap_false);
      cs_context.get().within_style.set(abap.builtin.abap_true);
    } else if (abap.compare.eq(unique685, ls_study.get().script_close) || abap.compare.eq(unique685, ls_study.get().style_close)) {
      cs_context.get().within_js.set(abap.builtin.abap_false);
      cs_context.get().within_style.set(abap.builtin.abap_false);
      ls_study.get().closings.set(abap.operators.add(ls_study.get().closings,abap.IntegerFactory.get(1)));
    }
    if (abap.compare.ne(ls_study.get().openings, ls_study.get().closings)) {
      if (abap.compare.gt(ls_study.get().openings, ls_study.get().closings)) {
        cs_context.get().indent.set(abap.operators.add(cs_context.get().indent,abap.IntegerFactory.get(1)));
      } else if (abap.compare.gt(cs_context.get().indent, abap.IntegerFactory.get(0))) {
        cs_context.get().indent.set(abap.operators.minus(cs_context.get().indent,abap.IntegerFactory.get(1)));
      }
      lv_spaces.set(abap.operators.multiply(cs_context.get().indent,zcl_abapgit_html.c_indent_size));
      if (abap.compare.le(lv_spaces, zcl_abapgit_html.c_max_indent)) {
        cs_context.get().indent_str.set(zcl_abapgit_html.gv_spaces.getOffset({length: lv_spaces}));
      } else {
        cv_line.set(abap.operators.concat(zcl_abapgit_html.gv_spaces,cv_line));
      }
    }
  }
  async parse_data_attr(INPUT) {
    return zcl_abapgit_html.parse_data_attr(INPUT);
  }
  static async parse_data_attr(INPUT) {
    let rs_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    let iv_str = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_str) {iv_str.set(INPUT.iv_str);}
    abap.statements.split({source: iv_str, at: abap.CharacterFactory.get(1, '='), targets: [rs_data_attr.get().name,rs_data_attr.get().value]});
    if (abap.compare.initial(rs_data_attr.get().name)) {
      rs_data_attr.clear();
    }
    return rs_data_attr;
  }
  async set_debug_mode(INPUT) {
    return zcl_abapgit_html.set_debug_mode(INPUT);
  }
  static async set_debug_mode(INPUT) {
    let iv_mode = INPUT?.iv_mode;
    if (iv_mode?.getQualifiedName === undefined || iv_mode.getQualifiedName() !== "ABAP_BOOL") { iv_mode = undefined; }
    if (iv_mode === undefined) { iv_mode = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.iv_mode); }
    zcl_abapgit_html.gv_debug_mode.set(iv_mode);
  }
  async #study_line(INPUT) {
    let rs_result = new abap.types.Structure({
    "style_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "style_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "script_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "script_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "textarea_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "textarea_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "pre_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "pre_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "tag_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "curly_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "openings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-OPENINGS"}),
    "closings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-CLOSINGS"}),
    "singles": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-SINGLES"})}, "zcl_abapgit_html=>ty_study_result", undefined, {}, {});
    let iv_line = INPUT?.iv_line;
    if (iv_line?.getQualifiedName === undefined || iv_line.getQualifiedName() !== "STRING") { iv_line = undefined; }
    if (iv_line === undefined) { iv_line = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_line); }
    let is_context = INPUT?.is_context;
    if (is_context?.getQualifiedName === undefined || is_context.getQualifiedName() !== "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT") { is_context = undefined; }
    if (is_context === undefined) { is_context = new abap.types.Structure({
    "no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
    "indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {}).set(INPUT.is_context); }
    let lv_line = new abap.types.String({qualifiedName: "STRING"});
    let lv_len = new abap.types.Integer({qualifiedName: "I"});
    lv_line.set(abap.builtin.to_upper({val: abap.builtin.shift_left({val: iv_line, sub: new abap.types.String().set(` `)})}));
    lv_len.set(abap.builtin.strlen({val: lv_line}));
    if (abap.compare.eq(is_context.get().within_js, abap.builtin.abap_true) || abap.compare.eq(is_context.get().within_style, abap.builtin.abap_true)) {
      if (abap.compare.eq(is_context.get().within_js, abap.builtin.abap_true) && abap.compare.ge(lv_len, abap.IntegerFactory.get(8)) && abap.compare.eq(lv_line.getOffset({length: 8}), abap.CharacterFactory.get(8, '</SCRIPT'))) {
        rs_result.get().script_close.set(abap.builtin.abap_true);
      } else if (abap.compare.eq(is_context.get().within_style, abap.builtin.abap_true) && abap.compare.ge(lv_len, abap.IntegerFactory.get(7)) && abap.compare.eq(lv_line.getOffset({length: 7}), abap.CharacterFactory.get(7, '</STYLE'))) {
        rs_result.get().style_close.set(abap.builtin.abap_true);
      }
      if (abap.compare.eq(is_context.get().no_indent_jscss, abap.builtin.abap_false)) {
        if (abap.compare.ge(lv_len, abap.IntegerFactory.get(1)) && abap.compare.eq(lv_line.getOffset({length: 1}), abap.CharacterFactory.get(1, '}'))) {
          rs_result.get().curly_close.set(abap.builtin.abap_true);
        }
        abap.statements.find(lv_line, {find: abap.CharacterFactory.get(1, '{'), first: false, count: rs_result.get().openings});
        abap.statements.find(lv_line, {find: abap.CharacterFactory.get(1, '}'), first: false, count: rs_result.get().closings});
      }
    } else {
      if (abap.compare.ge(lv_len, abap.IntegerFactory.get(7)) && abap.compare.eq(lv_line.getOffset({length: 7}), abap.CharacterFactory.get(7, '<SCRIPT'))) {
        abap.statements.find(lv_line, {find: abap.CharacterFactory.get(8, '</SCRIPT'), first: true});
        if (abap.compare.gt(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
          rs_result.get().script_open.set(abap.builtin.abap_true);
        }
      }
      if (abap.compare.ge(lv_len, abap.IntegerFactory.get(6)) && abap.compare.eq(lv_line.getOffset({length: 6}), abap.CharacterFactory.get(6, '<STYLE'))) {
        abap.statements.find(lv_line, {find: abap.CharacterFactory.get(7, '</STYLE'), first: true});
        if (abap.compare.gt(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
          rs_result.get().style_open.set(abap.builtin.abap_true);
        }
      }
      if (abap.compare.ge(lv_len, abap.IntegerFactory.get(2)) && abap.compare.eq(lv_line.getOffset({length: 2}), abap.CharacterFactory.get(2, '</'))) {
        rs_result.get().tag_close.set(abap.builtin.abap_true);
      }
      abap.statements.find(lv_line, {find: abap.CharacterFactory.get(1, '<'), first: false, count: rs_result.get().openings});
      abap.statements.find(lv_line, {find: abap.CharacterFactory.get(2, '</'), first: false, count: rs_result.get().closings});
      if (abap.compare.ne(rs_result.get().closings, rs_result.get().openings)) {
        abap.statements.find(lv_line, {regex: zcl_abapgit_html.go_single_tags_re, first: false, count: rs_result.get().singles});
      }
      rs_result.get().openings.set(abap.operators.minus(abap.operators.minus(rs_result.get().openings,rs_result.get().closings),rs_result.get().singles));
    }
    if (abap.compare.eq(is_context.get().within_textarea, abap.builtin.abap_true) && abap.compare.ge(lv_len, abap.IntegerFactory.get(10)) && abap.compare.eq(lv_line.getOffset({length: 10}), abap.CharacterFactory.get(10, '</TEXTAREA'))) {
      rs_result.get().textarea_close.set(abap.builtin.abap_true);
    } else if (abap.compare.eq(is_context.get().within_textarea, abap.builtin.abap_false) && abap.compare.ge(lv_len, abap.IntegerFactory.get(9)) && abap.compare.eq(lv_line.getOffset({length: 9}), abap.CharacterFactory.get(9, '<TEXTAREA'))) {
      abap.statements.find(lv_line, {find: abap.CharacterFactory.get(10, '</TEXTAREA'), first: true});
      if (abap.compare.gt(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        rs_result.get().textarea_open.set(abap.builtin.abap_true);
      }
    }
    if (abap.compare.eq(is_context.get().within_pre, abap.builtin.abap_true) && abap.compare.ge(lv_len, abap.IntegerFactory.get(5)) && abap.compare.eq(lv_line.getOffset({length: 5}), abap.CharacterFactory.get(5, '</PRE'))) {
      rs_result.get().pre_close.set(abap.builtin.abap_true);
    } else if (abap.compare.eq(is_context.get().within_pre, abap.builtin.abap_false) && abap.compare.ge(lv_len, abap.IntegerFactory.get(4)) && abap.compare.eq(lv_line.getOffset({length: 4}), abap.CharacterFactory.get(4, '<PRE'))) {
      abap.statements.find(lv_line, {find: abap.CharacterFactory.get(5, '</PRE'), first: true});
      if (abap.compare.gt(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        rs_result.get().pre_open.set(abap.builtin.abap_true);
      }
    }
    return rs_result;
  }
  async zif_abapgit_html$a(INPUT) {
    let rv_str = new abap.types.String({qualifiedName: "STRING"});
    let iv_txt = INPUT?.iv_txt;
    if (iv_txt?.getQualifiedName === undefined || iv_txt.getQualifiedName() !== "STRING") { iv_txt = undefined; }
    if (iv_txt === undefined) { iv_txt = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_txt); }
    let iv_act = INPUT?.iv_act;
    if (iv_act?.getQualifiedName === undefined || iv_act.getQualifiedName() !== "STRING") { iv_act = undefined; }
    if (iv_act === undefined) { iv_act = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_act); }
    let iv_query = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_query) {iv_query.set(INPUT.iv_query);}
    let iv_typ = INPUT?.iv_typ || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_typ === undefined) {iv_typ = abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().sapevent;}
    let iv_opt = INPUT?.iv_opt || new abap.types.Character();
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let iv_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_title) {iv_title.set(INPUT.iv_title);}
    let lv_class = new abap.types.String({qualifiedName: "STRING"});
    let lv_href = new abap.types.String({qualifiedName: "STRING"});
    let lv_click = new abap.types.String({qualifiedName: "STRING"});
    let lv_id = new abap.types.String({qualifiedName: "STRING"});
    let lv_act = new abap.types.String({qualifiedName: "STRING"});
    let lv_style = new abap.types.String({qualifiedName: "STRING"});
    let lv_title = new abap.types.String({qualifiedName: "STRING"});
    lv_class.set(iv_class);
    if (abap.compare.ca(iv_opt, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().strong)) {
      lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(9, ' emphasis')));
    }
    if (abap.compare.ca(iv_opt, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().cancel)) {
      lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(10, ' attention')));
    }
    if (abap.compare.ca(iv_opt, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().crossout)) {
      lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(14, ' crossout grey')));
    }
    if (abap.compare.initial(lv_class) === false) {
      abap.statements.shift(lv_class, {direction: 'LEFT',deletingLeading: abap.builtin.space});
      lv_class.set(new abap.types.String().set(` class="${abap.templateFormatting(lv_class)}"`));
    }
    lv_href.set(abap.CharacterFactory.get(9, ' href="#"'));
    lv_act.set(iv_act);
    if ((abap.compare.initial(iv_act) === false || abap.compare.eq(iv_typ, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().dummy)) && abap.compare.na(iv_opt, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_html_opt.get().crossout)) {
      let unique686 = iv_typ;
      if (abap.compare.eq(unique686, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().url)) {
        if (abap.compare.initial(iv_query) === false) {
          lv_act.set(abap.operators.concat(lv_act,abap.operators.concat(new abap.types.String().set(`?`),iv_query)));
        }
        lv_href.set(new abap.types.String().set(` href="${abap.templateFormatting(lv_act)}"`));
      } else if (abap.compare.eq(unique686, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().sapevent)) {
        if (abap.compare.initial(iv_query) === false) {
          lv_act.set(abap.operators.concat(lv_act,abap.operators.concat(new abap.types.String().set(`?`),iv_query)));
        }
        lv_href.set(new abap.types.String().set(` href="sapevent:${abap.templateFormatting(lv_act)}"`));
      } else if (abap.compare.eq(unique686, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().onclick)) {
        lv_href.set(abap.CharacterFactory.get(9, ' href="#"'));
        lv_click.set(new abap.types.String().set(` onclick="${abap.templateFormatting(iv_act)}"`));
      } else if (abap.compare.eq(unique686, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().dummy)) {
        lv_href.set(abap.CharacterFactory.get(9, ' href="#"'));
      }
    }
    if (abap.compare.initial(iv_id) === false) {
      lv_id.set(new abap.types.String().set(` id="${abap.templateFormatting(iv_id)}"`));
    }
    if (abap.compare.initial(iv_style) === false) {
      lv_style.set(new abap.types.String().set(` style="${abap.templateFormatting(iv_style)}"`));
    }
    if (abap.compare.initial(iv_title) === false) {
      lv_title.set(new abap.types.String().set(` title="${abap.templateFormatting(iv_title)}"`));
    }
    if (abap.compare.eq(zcl_abapgit_html.gv_debug_mode, abap.builtin.abap_true)) {
      lv_title.set(new abap.types.String().set(` title="${abap.templateFormatting(abap.builtin.escape({val: lv_href, format: abap.Classes['CL_ABAP_FORMAT'].e_html_attr}))}"`));
    }
    rv_str.set(abap.operators.concat(new abap.types.String().set(`<a${abap.templateFormatting(lv_id)}${abap.templateFormatting(lv_class)}${abap.templateFormatting(lv_href)}${abap.templateFormatting(lv_click)}${abap.templateFormatting(lv_style)}${abap.templateFormatting(lv_title)}>`),new abap.types.String().set(`${abap.templateFormatting(iv_txt)}</a>`)));
    return rv_str;
  }
  async zif_abapgit_html$add(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let ig_chunk = INPUT?.ig_chunk;
    let lv_type = new abap.types.Character(1, {});
    let li_renderable = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});
    let lx_error = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"});
    let lo_html = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML"});
    let fs_lt_tab_ = new abap.types.FieldSymbol(abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE"));
    lv_type.set(((await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_data({p_data: ig_chunk}))).get().type_kind);
    let unique687 = lv_type;
    if (abap.compare.eq(unique687, abap.CharacterFactory.get(1, 'C')) || abap.compare.eq(unique687, abap.CharacterFactory.get(1, 'g'))) {
      abap.statements.append({source: ig_chunk, target: this.#mt_buffer});
    } else if (abap.compare.eq(unique687, abap.CharacterFactory.get(1, 'h'))) {
      abap.statements.assign({target: fs_lt_tab_, source: ig_chunk});
      abap.statements.append({source: fs_lt_tab_, lines: true, target: this.#mt_buffer});
    } else if (abap.compare.eq(unique687, abap.CharacterFactory.get(1, 'r'))) {
      abap.statements.assert(abap.compare.initial(ig_chunk) === false);
      try {
        await abap.statements.cast(lo_html, ig_chunk);
      } catch (e) {
        if ((abap.Classes['CX_SY_MOVE_CAST_ERROR'] && e instanceof abap.Classes['CX_SY_MOVE_CAST_ERROR'])) {
          try {
            await abap.statements.cast(li_renderable, ig_chunk);
            await abap.statements.cast(lo_html, (await li_renderable.get().zif_abapgit_gui_renderable$render()));
          } catch (e) {
            if ((abap.Classes['CX_SY_MOVE_CAST_ERROR'] && e instanceof abap.Classes['CX_SY_MOVE_CAST_ERROR'])) {
              abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(0)));
            } else if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) {
              lx_error.set(e);
              await abap.statements.cast(lo_html, (await this.create({iv_initial_chunk: new abap.types.String().set(`<span class="error">Render error: ${abap.templateFormatting((await lx_error.get().if_message$get_text()))}</span>`)})));
            } else {
              throw e;
            }
          }
        } else {
          throw e;
        }
      }
      abap.statements.append({source: lo_html.get().#mt_buffer, lines: true, target: this.#mt_buffer});
    } else {
      abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(0)));
    }
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$add_a(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_txt = INPUT?.iv_txt;
    if (iv_txt?.getQualifiedName === undefined || iv_txt.getQualifiedName() !== "STRING") { iv_txt = undefined; }
    if (iv_txt === undefined) { iv_txt = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_txt); }
    let iv_act = INPUT?.iv_act;
    if (iv_act?.getQualifiedName === undefined || iv_act.getQualifiedName() !== "STRING") { iv_act = undefined; }
    if (iv_act === undefined) { iv_act = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_act); }
    let iv_query = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_query) {iv_query.set(INPUT.iv_query);}
    let iv_typ = INPUT?.iv_typ || new abap.types.Character();
    if (INPUT === undefined || INPUT.iv_typ === undefined) {iv_typ = abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().sapevent;}
    let iv_opt = INPUT?.iv_opt || new abap.types.Character();
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let iv_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_title) {iv_title.set(INPUT.iv_title);}
    await this.zif_abapgit_html$add({ig_chunk: (await this.zif_abapgit_html$a({iv_txt: iv_txt, iv_act: iv_act, iv_query: iv_query, iv_typ: iv_typ, iv_opt: iv_opt, iv_class: iv_class, iv_id: iv_id, iv_style: iv_style, iv_title: iv_title}))});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$add_checkbox(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_id = INPUT?.iv_id;
    if (iv_id?.getQualifiedName === undefined || iv_id.getQualifiedName() !== "STRING") { iv_id = undefined; }
    if (iv_id === undefined) { iv_id = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_id); }
    let iv_checked = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_checked) {iv_checked.set(INPUT.iv_checked);}
    await this.zif_abapgit_html$add({ig_chunk: (await this.checkbox({iv_id: iv_id, iv_checked: iv_checked}))});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$add_icon(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_name = INPUT?.iv_name;
    if (iv_name?.getQualifiedName === undefined || iv_name.getQualifiedName() !== "STRING") { iv_name = undefined; }
    if (iv_name === undefined) { iv_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_name); }
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_onclick = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_onclick) {iv_onclick.set(INPUT.iv_onclick);}
    await this.zif_abapgit_html$add({ig_chunk: (await this.icon({iv_name: iv_name, iv_class: iv_class, iv_hint: iv_hint, iv_onclick: iv_onclick}))});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$div(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_content = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_content) {iv_content.set(INPUT.iv_content);}
    let ii_content = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    if (INPUT && INPUT.ii_content) {ii_content.set(INPUT.ii_content);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let is_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    if (INPUT && INPUT.is_data_attr) {is_data_attr.set(INPUT.is_data_attr);}
    let it_data_attrs = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "zif_abapgit_html=>ty_data_attrs");
    if (INPUT && INPUT.it_data_attrs) {it_data_attrs.set(INPUT.it_data_attrs);}
    await this.zif_abapgit_html$wrap({iv_tag: abap.CharacterFactory.get(3, 'div'), iv_content: iv_content, ii_content: ii_content, is_data_attr: is_data_attr, it_data_attrs: it_data_attrs, iv_id: iv_id, iv_style: iv_style, iv_class: iv_class});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$icon(INPUT) {
    let rv_str = new abap.types.String({qualifiedName: "STRING"});
    let iv_name = INPUT?.iv_name;
    if (iv_name?.getQualifiedName === undefined || iv_name.getQualifiedName() !== "STRING") { iv_name = undefined; }
    if (iv_name === undefined) { iv_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_name); }
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_onclick = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_onclick) {iv_onclick.set(INPUT.iv_onclick);}
    rv_str.set((await this.icon({iv_name: iv_name, iv_hint: iv_hint, iv_class: iv_class, iv_onclick: iv_onclick})));
    return rv_str;
  }
  async zif_abapgit_html$is_empty() {
    let rv_yes = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    rv_yes.set(abap.builtin.boolc(abap.compare.eq(abap.builtin.lines({val: this.#mt_buffer}), abap.IntegerFactory.get(0))));
    return rv_yes;
  }
  async zif_abapgit_html$render(INPUT) {
    let rv_html = new abap.types.String({qualifiedName: "STRING"});
    let iv_no_indent_jscss = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_no_indent_jscss) {iv_no_indent_jscss.set(INPUT.iv_no_indent_jscss);}
    if (INPUT === undefined || INPUT.iv_no_indent_jscss === undefined) {iv_no_indent_jscss = abap.builtin.abap_false;}
    let iv_no_line_breaks = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_no_line_breaks) {iv_no_line_breaks.set(INPUT.iv_no_line_breaks);}
    if (INPUT === undefined || INPUT.iv_no_line_breaks === undefined) {iv_no_line_breaks = abap.builtin.abap_false;}
    let ls_context = new abap.types.Structure({
    "no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
    "indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {});
    let lt_temp = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");
    let fs_lv_line_ = new abap.types.FieldSymbol(new abap.types.String({qualifiedName: "STRING"}));
    let fs_lv_line_c_ = new abap.types.FieldSymbol(new abap.types.String({qualifiedName: "STRING"}));
    if (abap.compare.eq(iv_no_line_breaks, abap.builtin.abap_true)) {
      abap.statements.concatenate({source: [this.#mt_buffer], target: rv_html, lines: true});
    } else {
      ls_context.get().no_indent_jscss.set(iv_no_indent_jscss);
      for await (const unique688 of abap.statements.loop(this.#mt_buffer)) {
        fs_lv_line_.assign(unique688);
        abap.statements.append({source: fs_lv_line_, assigning: fs_lv_line_c_, target: lt_temp});
        await this.#indent_line({cs_context: ls_context, cv_line: fs_lv_line_c_});
      }
      abap.statements.concatenate({source: [lt_temp], target: rv_html, separatedBy: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline, lines: true});
    }
    return rv_html;
  }
  async zif_abapgit_html$set_title(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_title = INPUT?.iv_title;
    if (iv_title?.getQualifiedName === undefined || iv_title.getQualifiedName() !== "STRING") { iv_title = undefined; }
    if (iv_title === undefined) { iv_title = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_title); }
    this.zif_abapgit_html$mv_chunk_title.set(iv_title);
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$td(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_content = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_content) {iv_content.set(INPUT.iv_content);}
    let ii_content = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    if (INPUT && INPUT.ii_content) {ii_content.set(INPUT.ii_content);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let iv_format_single_line = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_format_single_line) {iv_format_single_line.set(INPUT.iv_format_single_line);}
    if (INPUT === undefined || INPUT.iv_format_single_line === undefined) {iv_format_single_line = abap.builtin.abap_true;}
    let is_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    if (INPUT && INPUT.is_data_attr) {is_data_attr.set(INPUT.is_data_attr);}
    let it_data_attrs = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "zif_abapgit_html=>ty_data_attrs");
    if (INPUT && INPUT.it_data_attrs) {it_data_attrs.set(INPUT.it_data_attrs);}
    await this.zif_abapgit_html$wrap({iv_format_single_line: iv_format_single_line, iv_tag: abap.CharacterFactory.get(2, 'td'), iv_content: iv_content, ii_content: ii_content, iv_id: iv_id, iv_class: iv_class, iv_style: iv_style, is_data_attr: is_data_attr, it_data_attrs: it_data_attrs, iv_hint: iv_hint});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$th(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_content = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_content) {iv_content.set(INPUT.iv_content);}
    let ii_content = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    if (INPUT && INPUT.ii_content) {ii_content.set(INPUT.ii_content);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let iv_format_single_line = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_format_single_line) {iv_format_single_line.set(INPUT.iv_format_single_line);}
    if (INPUT === undefined || INPUT.iv_format_single_line === undefined) {iv_format_single_line = abap.builtin.abap_true;}
    let is_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    if (INPUT && INPUT.is_data_attr) {is_data_attr.set(INPUT.is_data_attr);}
    let it_data_attrs = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "zif_abapgit_html=>ty_data_attrs");
    if (INPUT && INPUT.it_data_attrs) {it_data_attrs.set(INPUT.it_data_attrs);}
    await this.zif_abapgit_html$wrap({iv_format_single_line: iv_format_single_line, iv_tag: abap.CharacterFactory.get(2, 'th'), iv_content: iv_content, ii_content: ii_content, iv_id: iv_id, iv_class: iv_class, iv_style: iv_style, is_data_attr: is_data_attr, it_data_attrs: it_data_attrs, iv_hint: iv_hint});
    ri_self.set(this.me);
    return ri_self;
  }
  async zif_abapgit_html$wrap(INPUT) {
    let ri_self = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    let iv_tag = INPUT?.iv_tag;
    if (iv_tag?.getQualifiedName === undefined || iv_tag.getQualifiedName() !== "STRING") { iv_tag = undefined; }
    if (iv_tag === undefined) { iv_tag = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_tag); }
    let iv_content = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_content) {iv_content.set(INPUT.iv_content);}
    let ii_content = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
    if (INPUT && INPUT.ii_content) {ii_content.set(INPUT.ii_content);}
    let iv_id = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);}
    let iv_class = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);}
    let iv_hint = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_hint) {iv_hint.set(INPUT.iv_hint);}
    let iv_style = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_style) {iv_style.set(INPUT.iv_style);}
    let iv_format_single_line = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_format_single_line) {iv_format_single_line.set(INPUT.iv_format_single_line);}
    if (INPUT === undefined || INPUT.iv_format_single_line === undefined) {iv_format_single_line = abap.builtin.abap_false;}
    let is_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    if (INPUT && INPUT.is_data_attr) {is_data_attr.set(INPUT.is_data_attr);}
    let it_data_attrs = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "zif_abapgit_html=>ty_data_attrs");
    if (INPUT && INPUT.it_data_attrs) {it_data_attrs.set(INPUT.it_data_attrs);}
    let lv_open_tag = new abap.types.String({qualifiedName: "STRING"});
    let lv_close_tag = new abap.types.String({qualifiedName: "STRING"});
    let ls_data_attr = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {});
    let lv_class = new abap.types.String({qualifiedName: "STRING"});
    let lv_style = new abap.types.String({qualifiedName: "STRING"});
    let lv_id = new abap.types.String({qualifiedName: "STRING"});
    let lv_data_attr = new abap.types.String({qualifiedName: "STRING"});
    let lv_title = new abap.types.String({qualifiedName: "STRING"});
    if (abap.compare.initial(iv_id) === false) {
      lv_id.set(new abap.types.String().set(` id="${abap.templateFormatting(iv_id)}"`));
    }
    if (abap.compare.initial(iv_class) === false) {
      lv_class.set(new abap.types.String().set(` class="${abap.templateFormatting(iv_class)}"`));
    }
    if (abap.compare.initial(iv_style) === false) {
      lv_style.set(new abap.types.String().set(` style="${abap.templateFormatting(iv_style)}"`));
    }
    if (abap.compare.initial(iv_hint) === false) {
      lv_title.set(new abap.types.String().set(` title="${abap.templateFormatting(iv_hint)}"`));
    }
    if (abap.compare.initial(is_data_attr) === false) {
      lv_data_attr.set(new abap.types.String().set(` data-${abap.templateFormatting(is_data_attr.get().name)}="${abap.templateFormatting(is_data_attr.get().value)}"`));
    }
    for await (const unique689 of abap.statements.loop(it_data_attrs)) {
      ls_data_attr.set(unique689);
      lv_data_attr.set(abap.operators.concat(lv_data_attr,new abap.types.String().set(` data-${abap.templateFormatting(ls_data_attr.get().name)}="${abap.templateFormatting(ls_data_attr.get().value)}"`)));
    }
    lv_open_tag.set(new abap.types.String().set(`<${abap.templateFormatting(iv_tag)}${abap.templateFormatting(lv_id)}${abap.templateFormatting(lv_class)}${abap.templateFormatting(lv_style)}${abap.templateFormatting(lv_data_attr)}${abap.templateFormatting(lv_title)}>`));
    lv_close_tag.set(new abap.types.String().set(`</${abap.templateFormatting(iv_tag)}>`));
    if (abap.compare.initial(ii_content) && abap.compare.initial(iv_content)) {
      lv_open_tag.set(abap.operators.concat(lv_open_tag,lv_close_tag));
      lv_close_tag.clear();
    }
    if (abap.compare.eq(iv_format_single_line, abap.builtin.abap_true) && abap.compare.initial(iv_content) === false) {
      await this.zif_abapgit_html$add({ig_chunk: abap.operators.concat(lv_open_tag,abap.operators.concat(iv_content,lv_close_tag))});
    } else {
      await this.zif_abapgit_html$add({ig_chunk: lv_open_tag});
      if (abap.compare.initial(ii_content) === false) {
        await this.zif_abapgit_html$add({ig_chunk: ii_content});
      } else if (abap.compare.initial(iv_content) === false) {
        await this.zif_abapgit_html$add({ig_chunk: iv_content});
      }
      if (abap.compare.initial(lv_close_tag) === false) {
        await this.zif_abapgit_html$add({ig_chunk: lv_close_tag});
      }
    }
    ri_self.set(this.me);
    return ri_self;
  }
}
abap.Classes['ZCL_ABAPGIT_HTML'] = zcl_abapgit_html;
zcl_abapgit_html.go_single_tags_re = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_REGEX", RTTIName: "\\CLASS=CL_ABAP_REGEX"});
zcl_abapgit_html.gv_spaces = new abap.types.String({qualifiedName: "STRING"});
zcl_abapgit_html.gv_debug_mode = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
zcl_abapgit_html.c_indent_size = new abap.types.Integer({qualifiedName: "I"});
zcl_abapgit_html.c_indent_size.set(2);
zcl_abapgit_html.c_max_indent = new abap.types.Integer({qualifiedName: "I"});
zcl_abapgit_html.c_max_indent.set(200);
zcl_abapgit_html.zif_abapgit_html$c_action_type = new abap.types.Structure({
"sapevent": new abap.types.Character(1, {}),
"url": new abap.types.Character(1, {}),
"onclick": new abap.types.Character(1, {}),
"separator": new abap.types.Character(1, {}),
"dummy": new abap.types.Character(1, {})}, undefined, undefined, {}, {});
zcl_abapgit_html.zif_abapgit_html$c_action_type.get().sapevent.set('E');
zcl_abapgit_html.zif_abapgit_html$c_action_type.get().url.set('U');
zcl_abapgit_html.zif_abapgit_html$c_action_type.get().onclick.set('C');
zcl_abapgit_html.zif_abapgit_html$c_action_type.get().separator.set('S');
zcl_abapgit_html.zif_abapgit_html$c_action_type.get().dummy.set('_');
zcl_abapgit_html.zif_abapgit_html$c_html_opt = new abap.types.Structure({
"strong": new abap.types.Character(1, {}),
"cancel": new abap.types.Character(1, {}),
"crossout": new abap.types.Character(1, {})}, undefined, undefined, {}, {});
zcl_abapgit_html.zif_abapgit_html$c_html_opt.get().strong.set('E');
zcl_abapgit_html.zif_abapgit_html$c_html_opt.get().cancel.set('C');
zcl_abapgit_html.zif_abapgit_html$c_html_opt.get().crossout.set('X');
await abap.Classes['ZCL_ABAPGIT_HTML'].class_constructor();
zcl_abapgit_html.ty_indent_context = new abap.types.Structure({
"no_indent_jscss": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"within_style": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"within_js": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"within_textarea": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"within_pre": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"indent": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT"}),
"indent_str": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_INDENT_CONTEXT-INDENT_STR"})}, "zcl_abapgit_html=>ty_indent_context", undefined, {}, {});
zcl_abapgit_html.ty_study_result = new abap.types.Structure({
"style_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"style_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"script_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"script_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"textarea_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"textarea_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"pre_open": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"pre_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"tag_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"curly_close": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"openings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-OPENINGS"}),
"closings": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-CLOSINGS"}),
"singles": new abap.types.Integer({qualifiedName: "ZCL_ABAPGIT_HTML=>TY_STUDY_RESULT-SINGLES"})}, "zcl_abapgit_html=>ty_study_result", undefined, {}, {});
export {zcl_abapgit_html};