{"id":79,"date":"2021-10-25T10:22:55","date_gmt":"2021-10-25T10:22:55","guid":{"rendered":"https:\/\/sbsc.mixh.jp\/chat\/?page_id=79"},"modified":"2021-10-25T11:46:54","modified_gmt":"2021-10-25T11:46:54","slug":"cancel","status":"publish","type":"page","link":"https:\/\/sbsc.mixh.jp\/chat\/cancel\/","title":{"rendered":"\u4e88\u7d04\u30ad\u30e3\u30f3\u30bb\u30eb"},"content":{"rendered":"<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> \u304a\u3063\u3068\uff01            <\/div>\n            <div>\u3053\u306e\u3053\u306e\u4e88\u5b9a\u306f\u3059\u3067\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u306f\u5b58\u5728\u3057\u307e\u305b\u3093<\/div>\n        <\/div>\n    <\/div>\n<script type=\"text\/javascript\">\n    let booklyCancelConfirmationUrl = \"https:\\\/\\\/sbsc.mixh.jp\\\/chat\\\/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>\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":{"footnotes":""},"class_list":["post-79","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/pages\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":2,"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/pages\/79\/revisions"}],"predecessor-version":[{"id":81,"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/pages\/79\/revisions\/81"}],"wp:attachment":[{"href":"https:\/\/sbsc.mixh.jp\/chat\/wp-json\/wp\/v2\/media?parent=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}