{"id":69,"date":"2025-09-16T08:56:01","date_gmt":"2025-09-16T08:56:01","guid":{"rendered":"http:\/\/hia2.shiftproduction.info\/?page_id=69"},"modified":"2025-09-17T05:44:43","modified_gmt":"2025-09-17T05:44:43","slug":"results","status":"publish","type":"page","link":"https:\/\/hia2.shiftproduction.info\/ar\/results","title":{"rendered":"Results"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"69\" class=\"elementor elementor-69\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2ed6c51 e-con-full e-flex e-con e-parent\" data-id=\"2ed6c51\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2051489 elementor-widget elementor-widget-shortcode\" data-id=\"2051489\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t        <div class=\"error\">\n            <div class=\"container\">\n                <div class=\"wrap\">\n                    <p>No application data found.<\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n        \n<!-- Add the CSS for notifications -->\n<style>\n.elementor-shortcode{\n    display:none;\n}\n\n.Summary .title {\n  margin-bottom: calc(var(--ratio) * 43px);\n}\n\n.Summary .pic img {\n  height: calc(var(--ratio) * 63px);\n  width: calc(var(--ratio) * 63px);\n}\n\n.Summary .pic {\n  height: calc(var(--ratio) * 45px);\n  top: calc(var(--ratio) * -11px);\n}\n\n.Summary .name {\n  font-size: calc(var(--ratio) * 27px);\n}\n\n#health-insurance-notification {\n    position: fixed;\n    top: 20px;\n    right: 20px;\n    z-index: 9999;\n}\n\n.insurance-notification {\n    padding: 15px 20px;\n    margin-bottom: 10px;\n    border-radius: 5px;\n    color: white;\n    box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n    display: flex;\n    align-items: center;\n    max-width: 400px;\n    transform: translateX(100%);\n    opacity: 0;\n    transition: transform 0.3s ease, opacity 0.3s ease;\n}\n\n.insurance-notification.show {\n    transform: translateX(0);\n    opacity: 1;\n}\n\n.insurance-notification.success {\n    background-color: #4CAF50;\n    border-left: 5px solid #2E7D32;\n}\n\n.insurance-notification.error {\n    background-color: #F44336;\n    border-left: 5px solid #C62828;\n}\n\n.insurance-notification .icon {\n    margin-right: 10px;\n    font-size: 20px;\n}\n\n.insurance-notification .message {\n    flex: 1;\n}\n\n.insurance-notification .close-btn {\n    background: none;\n    border: none;\n    color: white;\n    cursor: pointer;\n    margin-left: 10px;\n    font-size: 16px;\n}\n\n.loading-spinner {\n    display: inline-block;\n    width: 16px;\n    height: 16px;\n    border: 2px solid rgba(255,255,255,0.3);\n    border-radius: 50%;\n    border-top-color: #fff;\n    animation: spin 1s ease-in-out infinite;\n    margin-right: 8px;\n}\n\n@keyframes spin {\n    to { transform: rotate(360deg); }\n}\n\n.red{\n    color:#40a6bf;\n}\n<\/style>\n\n<!-- JavaScript for handling form submission and notifications -->\n<script>\n\/\/ Define healthInsuranceAjax if not already defined (fix for the error)\nvar healthInsuranceAjax = healthInsuranceAjax || {\n    ajaxurl: 'https:\/\/hia2.shiftproduction.info\/wp-admin\/admin-ajax.php',\n    nonce: 'b81b860df2'\n};\n\njQuery(document).ready(function($) {\n    \/\/ Function to show notification\n    function showNotification(message, type) {\n        const icon = type === 'success' ? '\u2713' : '\u26a0';\n        const notification = $(\n            `<div class=\"insurance-notification ${type}\">\n                <span class=\"icon\">${icon}<\/span>\n                <span class=\"message\">${message}<\/span>\n                <button class=\"close-btn\">&times;<\/button>\n            <\/div>`\n        );\n        \n        $('#health-insurance-notification').append(notification);\n        \n        \/\/ Animate in\n        setTimeout(() => {\n            notification.addClass('show');\n        }, 10);\n        \n        \/\/ Set timeout to remove notification\n        setTimeout(() => {\n            hideNotification(notification);\n        }, 5000);\n        \n        \/\/ Close on click\n        notification.find('.close-btn').on('click', function() {\n            hideNotification(notification);\n        });\n    }\n    \n    \/\/ Function to hide notification\n    function hideNotification(notification) {\n        notification.removeClass('show');\n        setTimeout(() => {\n            notification.remove();\n        }, 300);\n    }\n    \n\/\/ Add loading state to button\nfunction setButtonLoading(button, isLoading) {\n    if (isLoading) {\n        button.prop('disabled', true);\n        button.css('pointer-events', 'none');\n        button.data('original-text', button.html());\n        button.html('<span class=\"loading-spinner\"><\/span> \u062c\u0627\u0631\u064a \u0627\u0644\u0625\u0631\u0633\u0627\u0644...');\n    } else {\n        button.prop('disabled', false);\n        button.css('pointer-events', 'auto'); \/\/ restore pointer events\n        button.html(button.data('original-text'));\n    }\n}\n\n    \n    \/\/ Handle form submission\n    $(\"#sendMessageForm\").on(\"submit\", function(e) {\n        e.preventDefault();\n        \n        var form = $(this);\n        var submitButton = form.find('button[type=\"submit\"]');\n        var formData = form.serialize();\n        \n        \/\/ Validate required fields\n        var phone = form.find('input[name=\"phone\"]').val();\n        if (!phone) {\n            showNotification('\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641 \u0645\u0637\u0644\u0648\u0628 \u0644\u0644\u0625\u0631\u0633\u0627\u0644', 'error');\n            return;\n        }\n        \n        \/\/ Show loading state\n        setButtonLoading(submitButton, true);\n        \n        $.ajax({\n            url: healthInsuranceAjax.ajaxurl,\n            type: \"POST\",\n            data: {\n                action: \"send_message_api\",\n                form: formData,\n                nonce: healthInsuranceAjax.nonce\n            },\n            dataType: 'json', \/\/ Ensure jQuery parses the response as JSON\n            success: function(response) {\n                \/\/console.log('Response:', response); \/\/ For debugging\n                \n                \/\/ Check if response is a string that needs parsing\n                if (typeof response === 'string') {\n                    try {\n                        response = JSON.parse(response);\n                    } catch (e) {\n                        console.error('Failed to parse response:', e);\n                        showNotification('\u062e\u0637\u0623 \u0641\u064a \u0645\u0639\u0627\u0644\u062c\u0629 \u0627\u0644\u0627\u0633\u062a\u062c\u0627\u0628\u0629 \u0645\u0646 \u0627\u0644\u062e\u0627\u062f\u0645', 'error');\n                        return;\n                    }\n                }\n                \n                \/\/ Handle the specific response format you provided\n                if (response.success && response.result && response.result.value === true) {\n                    showNotification('\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0628\u0646\u062c\u0627\u062d \u0625\u0644\u0649 \u0627\u0644\u0645\u0633\u062a\u0641\u064a\u062f', 'success');\n                } else if (response.success) {\n                    showNotification('\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0628\u0646\u062c\u0627\u062d', 'success');\n                } else {\n                    \/\/ Check for different error response formats\n                    const errorMessage = response.errors || response.data || '\u062d\u062f\u062b \u062e\u0637\u0623 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641';\n                    showNotification('\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0625\u0631\u0633\u0627\u0644: ' + errorMessage, 'error');\n                }\n            },\n            error: function(xhr, status, error) {\n                console.error('AJAX Error:', status, error);\n                showNotification('\u0641\u0634\u0644 \u0627\u0644\u0625\u0631\u0633\u0627\u0644: ' + error, 'error');\n            },\n            complete: function() {\n                setButtonLoading(submitButton, false);\n            }\n        });\n    });\n});\n<\/script>\n\n\n<!-- Add the CSS for the popup -->\n<style>\n\/* Popup Styles *\/\n.popup-overlay {\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background-color: rgba(0, 0, 0, 0.7);\n    z-index: 10000;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.popup-content {\n    background-color: #fff;\n    border-radius: 8px;\n    width: 90%;\n    max-width: 600px;\n    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);\n    overflow: hidden;\n}\n\n.popup-header {\n    background-color: #f8f9fa;\n    padding: 15px 20px;\n    border-bottom: 1px solid #e9ecef;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n}\n\n.popup-header h3 {\n  margin: 10px 0 0 0;\n  color: #40A6BF;\n  font-size: 1.5rem;\n  text-align: center;\n  width: 100%;\n  line-height: normal;\n}\n\n.popup-close {\n    font-size: 24px;\n    cursor: pointer;\n    color: #6c757d;\n}\n\n.popup-close:hover {\n    color: #000;\n}\n\n.popup-body {\n    padding: 20px;\n    text-align: right;\n    direction: rtl;\n}\n\n.popup-body ul {\n    padding-right: 20px;\n    margin-bottom: 0;\n    list-style: disclosure-closed;\n    margin-top: 10px;\n}\n\n.popup-body li {\n    margin-bottom: 8px;\n    line-height: 1.5;\n}\n\n.family-coverage-trigger:hover {\n    opacity: 0.8;\n}\n<\/style>\n\n<!-- JavaScript for handling the popup -->\n<script>\njQuery(document).ready(function($) {\n    \/\/ Open popup when clicking on the family coverage note\n    $('.family-coverage-trigger').on('click', function() {\n        $('#family-coverage-popup').fadeIn(300);\n    });\n    \n    \/\/ Close popup when clicking on the close button\n    $('.popup-close').on('click', function() {\n        $('#family-coverage-popup').fadeOut(300);\n    });\n    \n    \/\/ Close popup when clicking outside the content\n    $(document).on('click', function(e) {\n        if ($(e.target).hasClass('popup-overlay')) {\n            $('#family-coverage-popup').fadeOut(300);\n        }\n    });\n    \n    \/\/ Close popup with Escape key\n    $(document).on('keyup', function(e) {\n        if (e.key === \"Escape\") {\n            $('#family-coverage-popup').fadeOut(300);\n        }\n    });\n});\n<\/script>\n\t\t<div class=\"elementor-shortcode\">1<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-69","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/pages\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":28,"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/pages\/69\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/pages\/69\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/hia2.shiftproduction.info\/ar\/wp-json\/wp\/v2\/media?parent=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}