{"id":2489,"date":"2023-03-18T07:55:40","date_gmt":"2023-03-18T07:55:40","guid":{"rendered":"https:\/\/alrasly.com\/appointment-cancellation-confirmation\/"},"modified":"2023-07-19T13:16:58","modified_gmt":"2023-07-19T10:16:58","slug":"appointment-cancellation-confirmation","status":"publish","type":"page","link":"https:\/\/alrasly.com\/en\/appointment-cancellation-confirmation\/","title":{"rendered":"Appointment cancelation confirmation"},"content":{"rendered":"\n<div class=\"section-wrapper\" data-id=\"KIWWGG\"><section class=\"wp-block-gutenverse-section guten-element guten-section guten-KIWWGG layout-boxed align-stretch\"><div class=\"guten-background-overlay\"><\/div><div class=\"guten-shape-divider guten-shape-divider-top\"><\/div><div class=\"guten-shape-divider guten-shape-divider-bottom\"><\/div><div class=\"guten-container guten-column-gap-default\">\n<div class=\"wp-block-gutenverse-column guten-element guten-column guten-SA50rj\"><div class=\"guten-background-overlay\"><\/div><div class=\"sticky-wrapper\" data-id=\"SA50rj\"><div class=\"guten-column-wrapper\">\n<h2 class=\"wp-block-heading has-theme-palette-9-color has-text-color has-larger-font-size\">Appointment Cancelation Confirmation<\/h2>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"wp-block-gutenverse-column guten-element guten-column guten-RYm7Pn\"><div class=\"guten-background-overlay\"><\/div><div class=\"sticky-wrapper\" data-id=\"RYm7Pn\"><div class=\"guten-column-wrapper\"><\/div><\/div><\/div>\n<\/div><\/section><\/div>\n\n\n\n<div class=\"section-wrapper\" data-id=\"alZL6P\"><section class=\"wp-block-gutenverse-section guten-element guten-section guten-alZL6P layout-boxed align-stretch\"><div class=\"guten-background-overlay\"><\/div><div class=\"guten-shape-divider guten-shape-divider-top\"><\/div><div class=\"guten-shape-divider guten-shape-divider-bottom\"><\/div><div class=\"guten-container guten-column-gap-default\">\n<div class=\"wp-block-gutenverse-column guten-element guten-column guten-QMKjXt\"><div class=\"guten-background-overlay\"><\/div><div class=\"sticky-wrapper\" data-id=\"QMKjXt\"><div class=\"guten-column-wrapper\">\n<p class=\"wp-block-paragraph\">You are about to cancel your appointment, are you sure you want to proceed with the cancellation?<\/p>\n\n\n\n<div class=\"wp-block-bookingpress-cancellation_confirmation\"><div id=\"bookly-tbs\" class=\"bookly-js-cancellation-confirmation\">\n            <div class=\"text-center\">\n            <div>\n                <i class=\"fa fa-fw fas fa-exclamation-triangle fa-2x text-danger\"><\/i> Oops!            <\/div>\n            <div>This appointment does not exist.<\/div>\n        <\/div>\n    <\/div>\n<script type=\"text\/javascript\">\n    let booklyCancelConfirmationUrl = \"https:\\\/\\\/alrasly.com\\\/wp-admin\\\/admin-ajax.php?action=bookly_cancel_appointment\";\n    \/\/ Click on 'Do not cancel' button\n    let links = document.getElementsByClassName('bookly-js-cancellation-confirmation-no');\n    for (var i = 0; i < links.length; i++) {\n        if (links[i].onclick == undefined) {\n            links[i].onclick = function (e) {\n                e.preventDefault();\n                var container = this.closest('.bookly-js-cancellation-confirmation'),\n                    buttons = container.getElementsByClassName('bookly-js-cancellation-confirmation-buttons')[0],\n                    message = container.getElementsByClassName('bookly-js-cancellation-confirmation-message')[0];\n                buttons.style.display = 'none';\n                message.style.display = 'inline';\n            };\n        }\n    }\n    \/\/ Click on 'Confirm cancellation' button\n    links = document.getElementsByClassName('bookly-js-cancellation-confirmation-yes');\n    for (i = 0; i < links.length; i++) {\n        if (links[i].onclick == undefined) {\n            links[i].onclick = function (e) {\n                e.preventDefault();\n                var url = booklyCancelConfirmationUrl + String.fromCharCode(38) + 'token=' + this.dataset.token,\n                    $reason = this.closest('.bookly-js-cancellation-confirmation-buttons').querySelector('.bookly-js-cancellation-confirmation-reason');\n                if ($reason !== null) {\n                    url += String.fromCharCode(38) + 'reason=' + encodeURIComponent($reason.value)\n                }\n                window.location.replace(url)\n            };\n        }\n    }\n    <\/script><\/div>\n<\/div><\/div><\/div>\n<\/div><\/section><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","footnotes":""},"class_list":["post-2489","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/pages\/2489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/comments?post=2489"}],"version-history":[{"count":0,"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/pages\/2489\/revisions"}],"wp:attachment":[{"href":"https:\/\/alrasly.com\/en\/wp-json\/wp\/v2\/media?parent=2489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}