<script type="text/template" id="pre-sale-template">
    <div class="bp-compact-form">
        <% if (isShop !== undefined && isShop) { %>
        <p>
            <?= __('After purchasing this item, the auction house will send you an invoice including shipping costs. Multiple purchases will be combined into one invoice', 'auctionforge') ?>.
        </p>
        <% } else { %>
        <p>
            <?= __('This lot may be purchased in a buyout price before the auction. In case of buyout, the lot will be removed from the auction', 'auctionforge') ?>
        </p>
        <% } %>
        <div class="bp-d-flex buyout-block">
            <div class="buyout-block__inner">
                <div class="buyout-block__label">
                    <p><?= __('Buyout price', 'auctionforge') ?>:</p>
                </div>
                <div class="buyout-block__price">
                    <strong><%- formattedPrice(price, currentCurrency) %></strong>
                </div>
            </div>
            <div class="buyout-block__btn">
                <button id="pre-sale-action" data-micromodal-trigger="modal-pre-sale" class="bp-btn bp-btn-default">
                    <?= __('Buy now', 'auctionforge') ?>
                </button>
            </div>
        </div>
        <?php if (0) { //Disabled ?>
            <p><?= __('Price including commission', 'auctionforge') ?>: <strong><%- formattedPrice(commissionPrice, currentCurrency) %></strong></p>
        <?php } ?>
    </div>
</script>
