{"id":92814,"date":"2026-10-14T09:02:23","date_gmt":"2026-10-14T08:02:23","guid":{"rendered":"https:\/\/staging.academiaclinicadragao.com\/?page_id=92814"},"modified":"2026-10-28T16:08:09","modified_gmt":"2026-10-28T16:08:09","slug":"historico-de-sessoes","status":"publish","type":"page","link":"https:\/\/staging.academiaclinicadragao.com\/en\/portal-dos-formadores\/historico-de-sessoes\/","title":{"rendered":"Hist\u00f3rico de sess\u00f5es"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"92814\" class=\"elementor elementor-92814\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-387241c elementor-section-boxed elementor-section-height-default elementor-section-height-default wd-section-disabled\" data-id=\"387241c\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64532bb\" data-id=\"64532bb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f4cf03d elementor-widget elementor-widget-shortcode\" data-id=\"f4cf03d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n\n\n\n\n\n\n\n<script>\n(function () {\n  const isEnglish = \/^\\\/en(?:\\\/|$)\/i.test(window.location.pathname);\n  document.documentElement.classList.toggle('trainer-history-english', isEnglish);\n  \/\/ Restore the exact English page after DataPress's fixed Portuguese redirect.\n  try {\n    const key = 'trainer_atividade_formativa_apos_redirect_v1';\n    const saved = sessionStorage.getItem(key);\n    if (saved) {\n      const marker = JSON.parse(saved);\n      if (marker && marker.url && \/^\\\/en\\\/\/i.test(marker.url) &&\n          !isEnglish && Date.now() - marker.at >= 0 && Date.now() - marker.at < 60000) {\n        const englishPath = new URL(marker.url, location.origin).pathname.replace(\/^\\\/en\/i, '');\n        if (location.pathname.replace(\/\\\/$\/, '') === englishPath.replace(\/\\\/$\/, '')) {\n          location.replace(marker.url);\n          return;\n        }\n      }\n    }\n  } catch (e) { \/* Storage is optional. *\/ }\n})();\n<\/script>\n<style>\n\/* Explicit bilingual labels; avoid TranslatePress auto-translating interface text. *\/\n#historico-sessoes-formador .trainer-lang-en {display:none!important}\nhtml.trainer-history-english #historico-sessoes-formador .trainer-lang-pt {display:none!important}\nhtml.trainer-history-english #historico-sessoes-formador .trainer-lang-en {display:inline!important}\n\/* Hist\u00f3rico de sess\u00f5es \u2014 visual consistente com os portais Formador \/ E-Formador *\/\n#historico-sessoes-formador.trainer-history-card {\n  width:100%; box-sizing:border-box; padding:28px 30px 30px;\n  background:#fff; border-radius:18px;\n  box-shadow:0 4px 20px rgba(20,80,150,.07);\n  font-family:inherit; color:#00358b;\n}\n#historico-sessoes-formador *,#historico-sessoes-formador *::before,#historico-sessoes-formador *::after{box-sizing:border-box}\n#historico-sessoes-formador h2 {\n  margin:0 0 8px!important; padding:0!important;\n  font-size:24px!important; font-weight:750!important;\n  line-height:1.25!important; color:#0048cf!important;\n  text-transform:none!important; letter-spacing:normal!important;\n}\n#historico-sessoes-formador .trainer-history-subtitle {\n  font-size:13px!important; line-height:1.55; color:#5f7eb4!important;\n  margin:0 0 22px!important;\n}\n#historico-sessoes-formador .trainer-history-scroll {\n  width:100%; max-width:100%; overflow-x:auto;\n  border:1px solid #cfe0ff; border-radius:14px;\n  -webkit-overflow-scrolling:touch;\n}\n#historico-sessoes-formador .trainer-history-table {\n  width:100%; min-width:850px; margin-bottom:0!important;\n  border-collapse:separate; border-spacing:0; background:#fff;\n  font-family:inherit; font-size:13px; line-height:1.5; color:#003c9d;\n}\n#historico-sessoes-formador .trainer-history-table thead th {\n  padding:17px 15px!important; background:#e9f1ff!important;\n  color:#0049c9!important; text-align:left!important;\n  font-size:13px!important; font-weight:750!important;\n  border:0!important; border-bottom:1px solid #ccddfb!important;\n  white-space:nowrap;\n}\n#historico-sessoes-formador .trainer-history-table tbody td {\n  padding:16px 15px!important; color:#003b97!important;\n  border:0!important; border-bottom:1px solid #e3ebfc!important;\n  vertical-align:middle; font-weight:600; line-height:1.45;\n}\n#historico-sessoes-formador .trainer-history-table tbody tr:hover td{background:#f8fbff!important}\n#historico-sessoes-formador .trainer-history-table tbody tr:last-child td{border-bottom:0!important}\n#historico-sessoes-formador .trainer-history-table tfoot th,\n#historico-sessoes-formador .trainer-history-table tfoot td {\n  padding:16px 15px!important; background:#eff6ff!important;\n  border:0!important; border-top:1px solid #ccddfb!important;\n  color:#0048cf!important; font-weight:750!important;\n}\n#historico-sessoes-formador .trainer-history-table .history-hours,\n#historico-sessoes-formador .trainer-history-table .history-date{white-space:nowrap}\n#historico-sessoes-formador .trainer-history-empty {\n  text-align:center!important; padding:30px 16px!important;\n  color:#64748b!important; font-weight:400!important;\n}\n\/* Declara\u00e7\u00f5es de atividade formativa *\/\n#historico-sessoes-formador .trainer-declaration-head {\n  display:flex; align-items:center; justify-content:space-between;\n  flex-wrap:wrap; gap:16px; margin:32px 0 20px;\n  padding:28px 0 0; border-top:1px solid #e1e9fb;\n}\n#historico-sessoes-formador .trainer-declaration-head h2{margin:0 0 7px!important}\n#historico-sessoes-formador .trainer-declaration-head .trainer-history-subtitle{margin:0!important}\n#historico-sessoes-formador .trainer-declaration-table{min-width:530px}\n#historico-sessoes-formador .trainer-declaration-table th:first-child,\n#historico-sessoes-formador .trainer-declaration-table td:first-child{width:45%;white-space:nowrap}\n#historico-sessoes-formador .trainer-declaration-table th:last-child,\n#historico-sessoes-formador .trainer-declaration-table td:last-child{width:55%}\n#historico-sessoes-formador .trainer-declaration-btn,\n#historico-sessoes-formador .trainer-declaration-btn:visited,\n#historico-sessoes-formador .trainer-declaration-btn:hover,\n#historico-sessoes-formador .trainer-declaration-btn:focus {\n  display:inline-flex!important; align-items:center!important; justify-content:center!important;\n  min-height:43px!important; padding:10px 17px!important;\n  background:#2563eb!important; background-color:#2563eb!important;\n  border:1px solid #2563eb!important; border-radius:10px!important;\n  color:#fff!important; font-size:13px!important; font-weight:700!important;\n  line-height:1.4!important; text-decoration:none!important; white-space:nowrap;\n  cursor:pointer!important; box-shadow:none!important;\n}\n#historico-sessoes-formador .trainer-declaration-btn:hover{background:#155bd6!important;border-color:#155bd6!important}\n#historico-sessoes-formador .trainer-declaration-btn:disabled{opacity:.55!important;cursor:wait!important}\n#historico-sessoes-formador .trainer-declaration-request{margin:0!important}\n#historico-sessoes-formador .trainer-declaration-status{font-weight:600;color:#6782a5}\n#historico-sessoes-formador .trainer-declaration-status.processing{color:#9a3412}\n#trainer-declaration-toast {\n  display:none;position:fixed;right:24px;bottom:24px;z-index:999999;\n  color:#fff;background:#2563eb;padding:14px 18px;border-radius:9px;\n  box-shadow:0 5px 18px #0003;font-size:14px;\n}\n#trainer-declaration-toast.ativo{display:block}\n#trainer-declaration-toast.sucesso{background:#14532d}\n\/* Manter os avisos da DataPress ocultos: apenas o toast personalizado fica vis\u00edvel *\/\nimg[src*=\"\/integration-cds\/front\/custom-form\/img\/spinner\"],\n.icds-form img[src*=\"spinner\"],\n#atividade-formativa-formador .loading-spinner {display:none!important}\n#atividade-formativa-formador .alert-success,\n#atividade-formativa-formador .icds-form .alert-success{display:none!important}\n@media(max-width:767px){\n  #historico-sessoes-formador.trainer-history-card{padding:19px 16px 22px}\n  #historico-sessoes-formador h2{font-size:21px!important}\n  #historico-sessoes-formador .trainer-declaration-head{align-items:flex-start}\n}\n\n\/* Space the download icon and label without altering the plus button. *\/\n#historico-sessoes-formador a.trainer-declaration-download {\n  gap: 9px !important;\n  align-items: center !important;\n}\n#historico-sessoes-formador a.trainer-declaration-download svg {\n  flex: 0 0 auto;\n}\n\n\/* Match the plus-icon alignment used by Adicionar material. *\/\n#historico-sessoes-formador .trainer-declaration-request .trainer-declaration-btn {\n  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;\n}\n#historico-sessoes-formador .trainer-declaration-request .trainer-button-icon {display:inline-block;vertical-align:middle;flex:0 0 auto;}\n<\/style>\n\n<section class=\"trainer-history-card notranslate\" id=\"historico-sessoes-formador\" data-no-translation translate=\"no\">\n  <h2><span class=\"trainer-lang-pt\">Hist\u00f3rico de sess\u00f5es<\/span><span class=\"trainer-lang-en\">Session history<\/span><\/h2>\n  <p class=\"trainer-history-subtitle\"><span class=\"trainer-lang-pt\">Sess\u00f5es j\u00e1 terminadas associadas ao formador. Nas sess\u00f5es pr\u00e1ticas, apenas datas com pelo menos um aluno inscrito.<\/span><span class=\"trainer-lang-en\">Completed sessions assigned to the trainer. For practical sessions, only dates with at least one enrolled student are shown.<\/span><\/p>\n  <div class=\"trainer-history-scroll\">\n    <table class=\"trainer-history-table\">\n      <thead><tr>\n        <th><span class=\"trainer-lang-pt\">Nome<\/span><span class=\"trainer-lang-en\">Name<\/span><\/th><th><span class=\"trainer-lang-pt\">A\u00e7\u00e3o<\/span><span class=\"trainer-lang-en\">Training action<\/span><\/th><th><span class=\"trainer-lang-pt\">M\u00f3dulo<\/span><span class=\"trainer-lang-en\">Module<\/span><\/th><th><span class=\"trainer-lang-pt\">Tema<\/span><span class=\"trainer-lang-en\">Topic<\/span><\/th><th><span class=\"trainer-lang-pt\">Data<\/span><span class=\"trainer-lang-en\">Date<\/span><\/th><th><span class=\"trainer-lang-pt\">N\u00famero de horas<\/span><span class=\"trainer-lang-en\">Number of hours<\/span><\/th>\n      <\/tr><\/thead>\n      <tbody id=\"trainer-history-body\">\n                                                            <tr class=\"history-session\" data-sort-date=\"20251015090000\" data-start=\"1760518800\" data-end=\"1760529600\" data-duration=\"03:00\">\n              <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n              <td data-no-translation translate=\"no\">12\u00aa edi\u00e7\u00e3o<\/td>\n              <td data-no-translation translate=\"no\">M\u00f3dulo A<\/td>\n              <td data-no-translation translate=\"no\">Tema 1.1<\/td>\n              <td class=\"history-date\">15-10-2025 09:00<\/td>\n              <td class=\"history-hours\">\u2014<\/td>\n            <\/tr>\n                                                                      <tr class=\"history-session\" data-sort-date=\"20251020140000\" data-start=\"1760968800\" data-end=\"1760977800\" data-duration=\"02:30\">\n              <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n              <td data-no-translation translate=\"no\">12\u00aa edi\u00e7\u00e3o<\/td>\n              <td data-no-translation translate=\"no\">M\u00f3dulo B<\/td>\n              <td data-no-translation translate=\"no\">Tema 3.1<\/td>\n              <td class=\"history-date\">20-10-2025 14:00<\/td>\n              <td class=\"history-hours\">\u2014<\/td>\n            <\/tr>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <tr class=\"history-session\" data-sort-date=\"20251022160000\" data-start=\"1761148800\" data-end=\"1761163200\" data-duration=\"\">\n                  <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n                  <td data-no-translation translate=\"no\">12\u00aa edi\u00e7\u00e3o<\/td>\n                  <td data-no-translation translate=\"no\">M\u00f3dulo C<\/td>\n                  <td data-no-translation translate=\"no\">Tema 4.1<\/td>\n                  <td class=\"history-date\">22-10-2025 16:00<\/td>\n                  <td class=\"history-hours\">\u2014<\/td>\n                <\/tr>\n                                                                                                                                                                                                                                                                                                                              <tr class=\"history-session\" data-sort-date=\"20261118090000\" data-start=\"1794992400\" data-end=\"1795006800\" data-duration=\"04:00\">\n              <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n              <td data-no-translation translate=\"no\">13\u00aa edi\u00e7\u00e3o<\/td>\n              <td data-no-translation translate=\"no\">M\u00f3dulo A<\/td>\n              <td data-no-translation translate=\"no\">Tema 2<\/td>\n              <td class=\"history-date\">18-11-2026 09:00<\/td>\n              <td class=\"history-hours\">\u2014<\/td>\n            <\/tr>\n                                                                      <tr class=\"history-session\" data-sort-date=\"20261120090000\" data-start=\"1795165200\" data-end=\"1795179600\" data-duration=\"04:00\">\n              <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n              <td data-no-translation translate=\"no\">13\u00aa edi\u00e7\u00e3o<\/td>\n              <td data-no-translation translate=\"no\">M\u00f3dulo B<\/td>\n              <td data-no-translation translate=\"no\">Tema 3<\/td>\n              <td class=\"history-date\">20-11-2026 09:00<\/td>\n              <td class=\"history-hours\">\u2014<\/td>\n            <\/tr>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <tr class=\"history-session\" data-sort-date=\"20261126200000\" data-start=\"1795723200\" data-end=\"1793397600\" data-duration=\"\">\n                  <td data-no-translation translate=\"no\">Curso Avan\u00e7ado em Nutri\u00e7\u00e3o Pedi\u00e1trica ...dos -9(meses) aos 18(anos)! (25h)<\/td>\n                  <td data-no-translation translate=\"no\">13\u00aa edi\u00e7\u00e3o<\/td>\n                  <td data-no-translation translate=\"no\">M\u00f3dulo C<\/td>\n                  <td data-no-translation translate=\"no\">Tema 4<\/td>\n                  <td class=\"history-date\">26-11-2026 20:00<\/td>\n                  <td class=\"history-hours\">\u2014<\/td>\n                <\/tr>\n                                                                                                                                                                                                                                                                                                                                                              <\/tbody>\n      <tfoot><tr>\n        <th colspan=\"5\"><span class=\"trainer-lang-pt\">Total de horas<\/span><span class=\"trainer-lang-en\">Total hours<\/span><\/th>\n        <td id=\"trainer-history-total\">0h<\/td>\n      <\/tr><\/tfoot>\n    <\/table>\n  <\/div>\n  <p class=\"trainer-history-subtitle\" style=\"margin-top:12px;margin-bottom:0\" id=\"trainer-history-count\"><\/p>\n\n<script>\n(function () {\n  function initializeHistory() {\n    var body = document.getElementById('trainer-history-body');\n    var totalEl = document.getElementById('trainer-history-total');\n    var countEl = document.getElementById('trainer-history-count');\n    if (!body || !totalEl || body.dataset.initialized === '1') return;\n    body.dataset.initialized = '1';\n\n    var isEnglish = \/^\\\/en(?:\\\/|$)\/i.test(location.pathname);\n    var nowSeconds = Date.now() \/ 1000;\n    var rows = Array.prototype.slice.call(body.querySelectorAll('tr.history-session'));\n    var totalMinutes = 0;\n    var visible = [];\n\n    function formatMinutes(minutes) {\n      var hours = Math.floor(minutes \/ 60);\n      var remainder = minutes % 60;\n      return remainder ? (hours + 'h ' + String(remainder).padStart(2, '0') + 'min') : (hours + 'h');\n    }\n\n    \/\/ Fallback for records where start\/end are equal and bpe_duracao has a value.\n    function parseDuration(text) {\n      var value = String(text || '').trim().toLowerCase();\n      if (!value) return 0;\n      var matches = value.match(\/^(\\d+(?:[.,]\\d+)?)\\s*h(?:\\s*(\\d+)\\s*(?:min|m))?$\/);\n      if (matches) return Math.round(parseFloat(matches[1].replace(',', '.')) * 60) + Number(matches[2] || 0);\n      var mins = value.match(\/^(\\d+)\\s*(?:min|m)$\/);\n      if (mins) return Number(mins[1]);\n      var plain = value.match(\/^(\\d+(?:[.,]\\d+)?)$\/);\n      return plain ? Math.round(parseFloat(plain[1].replace(',', '.')) * 60) : 0;\n    }\n\n    rows.forEach(function (row) {\n      var start = Number(row.dataset.start);\n      var end = Number(row.dataset.end);\n      if (!Number.isFinite(start) || !Number.isFinite(end) || start <= 0 || end <= 0 || end > nowSeconds) {\n        row.remove();\n        return;\n      }\n      var minutes = Math.max(0, Math.round((end - start) \/ 60));\n      if (!minutes) minutes = parseDuration(row.dataset.duration);\n      row.querySelector('.history-hours').textContent = minutes ? formatMinutes(minutes) : '\u2014';\n      totalMinutes += minutes;\n      visible.push(row);\n    });\n\n    \/\/ Order every completed session by its actual start date, newest first.\n    \/\/ The YYYYMMDDHHmmss key also works for practical sessions.\n    visible.sort(function (a, b) {\n      return String(b.dataset.sortDate || '').localeCompare(String(a.dataset.sortDate || ''));\n    });\n    visible.forEach(function (row) { body.appendChild(row); });\n\n    if (!visible.length) {\n      var empty = document.createElement('tr');\n      var cell = document.createElement('td');\n      cell.colSpan = 6;\n      cell.className = 'trainer-history-empty';\n      cell.textContent = isEnglish ? 'There are no completed sessions associated with this trainer yet.' : 'Ainda n\u00e3o existem sess\u00f5es realizadas associadas a este formador.';\n      empty.appendChild(cell);\n      body.appendChild(empty);\n    }\n    totalEl.textContent = formatMinutes(totalMinutes);\n    if (countEl) countEl.textContent = visible.length + (isEnglish ? (visible.length === 1 ? ' session shown.' : ' sessions shown.') : (visible.length === 1 ? ' sess\u00e3o apresentada.' : ' sess\u00f5es apresentadas.'));\n  }\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', initializeHistory);\n  else initializeHistory();\n})();\n<\/script>\n\n\n<div id=\"atividade-formativa-formador\">\n  <div class=\"trainer-declaration-head\">\n    <div>\n      <h2><span class=\"trainer-lang-pt\">Declara\u00e7\u00f5es de atividade formativa<\/span><span class=\"trainer-lang-en\">Training activity declarations<\/span><\/h2>\n      <p class=\"trainer-history-subtitle\" style=\"margin-bottom:0\"><span class=\"trainer-lang-pt\">Consulte os pedidos e descarregue as declara\u00e7\u00f5es dispon\u00edveis.<\/span><span class=\"trainer-lang-en\">View your requests and download available declarations.<\/span><\/p>\n    <\/div>\n\n            <div id=\"icds-custom-form-container-6ae8bec58ba8f\"><\/div>  <\/div>\n\n  <div class=\"trainer-history-scroll\">\n    <table class=\"trainer-history-table trainer-declaration-table\">\n      <thead><tr><th><span class=\"trainer-lang-pt\">Data do pedido<\/span><span class=\"trainer-lang-en\">Request date<\/span><\/th><th><span class=\"trainer-lang-pt\">Declara\u00e7\u00e3o de atividade formativa<\/span><span class=\"trainer-lang-en\">Training activity declaration<\/span><\/th><\/tr><\/thead>\n      <tbody>\n                                      <tr>\n            <td class=\"history-date\">25-10-2026 23:04<\/td>\n            <td>\n                              <a class=\"trainer-declaration-btn trainer-declaration-download\" href=\"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/integration-cds\/v1\/file?table=bpe_atividade_formativa_formador&amp;id=48170b6e-c8d0-f111-a05d-7ced8d5f653d&amp;column=bpe_atividade_formativa_final\" download><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" style=\"flex-shrink:0\"><path d=\"M12 3v12m-5-5 5 5 5-5\"\/><path d=\"M5 17v4h14v-4\"\/><\/svg><span class=\"trainer-lang-pt\">Descarregar<\/span><span class=\"trainer-lang-en\">Download<\/span><\/a>\n                          <\/td>\n          <\/tr>\n              <\/tbody>\n    <\/table>\n  <\/div>\n<\/div>\n<\/section>\n<div id=\"trainer-declaration-toast\" role=\"status\" aria-live=\"polite\"><\/div>\n\n<script>\n(function () {\n  function initDeclaration() {\n    var form = document.getElementById('trainer-declaration-request-form');\n    var toast = document.getElementById('trainer-declaration-toast');\n    var flashKey = 'trainer_atividade_formativa_apos_redirect_v1';\n    var isEnglish = \/^\\\/en(?:\\\/|$)\/i.test(location.pathname);\n    if (!form || form.dataset.ready === '1') return;\n    form.dataset.ready = '1';\n\n    \/\/ Exactly as in the working course-details forms: a normal DataPress\n    \/\/ redirect refreshes the records, then the new page shows green feedback.\n    try {\n      var saved = sessionStorage.getItem(flashKey);\n      if (saved) {\n        sessionStorage.removeItem(flashKey);\n        var marker = JSON.parse(saved);\n        if (marker && marker.url === location.pathname + location.search &&\n            Date.now() - marker.at >= 0 && Date.now() - marker.at < 60000 && toast) {\n          toast.textContent = isEnglish ? 'Request submitted successfully!' : 'Pedido registado com sucesso!';\n          toast.style.background = '#14532d';\n          toast.classList.add('ativo', 'sucesso');\n          setTimeout(function () { toast.classList.remove('ativo', 'sucesso'); }, 4500);\n        }\n      }\n    } catch (e) { \/* Session storage may be disabled *\/ }\n\n    form.addEventListener('submit', function (event) {\n      if (!form.checkValidity() || event.defaultPrevented) return;\n      var field = document.getElementById('trainer-declaration-date');\n      if (field) {\n        var now = new Date();\n        function pad(n) { return String(n).padStart(2, '0'); }\n        field.value = now.getFullYear() + '-' + pad(now.getMonth() + 1) + '-' + pad(now.getDate()) +\n          'T' + pad(now.getHours()) + ':' + pad(now.getMinutes()) + ':' + pad(now.getSeconds());\n      }\n      try {\n        sessionStorage.setItem(flashKey, JSON.stringify({\n          url: location.pathname + location.search, at: Date.now()\n        }));\n      } catch (e) { \/* Optional feedback only *\/ }\n      var button = form.querySelector('button[type=\"submit\"]');\n      if (button) { button.disabled = true; button.textContent = isEnglish ? 'Processing...' : 'A processar...'; }\n      if (toast) {\n        toast.textContent = isEnglish ? 'Your request is being processed...' : 'O seu pedido est\u00e1 a ser processado...';\n        toast.style.background = '#2563eb';\n        toast.classList.remove('sucesso');\n        toast.classList.add('ativo');\n      }\n    });\n  }\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', initDeclaration);\n  else initDeclaration();\n})();\n<\/script>\n\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":65,"featured_media":0,"parent":92806,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"courseId":0,"footnotes":""},"class_list":["post-92814","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/pages\/92814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/comments?post=92814"}],"version-history":[{"count":5,"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/pages\/92814\/revisions"}],"predecessor-version":[{"id":93862,"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/pages\/92814\/revisions\/93862"}],"up":[{"embeddable":true,"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/pages\/92806"}],"wp:attachment":[{"href":"https:\/\/staging.academiaclinicadragao.com\/en\/wp-json\/wp\/v2\/media?parent=92814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}