<roll-part-img>
  <img src="{{current.meditation.img}}" data-tooltip="{{current.meditation.name}}" />
</roll-part-img>
<roll-part-detail>
{{#if refs.meditations}}
  <subline>
    Rêve actuel: {{rollData.active.actor.system.reve.reve.value}}
  </subline>
  <subline>
    <select name="select-meditation" {{#if rollData.type.retry}}disabled{{/if}}>
      {{selectOptions refs.meditations selected=current.key valueAttr="key" labelAttr="label"}}
    </select>
    {{#if current.meditation.system.malus}}
    <selected-numeric-value>
    {{plusMoins current.meditation.system.malus}}
    </selected-numeric-value>
    {{/if}}
  </subline>


  <subline><strong><span name="theme">{{current.meditation.system.theme}}</span></strong></subline>
  <subline>Support:&nbsp;<strong><span name="support">{{current.meditation.system.support}}</span></strong></subline>

  <subline>
    TMR:&nbsp;<strong><span name="tmr">{{typeTmr-name current.meditation.system.tmr}}</span></strong>
    {{#unless current.isTMR}}
      &nbsp;<div class="warning">
        <i class="fa-solid fa-circle-exclamation"></i>
        {{caseTmr-label rollData.active.actor.system.reve.tmrpos.coord}}
        {{rollData.active.actor.system.reve.tmrpos.coord}}
      </div>
    {{/unless}}
    </subline>
  </subline>
  <subline>Durée:&nbsp;60 minutes</subline>

  <br>

  <subline>
    <input class="conditionMeditation" type="checkbox" name="isComportement" {{#if current.isComportement}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
    <label for="isComportement">Comportement:&nbsp;
      <span name="comportement">{{current.meditation.system.comportement}}</span>
    </label>
  </subline>

  <subline>
    <input class="conditionMeditation" type="checkbox" name="isHeure" {{#if current.isHeure}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
    <label for="isHeure">Heure:&nbsp;
      <span name="heure">{{timestamp-label current.heureMeditation}}</span>
      <span name="heure-signe">
        {{timestamp-imgSigneHeure current.heureMeditation}}
      </span>
      {{#if (ne current.heureMeditation current.heureMonde)}}
        <span class="warning">
          <i class="fa-solid fa-circle-exclamation"></i>
          {{timestamp-label current.heureMonde}}
          {{timestamp-imgSigneHeure current.heureMonde}}
        </span>
      {{/if}}
    </label>
  </subline>

  <subline>
    <input class="conditionMeditation" type="checkbox" name="isPurification" {{#if current.isPurification}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
    <label for="isPurification">Purification:&nbsp;
      <span name="purification">{{current.meditation.system.purification}}</span></label>
  </subline>

  <subline>
    <input class="conditionMeditation" type="checkbox" name="isVeture" {{#if current.isVeture}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
    <label for="isVeture">Vêture:&nbsp;
      <span name="veture">{{current.meditation.system.veture}}</span>
    </label>
  </subline>
  {{else}}
  <subline>
    <p>Le haut-rêvant ne connait aucune méditation</p>
  </subline>
  {{/if}}
</roll-part-detail>
