<div>
  <div class='prefix'>
    {{#if rolled}}
      {{localize "GURPS.chatRollingDamage" dice=dice damageTypeText=damageTypeText numtimes=numtimes}}
    {{else}}
      {{localize "GURPS.chatFixedDamage" dice=dice damageTypeText=damageTypeText}}
    {{/if}}
    {{#if hitlocation}} ({{hitlocation}}){{/if}}
  </div>
  {{#if userTarget}}
    <div style='font-size: smaller; margin-left: .5rem;'><i
        class="fas fa-bullseye"></i>&nbsp;{{localize "GURPS.targeting" name=userTarget}}
    </div>
  {{/if}}
  <div class='roll-message'>
    {{#if modifiers}}
      <hr />
      <ul class='modifier-list'>
        {{#each modifiers}}
          <li>{{this}}</li>
        {{/each}}
      </ul> 
    {{/if}}
  </div>
  <div class='damage-chat-message'>
    {{#each draggableData}}
      <div class='gurps damage-message' data-transfer='{{transfer}}'>

        <div class='roll-message'>
          <div class='collapsible-wrapperXXXX'>
            <!-- <input id='collapsible-{{id}}' class='toggle offscreen-only' type='checkbox'> -->
            <label for='collapsible-{{id}}' class='roll-result {{#if hasExplanation}}label-toggleXXXX{{/if}}'>
              <span>{{#if target}}&nbsp;{{target}}:{{/if}} 
                {{#if ../loaded}}
                  <i style='color:darkred' class='fas fa-user'></i>
                {{else}}
                  <i class='fas fa-dice'></i>
                {{/if}}
                <i class='fas fa-long-arrow-alt-right' style='color:dimgray'></i>
                <span class='roll-detail'>
                  {{#if (eq damage 1)}}
                    {{{localize "GURPS.pointDamage" damage=damage}}}
                  {{else}}
                    {{{localize "GURPS.pointsDamage" damage=damage}}}
                  {{/if}}</span>
              </span>
            </label>
            {{#if hasExplanation}}
              <div class='gga-group collapsible-content'>
                <div class='content-inner'>
                  <hr />
                  {{#if explainLineOne}}
                    <div style='text-align: start' class='aside'>{{explainLineOne}}</div>
                  {{/if}}
                  {{#if explainLineTwo}}
                    <div style='text-align: start' class='aside'>{{explainLineTwo}}</div>
                  {{/if}}
                  {{#if isB378}}
                    <div class='aside'>{{localize "GURPS.minimumDamageRule"}} (<span
                        class='pdflink'>{{localize "GURPS.pdfDamageRoll"}}</span>)</div>
                  {{/if}}
                </div>
              </div>
            {{/if}}
          </div>
        </div>

      </div>
    {{/each}}
    {{#if (gt draggableData.length 1)}}
      <div class='gurps damage-all-message' data-transfer='{{transfer}}' {{#if (gt draggableData.length 5)}}style=' 
        background-image: url("systems/gurps/icons/all-the-things-transparent.webp"); 
        background-size: 50%; background-repeat: no-repeat; background-attachment: local;
        background-position: right;' {{/if}}>
        <span style='font-weight: 900;'><i class="fas fa-layer-group"></i>&nbsp;{{#if (gt draggableData.length 5)}}
            {{localize "GURPS.allTheDamage"}}
          {{else}}{{localize "GURPS.allDamage"}}{{/if}}</span>
      </div>
    {{/if}}
    {{#if userTarget}}
      <div>
        <button class='apply-all'
          style='margin-top: 0.25rem;'>{{localize "GURPS.applyAllToTarget" name=userTarget}}</button>
      </div>
    {{/if}}
  </div>
</div>