<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_product_variants_price_field %}
<div
    class="sw-product-variants-price-field"
    :class="{'is--readonly': readonly}"
>
    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_product_variants_price_field_gross %}
    <div class="sw-field">
        <sw-number-field
            v-model:value="price.gross"
            size="small"
            class="sw-product-variants-price-field__input"
            :disabled="readonly"
            :digits="currency.decimalPrecision"
            v-bind="$attrs"
            @update:value="onPriceGrossChange"
        />
    </div>
    {% endblock %}

    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_product_variants_price_field_lock_button %}
    <button
        class="sw-product-variants-price-field__lock"
        :class="{'is--locked': price.linked}"
        @click="onLockSwitch"
    >
        <sw-icon
            v-if="price.linked"
            name="regular-lock"
            size="16"
        />
        <sw-icon
            v-else
            name="regular-lock-open"
            size="16"
        />
    </button>
    {% endblock %}

    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_product_variants_price_field_net %}
    <div class="sw-field">
        <sw-number-field
            v-model:value="price.net"
            size="small"
            class="sw-field sw-product-variants-price-field__input"
            :disabled="readonly"
            :digits="currency.decimalPrecision"
            v-bind="$attrs"
            @update:value="onPriceNetChange"
        />
    </div>
    {% endblock %}
</div>
{% endblock %}
