<?php
/**
 * Editor modal and admin scripts.
 *
 * @var string $ajax_url
 * @var string $new_funnel_url
 * @var string $bump_nonce
 * @var bool   $is_fluxtore_app
 */
?>
<style>
    .choose_editor .edit-link.active {
        background: blue;
        color: #fff;
        cursor: pointer !important;
    }
    .choose_editor .edit-link {
        background: grey;
        color: #fff;
        cursor: pointer !important;
    }
    .show-pop-up-in_header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .second_add_new_funal {
        overflow: hidden;
    }
    #wpadminbar .quicklinks .menupop ul li .ab-item {
        cursor: pointer;
    }
    .css-vubbuv {
        user-select: none;
        width: 1em;
        height: 1em;
        display: inline-block;
        fill: currentcolor;
        flex-shrink: 0;
        font-size: 1.5rem;
        transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }
</style>
<div class="show-pop-up-in_header" style="display: none;">
    <div class="inline-block align-bottom bg-white text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full opacity-100 translate-y-0 sm:scale-100">
        <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
            <div class="sm:flex sm:items-start">
                <div class="mt-3 text-center sm:mt-0 sm:text-left flex-grow">
                    <h3 class="text-lg leading-6 font-medium text-gray-900 flex items-center gap-2.5" id="headlessui-dialog-title-:rb:" data-headlessui-state="open">
                        <span class="text-white flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-perfect-blue sm:mx-0 sm:h-10 sm:w-10">
                            <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg>
                        </span>
                        Choose Your Editor
                    </h3>
                    <div class="mt-2">
                        <p class="text-sm text-gray-500">
                            <div class="choose-editor-parent">
                                <div class="choose_editor">
                                    <a class="bg-perfect-blue p-4 text-white font-bold edit-link active" onclick="toggleActive('Elementor'); myFunction('Elementor')">Edit with Elementor</a>
                                    <a class="bg-gray-400 p-4 text-white font-bold edit-link" onclick="toggleActive('Gutenberg'); myFunction('Gutenberg')">Edit with Gutenberg (BETA)</a>
                                    <a class="bg-gray-400 p-4 text-white font-bold edit-link" onclick="toggleActive('Bricks'); myFunction('Bricks')">Edit with Bricks</a>
                                    <a class="bg-gray-400 p-4 text-white font-bold edit-link" onclick="toggleActive('Divi'); myFunction('Divi')">Edit with Divi</a>
                                </div>
                            </div>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
            <button type="button" class="Confirm-btn_clicked w-full inline-flex justify-center border border-transparent shadow-sm px-4 py-2 bg-perfect-blue text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-perfect-blue sm:ml-3 sm:w-auto sm:text-sm">Continue</button>
            <button type="button" class="Cancel_button-clicked mt-3 w-full inline-flex justify-center border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">Cancel</button>
        </div>
    </div>
</div>
<script>
    (function ($) {
        $(document).ready(function () {
            var fluXtoreCondition = localStorage.getItem('fluXtoresecondcondition');

            if (fluXtoreCondition === 'yes') {
                setTimeout(function () {
                    if (window.location.pathname === '/wp-admin/admin.php' &&
                        window.location.search.includes('page=fluxtore') &&
                        window.location.hash === '#/funnels') {

                        $('.show-pop-up-in_header').fadeIn();
                        $('.show-pop-up-in_header').css('display', 'flex');
                        $('body').addClass('second_add_new_funal');
                        localStorage.removeItem('fluXtoresecondcondition');
                    }
                }, 500);
            }

            $('ul li #wp-admin-bar-new-fluXtore-item').click(function () {
                setTimeout(function () {
                    if (window.location.pathname === '/wp-admin/admin.php' && window.location.search.includes('page=fluxtore') && window.location.hash === '#/funnels') {
                        $('.show-pop-up-in_header').fadeIn();
                        $('.show-pop-up-in_header').css('display', 'flex');
                        $('body').addClass('second_add_new_funal');
                    }
                }, 500);
            });

            $('ul li #wp-admin-bar-new-fluXtore-item1').click(function () {
                localStorage.setItem('fluXtoresecondcondition', 'yes');
            });

            $('.Confirm-btn_clicked').click(function () {
                window.location.href = '<?php echo esc_js( $new_funnel_url ); ?>';
            });

            $('.Cancel_button-clicked').click(function () {
                $('.show-pop-up-in_header').fadeOut();
                $('body').removeClass('second_add_new_funal');
            });

            $("button[class*='px-2 py-1 rounded-sm text-white font-bold text-center focus:outline-none focus:ring-2 bg-perfect-blue']").click(function () {
                $('.show-pop-up-in_header').fadeOut();
            });
        });

        $(document).on('click', '.Tutorial_custom', function (event) {
            event.preventDefault();
            window.open('https://www.youtube.com/@fluxtore7039', '_blank');
        });

        $(document).on('click', '.ticket_custom', function (event) {
            event.preventDefault();
            window.open('https://ticketing.fluxtore.com/#/login', '_blank');
        });

        $(document).on('click', '.support_custom', function (event) {
            event.preventDefault();
            window.open('https://fluxtore.com/docs/', '_blank');
        });
    })(jQuery);
</script>
<script>
    (function ($) {
        $(document).ready(function () {
            var ajaxUrl = '<?php echo esc_url( $ajax_url ); ?>';
            var bumpNonce = '<?php echo esc_js( $bump_nonce ); ?>';

            var producttitle = '';
            var orderBumpToggleText = '';
            var orderDumpText = '';
            var discountPrice = '';
            var priceValue = '';
            var matchedClass = '';
            var ordercheckdata = 1;
            var url = window.location.href;
            var segments = url.split('/').filter(function (segment) { return segment !== ''; });
            var postidtwo = segments[segments.length - 2];
            var lastSegment = segments[segments.length - 1];
            var parentClass = '';
            var idbaseinsertcheked = '';

            $(document).on('click', "a:contains('Edit')", function () {
                var segmentsLocal = window.location.href.split('/').filter(function (segment) { return segment !== ''; });
                var lastSegmentLocal = segmentsLocal[segmentsLocal.length - 1];
                if (lastSegmentLocal === 'editstep') {
                    location.reload();
                }
            });

            function ajaxcallcheckbox() {
                $.ajax({
                    url: ajaxUrl,
                    type: 'POST',
                    data: {
                        action: 'save_custom_fields1',
                        postidtwo: postidtwo,
                        ordercheckdata: ordercheckdata,
                        idbaseinsertcheked: idbaseinsertcheked,
                    },
                    success: function (response) {
                        if (response.success) {
                            swal('Good job!', response.data.message, 'success');
                        }
                    },
                    error: function (xhr, status, error) {
                        console.error('AJAX Error:', error);
                    }
                });
            }

            if (lastSegment === 'editstep') {
                $(document).on('input', "p.Real_price + div input[type='number'], p.Real_price2 + div input[type='number'], p.Real_price3 + div input[type='number'], p.Real_price4 + div input[type='number']", function () {
                    priceValue = $(this).val();
                    parentClass = $(this).closest('div').prev('p').attr('class');
                });

                $(document).on('input', "p.discount_price-p + div input[type='number'], p.discount_price-p2 + div input[type='number'], p.discount_price-p3 + div input[type='number'], p.discount_price-p4 + div input[type='number']", function () {
                    discountPrice = $(this).val();
                    parentClass = $(this).closest('div').prev('p').attr('class');
                });

                $(document).on('input', "p.order_dump-text + div input[type='text'], p.order_dump-text2 + div input[type='text'], p.order_dump-text3 + div input[type='text'], p.order_dump-text4 + div input[type='text']", function () {
                    orderDumpText = $(this).val();
                    parentClass = $(this).closest('div').prev('p').attr('class');
                });

                $(document).on('input', "p.order_bump-toggle_text + div input[type='text'], p.order_bump-toggle_text2 + div input[type='text'], p.order_bump-toggle_text3 + div input[type='text'], p.order_bump-toggle_text4 + div input[type='text']", function () {
                    orderBumpToggleText = $(this).val();
                    parentClass = $(this).closest('div').prev('p').attr('class');
                });

                $(document).on('click', 'ul li', function () {
                    producttitle = $(this).text();
                    var classList = [
                        'add-new_button-data',
                        'add-new_button-data2',
                        'add-new_button-data3',
                        'add-new_button-data4'
                    ];
                    matchedClass = '';
                    for (var i = 0; i < classList.length; i++) {
                        var closestDiv = $(this).closest('.' + classList[i]);
                        if (closestDiv.length > 0) {
                            matchedClass = classList[i];
                            break;
                        }
                    }
                });

                $(document).on('change', '#ordercheckboxdata1', function () {
                    ordercheckdata = $(this).prop('checked') ? '1' : '0';
                    localStorage.setItem('ordercheckdata1', ordercheckdata);
                    idbaseinsertcheked = $(this).attr('id');
                    ajaxcallcheckbox();
                    if (ordercheckdata === '1') {
                        $('.add-new_button-data').css('display', 'block');
                    } else {
                        $('.add-new_button-data').css('display', 'none');
                    }
                });

                $(document).on('change', '#ordercheckboxdata2', function () {
                    ordercheckdata = $(this).prop('checked') ? '1' : '0';
                    localStorage.setItem('ordercheckdata2', ordercheckdata);
                    idbaseinsertcheked = $(this).attr('id');
                    ajaxcallcheckbox();
                    if (ordercheckdata === '1') {
                        $('.add-new_button-data2').css('display', 'block');
                    } else {
                        $('.add-new_button-data2').css('display', 'none');
                    }
                });

                $(document).on('change', '#ordercheckboxdata3', function () {
                    ordercheckdata = $(this).prop('checked') ? '1' : '0';
                    localStorage.setItem('ordercheckdata3', ordercheckdata);
                    idbaseinsertcheked = $(this).attr('id');
                    ajaxcallcheckbox();
                    if (ordercheckdata === '1') {
                        $('.add-new_button-data3').css('display', 'block');
                    } else {
                        $('.add-new_button-data3').css('display', 'none');
                    }
                });

                $(document).on('change', '#ordercheckboxdata4', function () {
                    ordercheckdata = $(this).prop('checked') ? '1' : '0';
                    localStorage.setItem('ordercheckdata4', ordercheckdata);
                    idbaseinsertcheked = $(this).attr('id');
                    ajaxcallcheckbox();
                    if (ordercheckdata === '1') {
                        $('.add-new_button-data4').css('display', 'block');
                    } else {
                        $('.add-new_button-data4').css('display', 'none');
                    }
                });

                $(document).on('click', "a.bg-blue-50.bg-opacity-50.w-full.text-left.flex.p-6.border-b.border-blue-gray-200.cursor-pointer", function () {
                    $.ajax({
                        url: ajaxUrl,
                        method: 'POST',
                        data: {
                            action: 'response_get_form',
                            postidtwo: postidtwo,
                        },
                        success: function (response) {
                            if (response.success) {
                                setTimeout(function () {
                                    if (parseInt(response.data.data.meta_checked_value1) === 0) {
                                        setTimeout(function () {
                                            $('.add-new_button-data').fadeOut();
                                            $('#ordercheckboxdata1').prop('checked', false).fadeIn();
                                        }, 2000);
                                    }
                                    if (parseInt(response.data.data.meta_checked_value2) === 0) {
                                        setTimeout(function () {
                                            $('.add-new_button-data2').fadeOut();
                                            $('#ordercheckboxdata2').prop('checked', false).fadeIn();
                                        }, 2000);
                                    }
                                    if (parseInt(response.data.data.meta_checked_value3) === 0) {
                                        setTimeout(function () {
                                            $('.add-new_button-data3').fadeOut();
                                            $('#ordercheckboxdata3').prop('checked', false).fadeIn();
                                        }, 2000);
                                    }
                                    if (parseInt(response.data.data.meta_checked_value4) === 0) {
                                        setTimeout(function () {
                                            $('.add-new_button-data4').fadeOut();
                                            $('#ordercheckboxdata4').prop('checked', false).fadeIn();
                                        }, 2000);
                                    }
                                }, 2000);

                                if (response.data.data.meta_bump_price1 || response.data.data.meta_discount1 || response.data.data.meta_bump_text1 || response.data.data.meta_bump_toggle1 !== '') {
                                    $('.add-new_button-data').fadeIn();
                                    $('.ordercheckboxdata1').fadeIn();
                                    jQuery('.add-new_button-data p.Real_price + div input[type="number"]').val(response.data.data.meta_bump_price1);
                                    jQuery('.add-new_button-data p.discount_price-p + div input[type="number"]').val(response.data.data.meta_discount1);
                                    jQuery('.add-new_button-data p.order_dump-text + div input[type="text"]').val(response.data.data.meta_bump_text1);
                                    jQuery('.add-new_button-data p.order_bump-toggle_text + div input[type="text"]').val(response.data.data.meta_bump_toggle1);
                                    setTimeout(function () {
                                        jQuery('.add-new_button-data p[class*="ml-2.5"]').text(response.data.data.meta_order_bump_product_name_1);
                                    }, 2000);
                                } else {
                                    $('.add-new_button-data').fadeOut();
                                    $('#ordercheckboxdata1').fadeOut();
                                }

                                if (response.data.data.meta_discount2 || response.data.data.meta_bump_price2 || response.data.data.meta_bump_text2 || response.data.data.meta_bump_toggle2 !== '') {
                                    $('.add-new_button-data2').fadeIn();
                                    $('.ordercheckboxdata2').fadeIn();
                                    jQuery('.add-new_button-data2 p.Real_price2 + div input[type="number"]').val(response.data.data.meta_bump_price2);
                                    jQuery('.add-new_button-data2 p.discount_price-p2 + div input[type="number"]').val(response.data.data.meta_discount2);
                                    jQuery('.add-new_button-data2 p.order_dump-text2 + div input[type="text"]').val(response.data.data.meta_bump_text2);
                                    jQuery('.add-new_button-data2 p.order_bump-toggle_text2 + div input[type="text"]').val(response.data.data.meta_bump_toggle2);
                                    setTimeout(function () {
                                        jQuery('.add-new_button-data2 p[class*="ml-2.5"]').text(response.data.data.meta_order_bump_product_name_2);
                                    }, 2000);
                                } else {
                                    $('.add-new_button-data2').fadeOut();
                                    $('#ordercheckboxdata2').fadeOut();
                                }

                                if (response.data.data.meta_discount3 || response.data.data.meta_bump_price3 || response.data.data.meta_bump_text3 || response.data.data.meta_bump_toggle3 !== '') {
                                    $('.add-new_button-data3').fadeIn();
                                    $('.ordercheckboxdata3').fadeIn();
                                    jQuery('.add-new_button-data3 p.Real_price3 + div input[type="number"]').val(response.data.data.meta_bump_price3);
                                    jQuery('.add-new_button-data3 p.discount_price-p3 + div input[type="number"]').val(response.data.data.meta_discount3);
                                    jQuery('.add-new_button-data3 p.order_dump-text3 + div input[type="text"]').val(response.data.data.meta_bump_text3);
                                    jQuery('.add-new_button-data3 p.order_bump-toggle_text3 + div input[type="text"]').val(response.data.data.meta_bump_toggle3);
                                    setTimeout(function () {
                                        jQuery('.add-new_button-data3 p[class*="ml-2.5"]').text(response.data.data.meta_order_bump_product_name_3);
                                    }, 2000);
                                } else {
                                    $('.add-new_button-data3').fadeOut();
                                    $('#ordercheckboxdata3').fadeOut();
                                }

                                if (response.data.data.meta_discount4 || response.data.data.meta_bump_price4 || response.data.data.meta_bump_text4 || response.data.data.meta_bump_toggle4 !== '') {
                                    $('.add-new_button-data4').fadeIn();
                                    $('.ordercheckboxdata4').fadeIn();
                                    jQuery('.add-new_button-data4 p.Real_price4 + div input[type="number"]').val(response.data.data.meta_bump_price4);
                                    jQuery('.add-new_button-data4 p.discount_price-p4 + div input[type="number"]').val(response.data.data.meta_discount4);
                                    jQuery('.add-new_button-data4 p.order_dump-text4 + div input[type="text"]').val(response.data.data.meta_bump_text4);
                                    jQuery('.add-new_button-data4 p.order_bump-toggle_text4 + div input[type="text"]').val(response.data.data.meta_bump_toggle4);
                                    setTimeout(function () {
                                        jQuery('.add-new_button-data4 p[class*="ml-2.5"]').text(response.data.data.meta_order_bump_product_name_4);
                                    }, 2000);
                                } else {
                                    $('.add-new_button-data4').fadeOut();
                                    $('#ordercheckboxdata4').fadeOut();
                                }
                            }
                        },
                        error: function () {
                            console.log('There was an error with the AJAX request.');
                        }
                    });
                });

                $(document).on('click', '.show_field-data', function () {
                    if (!$('.add-new_button-data').is(':visible') &&
                        !$('.add-new_button-data2').is(':visible') &&
                        !$('.add-new_button-data3').is(':visible') &&
                        !$('.add-new_button-data4').is(':visible')) {
                        $('.add-new_button-data').fadeIn();
                        $('#ordercheckboxdata1').removeClass('hidden').css('display', 'inline-block').hide().fadeIn();
                        $('.ordercheckboxdata1').fadeIn();
                        $('.add-new_button-data').each(function () {
                            producttitle = $(this).find("p.ml-2\\.5.text-sm.font-medium").text().trim();
                            matchedClass = 'add-new_button-data';
                        });
                    } else if ($('.add-new_button-data').is(':visible') && !$('.add-new_button-data2').is(':visible')) {
                        $('.add-new_button-data2').fadeIn();
                        $('#ordercheckboxdata2').removeClass('hidden').css('display', 'inline-block').hide().fadeIn();
                        $('.ordercheckboxdata2').fadeIn();
                        $('.add-new_button-data2').each(function () {
                            producttitle = $(this).find("p.ml-2\\.5.text-sm.font-medium").text().trim();
                            matchedClass = 'add-new_button-data2';
                        });
                    } else if ($('.add-new_button-data2').is(':visible') && !$('.add-new_button-data3').is(':visible')) {
                        $('.add-new_button-data3').fadeIn();
                        $('#ordercheckboxdata3').removeClass('hidden').css('display', 'inline-block').hide().fadeIn();
                        $('.ordercheckboxdata3').fadeIn();
                        $('.add-new_button-data3').each(function () {
                            producttitle = $(this).find("p.ml-2\\.5.text-sm.font-medium").text().trim();
                            matchedClass = 'add-new_button-data3';
                        });
                    } else if ($('.add-new_button-data3').is(':visible') && !$('.add-new_button-data4').is(':visible')) {
                        $('.add-new_button-data4').fadeIn();
                        $('#ordercheckboxdata4').removeClass('hidden').css('display', 'inline-block').hide().fadeIn();
                        $('.ordercheckboxdata4').fadeIn();
                        $('.add-new_button-data4').each(function () {
                            producttitle = $(this).find("p.ml-2\\.5.text-sm.font-medium").text().trim();
                            matchedClass = 'add-new_button-data4';
                        });
                    }
                });

                $(document).on('click', ".px-2.py-1.rounded-sm.text-white.font-bold.text-center.focus\\:outline-none.focus\\:ring-2.bg-perfect-blue", function () {
                    var data = {
                        action: 'save_custom_fields',
                        postidtwo: postidtwo,
                        producttitle: producttitle,
                        priceValue: priceValue,
                        discountPrice: discountPrice,
                        orderDumpText: orderDumpText,
                        orderBumpToggleText: orderBumpToggleText,
                        ordercheckdata: ordercheckdata,
                        parentClass: parentClass,
                        matchedClass: matchedClass,
                        idbaseinsertcheked: idbaseinsertcheked,
                    };

                    $.ajax({
                        url: ajaxUrl,
                        type: 'POST',
                        data: data,
                        success: function (response) {
                            if (response.success) {
                                swal('Good job!', response.data.message, 'success');
                            }
                        },
                        error: function (xhr) {
                            console.error('AJAX Error:', xhr.responseText);
                        }
                    });
                });
            }
        });
    })(jQuery);
</script>
<script>
    (function () {
        var SVG_NS = 'http://www.w3.org/2000/svg';

        function createSvgIcon(config) {
            var svg = document.createElementNS(SVG_NS, 'svg');

            svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
            svg.setAttribute('fill', 'none');
            svg.setAttribute('viewBox', '0 0 24 24');
            svg.setAttribute('stroke-width', '1.5');
            svg.setAttribute('stroke', 'currentColor');
            svg.setAttribute('aria-hidden', 'true');
            svg.setAttribute('width', '20');
            svg.setAttribute('height', '20');
            svg.setAttribute('class', config.iconClass);

            config.paths.forEach(function (attributes) {
                var path = document.createElementNS(SVG_NS, 'path');

                Object.keys(attributes).forEach(function (key) {
                    path.setAttribute(key, attributes[key]);
                });

                svg.appendChild(path);
            });

            return svg;
        }

        function createShortcutAnchor(config) {
            var anchor = document.createElement('a');

            anchor.className = 'text-gray-500 px-3 py-2 rounded-md text-sm font-medium ' + config.iconClass;
            anchor.href = config.href;
            anchor.setAttribute('aria-label', config.label);
            anchor.setAttribute('title', config.label);
            anchor.appendChild(createSvgIcon(config));

            return anchor;
        }

        function ensureQuickLinks(rootElement, shortcuts) {
            var navContainer = rootElement.querySelector('nav .relative.flex.items-center.justify-between.h-16');

            if (!navContainer) {
                return;
            }

            if (navContainer.querySelector('.fluxtore-quick-links')) {
                return;
            }

            var wrapper = document.createElement('div');

            wrapper.className = 'fluxtore-quick-links flex items-center space-x-2 sm:ml-6';
            wrapper.setAttribute('role', 'group');
            wrapper.setAttribute('aria-label', 'fluXtore quick actions');

            shortcuts.forEach(function (config) {
                wrapper.appendChild(createShortcutAnchor(config));
            });

            navContainer.appendChild(wrapper);
        }

        document.addEventListener('DOMContentLoaded', function () {
            var fxRoot = document.getElementById('fx-root');

            if (!fxRoot) {
                return;
            }

            var shortcuts = [
                {
                    label: 'Tutorial',
                    href: '#/Tutorial',
                    iconClass: 'Tutorial_custom',
                    paths: [
                        {
                            'stroke-linecap': 'round',
                            'stroke-linejoin': 'round',
                            d: 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'
                        },
                        {
                            'stroke-linecap': 'round',
                            'stroke-linejoin': 'round',
                            d: 'M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z'
                        }
                    ]
                },
                {
                    label: 'Ticket',
                    href: '#/Ticket',
                    iconClass: 'ticket_custom',
                    paths: [
                        {
                            'stroke-linecap': 'round',
                            'stroke-linejoin': 'round',
                            d: 'M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z'
                        }
                    ]
                },
                {
                    label: 'Support',
                    href: '#/Support',
                    iconClass: 'support_custom',
                    paths: [
                        {
                            'stroke-linecap': 'round',
                            'stroke-linejoin': 'round',
                            d: 'M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z'
                        },
                        {
                            'stroke-linecap': 'round',
                            'stroke-linejoin': 'round',
                            d: 'M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'
                        }
                    ]
                }
            ];

            ensureQuickLinks(fxRoot, shortcuts);

            if (typeof MutationObserver !== 'undefined') {
                var observer = new MutationObserver(function () {
                    ensureQuickLinks(fxRoot, shortcuts);
                });

                observer.observe(fxRoot, { childList: true, subtree: true });
            }
        });
    })();
</script>
