{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

    Edwiser RemUI
    @package theme_remui
    @copyright (c) 2023 WisdmLabs (https://wisdmlabs.com/)
    @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
}}
{{!
    Product Notification.
}}

<div id="inproduct-notification">
    <div class="overlay-complete"></div>
    <div class="inproduct-notification-popup">
        <div class="card p-6">
            <i class="fa fa-times fa-custom closebtn"></i>

            <div class="card-body row p-0">
                <div class="col-md-7 col-sm-12 ">
                    <div class="img-wrapper mb-4">
                        <img class="edwiser-logo" src="{{edwiserlogo}}">
                    </div>
                    <p class="card-text font-size-20 mb-4">{{{msg}}}</p>
                    <a href="#" class="btn closebtn brand-btn" >{{#str}}coolthankx, theme_remui{{/str}}</a>
                </div>
                <div class="col-md-5 col-sm-12 m-0 p-0 justify-content-center align-items-center d-flex">
                    <img class="w-100 {{imgclass}}" src="{{mainimg}}" loading="lazy">
                </div>
            </div>
        </div>
    </div>
</div>
{{#js}}
require(['jquery','theme_remui/user/repository'], function($, UserRepository){
    $(".inproduct-notification-popup .closebtn").on("click", function (){
            UserRepository.setUserPreference('edwiser_inproduct_notification', false);
        $("#inproduct-notification").remove();
    });
});
{{/js}}
