<?php
session_start();
require_once(__DIR__ . "/../../config/db.php");
include(__DIR__ . "/../../session.php");
include(__DIR__ . "/../layouts/header.php");
?>

    <link href="/Content/zelma-v2-beta-mobile-css" rel="stylesheet"/>
    <link href="/Content/Loyalty/zelma-v2-beta-mobile-css" rel="stylesheet"/>
    <link href="/Content/Theme/zelma-v2-beta-mobile-<?= $config['theme']; ?>-css" rel="stylesheet"/>

</head>
<body data-online-id="DRtoiYOia/b5qnFsIyrWkaGb0wMITNaV4qPalojPseS1QFi2k6i58w=="
      data-route="loyalty/benefits" style="--expand-icon-src: url(//d33egg70nrp50s.cloudfront.net/Images/icons/expand.gif?v=20241125);
      --collapse-icon-src: url(//d33egg70nrp50s.cloudfront.net/Images/icons/collapse.gif?v=20241125);
      --play-icon-src: url(//d33egg70nrp50s.cloudfront.net/Images/icons/play.png?v=20241125);
      --desktop-icon-src: url(//d33egg70nrp50s.cloudfront.net/Images/icons/desktop-white.png?v=20241125);
      --jquery-ui-444444-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_444444_256x240.png?v=20241125);
      --jquery-ui-555555-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_555555_256x240.png?v=20241125);
      --jquery-ui-ffffff-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_ffffff_256x240.png?v=20241125);
      --jquery-ui-777620-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_777620_256x240.png?v=20241125);
      --jquery-ui-cc0000-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_cc0000_256x240.png?v=20241125);
      --jquery-ui-777777-src: url(//d33egg70nrp50s.cloudfront.net/Images/jquery-ui/ui-icons_777777_256x240.png?v=20241125);">


<?php include(__DIR__ . "/../layouts/navbar.php"); ?>

<div class="standard-form-container loyalty-container">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="standard-form-title">
                    Hadiah Loyalitas
                </div>
                <div class="loyalty-top-bar-container">
                    <div class="loyalty-experience-section">
                        <a href="/mobile/loyalty/benefits">
                            <div class="loyalty-experience-container">
                                <div class="loyalty-badge">
                                    <img class="loyalty_level" data-image-path="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/badge/" loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/badge/bronze.svg?v=20241125" />
                                </div>
                                <div class="loyalty-experience-item">
                                    <div class="loyalty-experience-level">
                                        <span class="loyalty-level bronze">bronze</span>
                                        <div class="loyalty-experience-amount" id="loyalty_experience_amount">
                                            <span>0</span>/25,000 EXP
                                        </div>
                                    </div>
                                    <div class="loyalty-experience-bar">
                                        <div class="xp-label">EXP</div>
                                        <div class="loyalty-experience-progress">
                                            <div class="progress loyalty_experience_progress" style="width: 0%"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="loyalty-experience-chevron-right">
                                <img class="chevron-right" loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/icons/chevron-right.svg?v=20241125" />
                            </div>
                        </a>
                    </div>
                    <div class="vr"></div>
                    <div class="loyalty-point-section">
                        <div>
                            <div class="loyalty-point-title">
                                <div class="info-container">
                                    <button class="info-icon" data-toggle="modal" data-target="#popup_loyalty_point">
                                        i
                                    </button>
                                </div>
                                <span>Loyalty Point</span>
                            </div>
                            <div class="loyalty-point-amount">
                                <div class="lp-label">LP</div>
                                <div class="loyalty-point loyalty_point">0</div>
                                <div class="refresh-container">
                                    <button title="Refresh" class="refresh_balance">
                                        <img alt="Refresh Balance" loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/layout/refresh-v2.svg?v=20241125" />
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="popup_loyalty_point" class="modal popup-modal " role="dialog" aria-label="Popup Modal">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">×</span>
                                    </button>
                                </div>
                                <div class="modal-body loyalty-benefit-modal-body">
                                    <div class="lp-label">LP</div>
                                    <span>Loyalty Point</span>
                                    <p>Loyalty Point (LP) adalah point yang dapat digunakan oleh player untuk menukarkan hadiah sesuai dengan harga produk (LP) yang sudah ditentukan.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="standard-form-content">
                        <div class="loyalty-menu-container" id="loyalty_menu">
                                <a href="/download-apk" class="loyalty-menu-item" id="loyalty_menu_redemption" target="_blank">
                                    <img loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/redemption-icon.svg?v=20241125" />
                                    Penukaran
                                </a>
                            <a href="/mobile/loyalty/missions" class="loyalty-menu-item" id="loyalty_menu_mission">
                                <div data-has-notification="false">
                                    <img loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/mission-icon.svg?v=20241125" />
                                </div>
                                Misi
                            </a>
                                <a href="/download-apk" class="loyalty-menu-item" id="loyalty_menu_lucky_draw" target="_blank">
                                    <img loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/lucky-draw-result-icon.svg?v=20241125" />
                                    Hasil Lucky Draw
                                </a>
                            <a href="/mobile/loyalty/progress-history" class="loyalty-menu-item">
                                <img loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/history-icon.svg?v=20241125" />
                                Riwayat
                            </a>
                            <a href="/mobile/loyalty/how-it-works" class="loyalty-menu-item">
                                <img loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/loyalty/how-it-works-icon.svg?v=20241125" />
                                Cara kerja
                            </a>
                        </div>
                            <div id="page_carousel" class="carousel slide page-carousel" data-ride="carousel" data-interval="5000">
                                <ol class="carousel-indicators">
                                        <li class="active" data-target="#page_carousel" data-slide-to="0"></li>
                                </ol>

                                <div class="carousel-inner">
                                        <div class="item active">
                                            <a href="/download-apk" target="_self">
                                                <img alt="Zoom Lucky Draw - Februari" loading="lazy" src="https://api2-s8j.imgzm.com/images/lrKNLcnj0Sg/id_cbd_02af7627-131b-472c-83ff-33bb97c5572f_1738374083090.jpg" />
                                            </a>
                                        </div>
                                </div>
                            </div>
                        </div>
                        <div class="loyalty-reward-container">
                            <div class="tab-filter" id="tab_filter">
                                <input type="radio" class="hidden" id="AllProducts" data-category="AllProducts" checked name="redemption-tab-category">
                                <label class="tab" for="AllProducts">
                                    Semua
                                </label>
                                    <input type="radio" class="hidden" id="LuckyDrawProducts" data-category="LuckyDrawProducts" name="redemption-tab-category">
                                    <label class="tab" for="LuckyDrawProducts">
                                        Lucky Draw
                                    </label>
                            </div>
                            <div id="product_list_container" class="product-list-container">
                            
                                <div>
                                    <div class="category-title">
                                        <div>LUCKY DRAW</div>
                                            <a href="/download-apk" id="loyalty_menu_redemption" target="_blank">Lihat Semua > </a>
                                    </div>
                                    <div class="lucky-draw-container">
                                                <a href="/download-apk" target="_blank">
                                                    <div class="item">
                                                        <div class="item-thumbnail">
                                                            <div class="item-countdown">
                                                                <div>Diundi Dalam:</div>
                                                                <div class="time-container">
                                                                            <div class="time">06 Hari</div>
                                                                </div>
                                                            </div>
                                                            <picture><source srcset="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/loyalty/rewards/cbo-icon.webp?v=20241125" type="image/webp" /><source srcset="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/loyalty/rewards/cbo-icon.png?v=20241125" type="image/png" /><img class="item-rank" loading="lazy" src="//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/loyalty/rewards/cbo-icon.png?v=20241125" /></picture>                                <img class="item-img" src="https://zmprod-redemption.s3.ap-northeast-1.amazonaws.com/product-images/WLB/thumbnail/e093dd4e-08b7-4343-963e-3f80d27cb1bd.png" />
                                                    </div>
                                                    <div class="item-detail-contaner">
                                                        <div class="item-name">Zoom Lucky Draw - Februari</div>
                                                        <div class="item-lp">
                                                            <div class="item-lp-detail">
                                                                <div>LP</div>
                                                                <div>
                                                                    <div class="flash-lp">2,000</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="loyalty-reward-button">Tukar</div>
                                                    </div>
                                                </div>
                                            </a>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php
include(__DIR__.'/../layouts/footer.php');
include(__DIR__.'/../layouts/sidebar.php');
?>

<div id="popup_modal" class="modal popup-modal" role="dialog" data-title="" aria-label="Popup Modal">
    <div class="modal-dialog">
        <div class="modal-content" style="--desktop-popup-alert-src: url(//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/desktop/layout/popup/alert.png?v=20241125);;--desktop-popup-notification-src: url(//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/desktop/layout/popup/notification.png?v=20241125);;--mobile-popup-alert-src: url(//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/layout/popup/alert.png?v=20241125);;--mobile-popup-notification-src: url(//d33egg70nrp50s.cloudfront.net/Images/v-zelma-v2-beta/<?= $config['theme']; ?>/mobile/layout/popup/notification.png?v=20241125);;--event-giveaway-popper-src: url(//d33egg70nrp50s.cloudfront.net/Images/giveaway/popper.png?v=20241125);">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="popup_modal_title">
                    
                </h4>
            </div>
            <div class="modal-body" id="popup_modal_body">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" id="popup_modal_dismiss_button">
                    OK
                </button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal" id="popup_modal_cancel_button" style="display: none">
                    Tidak
                </button>
                <button type="button" class="btn btn-primary" id="popup_modal_confirm_button" style="display: none">
                    Ya
                </button>
            </div>
        </div>
    </div>
</div>

<script src='/bundles/zelma-v2-beta-mobile-js' defer></script>

    <script type="text/javascript">
        window.addEventListener('DOMContentLoaded', () => {
            initializeCurrency({
                conversionRate: 1000,
                locale: "id",
                thousandSeparator: "."
            });
        });
    </script>

    <script src='/bundles/Loyalty/page-js' defer></script>

    <script type="text/javascript">
        window.addEventListener('DOMContentLoaded', () => {
            initializeBenefitPage();
        });
    </script>


        <script type="text/javascript">
        navigator.serviceWorker.getRegistrations().then(registrations => {
            for (const registration of registrations) {
                registration.unregister();
            }
        });
    </script>

    <div class="search-popup-container" id="search_popup_container"></div>

    <script src='/bundles/reserve-js' defer></script>

</body>
</html>
