{"id":20477,"date":"2026-09-14T17:10:15","date_gmt":"2026-09-14T15:10:15","guid":{"rendered":"https:\/\/provitam.ro\/confirmare-programare\/"},"modified":"2026-09-14T17:24:50","modified_gmt":"2026-09-14T15:24:50","slug":"confirmare-programare","status":"publish","type":"page","link":"https:\/\/provitam.ro\/en\/appointment-confirmed\/","title":{"rendered":"Confirmare programare"},"content":{"rendered":"<style>\n\/* Confirmation page: same trimmed top and narrow title bar as the booking pages. *\/\nbody.page-confirmare .pagetitle {\n\twidth: 50% !important;\n\tpadding-top: 30px !important;\n\tpadding-bottom: 30px !important;\n}\n\nbody.page-confirmare .site-content {\n\tpadding-top: 0;\n}\n\n@media (max-width: 900px) {\n\tbody.page-confirmare .pagetitle {\n\t\twidth: 100% !important;\n\t}\n}\n<\/style>\n\n<div class=\"provitam-embed\">\n\t<iframe class=\"provitam-appointment-embed\"\n\t\ttitle=\"Confirmare programare\"\n\t\tstyle=\"width:100%; height:600px; border:0; display:block; overflow:hidden;\"\n\t\tscrolling=\"no\"\n\t\tdata-no-lazy=\"1\"><\/iframe>\n<\/div>\n\n<script>\n(function () {\n\t'use strict';\n\n\tvar APP_ORIGIN = 'https:\/\/apps.provitam.ro';\n\tvar SUPPORTED = ['ro', 'hu', 'en'];\n\n\tdocument.body.classList.add('page-confirmare');\n\n\t\/\/ The confirmation link in the e-mail carries appointment, token and\n\t\/\/ language. Forward them to the headless view, which does the confirming.\n\tvar params = new URLSearchParams(window.location.search);\n\n\tvar lang = (params.get('language') || document.documentElement.lang || 'ro')\n\t\t.slice(0, 2).toLowerCase();\n\tif (SUPPORTED.indexOf(lang) === -1) { lang = 'ro'; }\n\n\tvar frame = document.querySelector('iframe.provitam-appointment-embed');\n\n\tif (frame) {\n\t\tvar target = APP_ORIGIN + '\/appointments\/headless\/confirm' +\n\t\t\t'?appointment=' + encodeURIComponent(params.get('appointment') || '') +\n\t\t\t'&token=' + encodeURIComponent(params.get('token') || '') +\n\t\t\t'&language=' + encodeURIComponent(lang);\n\t\tframe.src = target;\n\t}\n\n\twindow.addEventListener('message', function (event) {\n\t\tif (event.origin !== APP_ORIGIN) { return; }\n\n\t\tvar data = event.data;\n\t\tif (!data || data.source !== 'provitam-headless' || data.type !== 'resize') { return; }\n\n\t\tvar height = parseInt(data.height, 10);\n\t\tif (!height || height < 60 || height > 20000) { return; }\n\n\t\tvar all = document.querySelectorAll('iframe.provitam-appointment-embed');\n\t\tfor (var j = 0; j < all.length; j++) {\n\t\t\tif (all[j].contentWindow === event.source) {\n\t\t\t\tall[j].style.height = height + 'px';\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}, false);\n})();\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-20477","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/pages\/20477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/comments?post=20477"}],"version-history":[{"count":1,"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/pages\/20477\/revisions"}],"predecessor-version":[{"id":20480,"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/pages\/20477\/revisions\/20480"}],"wp:attachment":[{"href":"https:\/\/provitam.ro\/en\/wp-json\/wp\/v2\/media?parent=20477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}