{**
 * Copyright since 2022 Inferendo Srl
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    Inferendo SRL <hello@visidea.ai>
 * @copyright Since 2022 Inferendo Srl
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *}

<div class="visidea-search-bar" language="{$language.iso_code}" user_id="{Context::getContext()->customer->id|escape:'htmlall':'UTF-8'}"></div>
<script type="text/javascript">
{literal}
    document.addEventListener('DOMContentLoaded', function() {
        window.visidea('{/literal}{Configuration::get('VISIDEA_WEBSITE',null)|escape:'htmlall':'UTF-8'}{literal}','{/literal}{Configuration::get('VISIDEA_PUBLIC_KEY',null)|escape:'htmlall':'UTF-8'}{literal}', '{/literal}{$language.iso_code}{literal}');
    });
{/literal}
</script>
