{{!-- Discipline Tab --}}
<div class="tab discipline sheet-inner-area" data-group="primary" data-tab="discipline">

    <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize "wod.labels.add.item"}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

    {{> "systems/worldofdarkness/templates/actor/parts/vampire/disciplines.html"}}

</div>

{{#if (eqAnyNot actor.type config.sheettype.werewolf config.sheettype.changingbreed)}}
    {{!-- Gift Tab --}}
    <div class="tab gift sheet-inner-area" data-group="primary" data-tab="gift">

        <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize "wod.labels.add.item"}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

        {{> "systems/worldofdarkness/templates/actor/parts/gifts.html"}}
        {{> "systems/worldofdarkness/templates/actor/parts/werewolf/rites.html"}}

    </div>
{{/if}}

{{!-- Dreaming Tab --}}
<div class="tab dreaming" data-group="primary" data-tab="dreaming">

    <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize "wod.labels.add.item"}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

    {{> "systems/worldofdarkness/templates/actor/parts/changeling/dreaming.html"}}

</div>

<!-- Death Tab -->
<div class="tab death sheet-inner-area" data-group="primary" data-tab="death">
    <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize "wod.labels.add.item"}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

    <div class="sheet-area flex-columns">

        <div class="clearareaBox">

            <div class="sheet-headline sheet-banner splatFont" data-area="horrors">
                <span class="sheet-banner-text">{{localize 'wod.power.horrors'}}</span>
            </div>

            {{#each actor.system.listdata.powers.horrors as |item id|}}

                {{> "systems/worldofdarkness/templates/actor/parts/power_list.html" item=item config=../config actor=../actor locked=../locked showclear=false}}

            {{/each}}

        </div>
    </div>

    <div class="sheet-area flex-columns">

        <div class="clearareaBox">

            <div class="sheet-headline sheet-banner splatFont" data-area="stains">
                <span class="sheet-banner-text">{{localize 'wod.power.stains'}}</span>
            </div>

            {{#each actor.system.listdata.powers.stains as |item id|}}

                {{> "systems/worldofdarkness/templates/actor/parts/power_list.html" item=item config=../config actor=../actor locked=../locked showclear=false}}

            {{/each}}

        </div>
    </div>

</div>

{{!-- Power Tab --}}
<div class="tab power sheet-inner-area" data-group="primary" data-tab="power">

    {{> "systems/worldofdarkness/templates/actor/parts/creature/power.html"}}

</div>

{{!-- Hekau Tab --}}
<div class="tab scarab sheet-inner-area" data-group="primary" data-tab="scarab">

    <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize "wod.labels.add.item"}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

    <div class="sheet-area flex-columns">
        <div class="area-box">

            <div class="sheet-headline sheet-banner splatFont" data-area="hekau"><span class="sheet-banner-text">{{localize "wod.power.hekaus"}}</span></div>

            {{#each (getMainPowerList actor "wod.types.hekau") as |item id|}}
                {{> "systems/worldofdarkness/templates/actor/parts/mainpower_list.html" mainpower=item config=../config actor=../actor locked=../locked}}
            {{/each}}
        </div>
    </div>

    {{#if (gt (couintUnsortedMainPowerList actor "wod.types.hekaupower") 0)}}

        <div class="sheet-area unsorted-area flex-columns">
            <div class="headlineNormal info-box">{{localize "wod.power.unsortedhekaus"}}</div>

            <div class="area-box">
                {{#each (getUnsortedMainPowerList actor "wod.types.hekaupower") as | item id|}}

                    <div class="row">
                        <div class="pullLeft headlineNormal width-namebox vrollable" 
                            data-type="{{../config.sheettype.mortal}}"
                            data-object="SortHekauPower"
                            data-rollitem="true"
                            data-itemid="{{item._id}}">{{item.name}}</div>
                        
                        {{#if (eq ../locked false)}}
                            <div class="pullLeft power-iconbox">
                                <a class="item-delete" title="{{localize 'wod.labels.remove.hekaupower'}}" data-type="Hekau" data-item-id="{{item._id}}"><i class="icon fa-solid fa-trash-can"></i></a>
                            </div>
                        {{/if}}                    
                    </div>

                {{/each}}
            </div>
        </div>
    {{/if}}
</div>

{{!-- Numina Tab --}}
<div class="tab numina sheet-inner-area" data-group="primary" data-tab="numina">

    {{#if (eqAny actor.type config.sheettype.werewolf config.sheettype.changingbreed)}}<div style="display: flow-root;">{{/if}}

        <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize 'wod.labels.add.item'}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

        <div class="sheet-area flex-columns">
            <div class="area-box">

                <div class="sheet-headline sheet-banner splatFont" data-area="numina"><span class="sheet-banner-text">{{localize "wod.power.numinas"}}</span></div>

                {{#each (getMainPowerList actor "wod.types.numina") as |item id|}}
                    {{> "systems/worldofdarkness/templates/actor/parts/mainpower_list.html" mainpower=item config=../config actor=../actor locked=../locked}}
                {{/each}}
            </div>
        </div>

        {{#if (gt (couintUnsortedMainPowerList actor "wod.types.numinapower") 0)}}

            <div class="sheet-area unsorted-area flex-columns">
                <div class="headlineNormal info-box">{{localize "wod.power.unsortednuminas"}}</div>

                <div class="area-box">
                    {{#each (getUnsortedMainPowerList actor "wod.types.numinapower") as | item id|}}

                        <div class="row">
                            <div class="pullLeft headlineNormal width-namebox vrollable" 
                                data-type="{{../config.sheettype.mortal}}"
                                data-object="SortNuminaPower"
                                data-rollitem="true"
                                data-itemid="{{item._id}}">{{item.name}}</div>
                            
                            {{#if (eq ../locked false)}}
                                <div class="pullLeft power-iconbox">
                                    <a class="item-delete" title="{{localize 'wod.labels.remove.numinapower'}}" data-type="Numina" data-item-id="{{item._id}}"><i class="icon fa-solid fa-trash-can"></i></a>
                                </div>
                            {{/if}}                    
                        </div>

                    {{/each}}
                </div>
            </div>
        {{/if}}

        {{#if (eqAnyNot actor.type config.sheettype.werewolf config.sheettype.changingbreed config.sheettype.exalted)}}

            <div class="pullLeft" style="width: 36%; height: 100%; display: flex; flex-direction: column; margin-top: 50px;">
                {{> "systems/worldofdarkness/templates/actor/parts/mage/resonance.html"}}
            </div>

        {{/if}}

    {{#if (eqAny actor.type config.sheettype.werewolf config.sheettype.changingbreed)}}</div>{{/if}}

</div>

{{!-- Exalted Charm Tab--}}
<div class="tab exaltedcharm sheet-inner-area" data-group="primary" data-tab="exaltedcharm">

    <i class="macroBtn pointer createicon fa-solid fa-square-plus item-create" title="{{localize 'wod.labels.add.item'}}" aria-hidden="true" data-itemtype="All" data-origin="power"></i>

    {{> "systems/worldofdarkness/templates/actor/parts/exalted/exalted_charms.html"}}    

</div>
