PageSourceSearch

https://observador.pt/wp-content/themes/observador-child/assets/bu…/article-landing.min.js?__obsver=5349928d

js observador.pt collected 2026-09-24 08:36:05 UTC 45,904 bytes, 2 lines download raw bytes

1!function(){"use strict";var e={1550:function(e,t,n){n.d(t,{ActionTypeE:function(){return o}});var o=(e=>(e.episodeRefresh="episode_refresh",e.radioRefresh="radio_refresh",e.embedRefresh="embed_refresh",e.episodePlay="episode_play",e.episodePause="episode_pause",e.radioPlay="radio_play",e.radioPause="radio_pause",e.embedPlay="embed_play",e.embedPause="embed_pause",e.radio="radio",e.embed="embed",e.episode="episode",e.openComment="open_comments",e.photogallery="photogallery",e.other="other",e.home="home",e.viewSection="view_section",e.viewArticle="view_article",e.viewEpisode="view_episode",e.viewRadio="view_radio",e.interactiveEvents="interactive_events",e))(o||{})},5270:function(e,t,n){function o(e,t={}){const n=new URLSearchParams(location.search);return e.set("utm_source",n.get("utm_source")??t?.utm_source??"interno"),e.set("utm_medium",n.get("utm_medium")??t?.utm_medium??""),e.set("utm_campaign",n.get("utm_campaign")??t?.utm_campaign??""),e.set("utm_term",n.get("utm_term")??t?.utm_term??""),e.set("utm_content",n.get("utm_content")??t?.utm_content??""),e}n.d(t,{P4:function(){return o}}),n(24212),n(91597),document.getElementById("new-payments-btn")?.addEventListener("click",(function(){document.querySelector("#new-payments-container").classList.toggle("hidden")}));let i=0;const a=document.getElementById("dadosfiscais"),r=document.getElementById("dadosfiscais-form");a?.addEventListener("click",(function(){0==i?(r.style.display="flex",i=1):(r.style.display="none",i=0)}))},6864:function(e,t,n){function o(){let e="anon";return localStorage.getItem("OBS-ADAMASTOR")&&(e="lgdin"),adamastor.isSubscriber()&&(e="paid"),e}function i(){return adamastor?adamastor.getSessionProfile()?.sub??"":JSON.parse(localStorage.getItem("OBS-ADAMASTOR"))?.id??""}n.d(t,{getUserId:function(){return i},getUserType:function(){return o}}),window.obsUtils={getUserType:o}},16242:function(e,t,n){var o=n(91597),i=n(54586),a=n(59238),r=n(88971),s=n(5270),c=n(69627);const l="/assinar/upgrades/",d="/assinar/planos/",u="/assinar/renovacao/";function m(){const e=document.querySelector('#form-landing input[name="price"]:checked'),t=document.querySelector("#submit-form"),n=document.querySelector("#swg-submit-form");if(!e||!t||!n)return;const o=e.closest("obs-stripe-price");let a="";n.style.display="block";const r=o.getAttribute("data-price-id")||"",c=o.getAttribute("data-coupon-id")||"",l=o.getAttribute("data-swg-id")||"";a=r,t.onclick=e=>{e.preventDefault();let t=new URLSearchParams;r&&t.append("price_id",r),c&&t.append("coupon",c),t=(0,s.P4)(t),(0,i.VR)({event:i._j.landing,click_action:a,click_label:"",click_location:""}),window.obsFbqTrack?.("PlanSubscribeClick",{plan:r,location:"landing_b"}),window.location.href=`/checkout/?${t.toString()}`},l?(n.setAttribute("onclick",`window.obs_swg.showOffers('${l}')`),n.setAttribute("external-event","paywall"),n.setAttribute("external-event-params",l),n.onclick=e=>{e.preventDefault(),(0,i.VR)({event:i._j.landing,click_action:l,click_label:"swg",click_location:""}),window.obsFbqTrack?.("GoogleSubscribeClick",{provider:"google_swg",location:"landing_b"}),window.obs_swg&&"function"==typeof window.obs_swg.showOffers?window.obs_swg.showOffers(l):console.error("SWG function not available")},n.style.display="block"):n.style.display="none"}function p(e){(e.clientY<=0||e.clientX<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight)&&(g||(o._.show({classes:["landing-exit-modal"],html:'\n        <svg class="landing-exit-modal-logo" viewBox="0 0 4459 571" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" role="img" aria-label="Observador">\n            <rect x="0" y="0" width="4458.33" height="570.833" style="fill:none;"></rect>\n            <g>\n                <g transform="matrix(4.15979,0,0,4.15979,7.58043,-469.676)">\n                    <g>\n                        <g transform="matrix(1.19088,0,0,1.19088,197.082,191.031)">\n                            <path d="M0,-15.97C9.572,-15.97 14.632,-19.403 14.632,-25.899L14.632,-26.153C14.632,-32.301 9.762,-35.827 1.271,-35.827L-17.307,-35.827L-17.307,-15.97L0,-15.97ZM5.21,19.858C14.481,19.858 19.588,16.241 19.588,9.675L19.588,9.421C19.588,2.759 14.396,-0.763 4.574,-0.763L-17.307,-0.763L-17.307,19.858L5.21,19.858ZM-34.785,35.954C-35.076,35.954 -35.312,35.718 -35.312,35.426L-35.312,-51.396C-35.312,-51.688 -35.076,-51.924 -34.785,-51.924L4.193,-51.924C21.974,-51.924 33.02,-43.315 33.02,-29.456L33.02,-29.201C33.02,-20.906 29.284,-14.781 21.598,-10.478L20.615,-9.928L21.667,-9.525C33.098,-5.151 37.975,1.237 37.975,11.834L37.975,12.089C37.975,27.256 26.033,35.954 5.21,35.954L-34.785,35.954Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,297.556,127.638)">\n                            <path d="M0,90.418C-13.543,90.418 -26.546,85.653 -36.614,77.002C-36.832,76.814 -36.859,76.485 -36.674,76.264L-26.439,64.007C-26.335,63.882 -26.185,63.817 -26.035,63.817C-25.918,63.817 -25.802,63.855 -25.705,63.933C-16.969,70.935 -8.68,74.195 0.381,74.195C8.624,74.195 13.743,70.78 13.743,65.282L13.743,65.028C13.743,59.437 9.806,56.896 -4.57,53.21C-24.275,48.18 -33.654,42.905 -33.654,26.533L-33.654,26.279C-33.654,10.561 -21.355,0 -3.049,0C9.051,0 19.794,3.559 28.88,10.578C29.102,10.75 29.151,11.064 28.991,11.295L19.985,24.353C19.883,24.501 19.718,24.581 19.551,24.581C19.449,24.581 19.346,24.551 19.256,24.49C11.006,18.928 3.627,16.224 -3.304,16.224C-10.572,16.224 -15.268,19.473 -15.268,24.501L-15.268,24.754C-15.268,31.349 -10.191,33.238 4.317,36.954C21.489,41.428 32.13,47.365 32.13,63.123L32.13,63.377C32.13,80.057 19.819,90.418 0,90.418" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,353.895,129.151)">\n                            <path d="M0,87.877C-0.292,87.877 -0.527,87.642 -0.527,87.35L-0.527,0.527C-0.527,0.236 -0.292,0 0,0L62.59,0C62.882,0 63.118,0.236 63.118,0.527L63.118,15.823C63.118,16.114 62.882,16.35 62.59,16.35L17.86,16.35L17.86,35.446L56.872,35.446C57.164,35.446 57.4,35.682 57.4,35.974L57.4,51.269C57.4,51.561 57.164,51.796 56.872,51.796L17.86,51.796L17.86,71.527L63.225,71.527C63.517,71.527 63.753,71.764 63.753,72.055L63.753,87.35C63.753,87.642 63.517,87.877 63.225,87.877L0,87.877Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,493.856,182.361)">\n                            <path d="M0,-1.485C9.429,-1.485 15.521,-6.629 15.521,-14.59L15.521,-14.844C15.521,-23.254 9.725,-28.076 -0.381,-28.076L-20.351,-28.076L-20.351,-1.485L0,-1.485ZM15.176,43.196C15,43.196 14.836,43.109 14.738,42.963L-4.165,14.738L-20.351,14.738L-20.351,42.669C-20.351,42.961 -20.587,43.196 -20.879,43.196L-38.336,43.196C-38.628,43.196 -38.864,42.961 -38.864,42.669L-38.864,-44.153C-38.864,-44.445 -38.628,-44.681 -38.336,-44.681L1.271,-44.681C21.946,-44.681 34.289,-33.907 34.289,-15.86L34.289,-15.60
17C34.289,1.036 24.111,8.303 15.573,11.468L14.939,11.703L35.922,42.371C36.031,42.533 36.043,42.742 35.952,42.915C35.86,43.088 35.681,43.196 35.485,43.196L15.176,43.196Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,583.242,129.151)">\n                            <path d="M0,87.877C-0.216,87.877 -0.409,87.746 -0.489,87.547L-35.604,0.724C-35.669,0.561 -35.649,0.377 -35.552,0.232C-35.453,0.087 -35.29,0 -35.114,0L-15.806,0C-15.585,0 -15.388,0.137 -15.312,0.344L8.181,62.609L31.675,0.344C31.751,0.137 31.948,0 32.169,0L50.97,0C51.145,0 51.309,0.087 51.406,0.232C51.505,0.377 51.524,0.561 51.459,0.724L16.345,87.547C16.265,87.746 16.07,87.877 15.855,87.877L0,87.877Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,697.75,172.224)">\n                            <path d="M0,15.539L-12.638,-15.219L-25.276,15.539L0,15.539ZM15.085,51.708C14.87,51.708 14.676,51.579 14.596,51.38L6.575,31.762L-31.852,31.762L-39.873,51.38C-39.953,51.579 -40.147,51.708 -40.362,51.708L-58.057,51.708C-58.234,51.708 -58.399,51.619 -58.497,51.472C-58.596,51.324 -58.612,51.138 -58.543,50.975L-21.185,-35.848C-21.103,-36.043 -20.91,-36.169 -20.698,-36.169L-4.004,-36.169C-3.792,-36.169 -3.6,-36.043 -3.517,-35.848L33.775,50.975C33.845,51.138 33.828,51.324 33.729,51.472C33.632,51.619 33.466,51.708 33.288,51.708L15.085,51.708Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,790.436,148.924)">\n                            <path d="M0,54.67C16.398,54.67 27.416,43.787 27.416,27.589L27.416,27.335C27.416,11.241 16.143,0.001 0,0.001L-15.69,0.001L-15.69,54.67L0,54.67ZM-33.727,71.274C-34.02,71.274 -34.256,71.038 -34.256,70.746L-34.256,-16.076C-34.256,-16.368 -34.02,-16.604 -33.727,-16.604L0,-16.604C27.159,-16.604 46.872,1.768 46.872,27.081L46.872,27.335C46.872,52.795 27.159,71.274 0,71.274L-33.727,71.274Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,1025.12,182.361)">\n                            <path d="M0,-1.485C9.455,-1.485 15.564,-6.629 15.564,-14.59L15.564,-14.844C15.564,-23.254 9.752,-28.076 -0.382,-28.076L-20.406,-28.076L-20.406,-1.485L0,-1.485ZM15.218,43.196C15.041,43.196 14.877,43.109 14.778,42.963L-4.177,14.738L-20.406,14.738L-20.406,42.669C-20.406,42.961 -20.643,43.196 -20.936,43.196L-38.442,43.196C-38.734,43.196 -38.971,42.961 -38.971,42.669L-38.971,-44.153C-38.971,-44.445 -38.734,-44.681 -38.442,-44.681L1.274,-44.681C22.007,-44.681 34.384,-33.907 34.384,-15.86L34.384,-15.607C34.384,1.037 24.178,8.303 15.616,11.468L14.98,11.703L36.02,42.371C36.131,42.533 36.142,42.742 36.051,42.915C35.959,43.088 35.779,43.196 35.583,43.196L15.218,43.196Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,912.486,214.035)">\n                            <path d="M0,-54.679C-14.955,-54.679 -27.123,-42.415 -27.123,-27.34C-27.123,-12.265 -14.955,0 0,0C14.954,0 27.121,-12.265 27.121,-27.34C27.121,-42.415 14.954,-54.679 0,-54.679M0,18.124C-25.144,18.124 -45.598,-2.272 -45.598,-27.34C-45.598,-52.408 -25.144,-72.803 0,-72.803C25.142,-72.803 45.596,-52.408 45.596,-27.34C45.596,-2.272 25.142,18.124 0,18.124" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,68.4755,137.257)">\n                            <path d="M0,74.34C-20.528,74.34 -37.17,57.698 -37.17,37.17C-37.17,16.641 -20.528,-0.001 0,-0.001C20.529,-0.001 37.171,16.641 37.171,37.17C37.171,57.698 20.529,74.34 0,74.34M0,-20.33C-31.756,-20.33 -57.5,5.413 -57.5,37.17C-57.5,68.926 -31.756,94.67 0,94.67C31.757,94.67 57.5,68.926 57.5,37.17C57.5,5.413 31.757,-20.33 0,-20.33" style="fill-rule:nonzero;"></path>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </svg>\n        <p class="landing-exit-modal-title">Não ficou convencido?</p>\n        <p class="landing-exit-modal-subtitle">\n            Damos-lhe mais uma razão para assinar.<br>\n            <strong>Assine 6 meses por <s>42€</s> 19€</strong>\n        </p>\n        <div class="landing-exit-modal-features">\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-ilimitado.svg" alt="Acesso ilimitado" />\n                </div>\n                <div class="feature-text">\n                    <strong>Acesso ilimitado</strong>
1\n                    <span>Artigos exclusivos<br>e opinião exclusiva</span>\n                </div>\n            </div>\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-npub.svg" alt="Menos publicidade" />\n                </div>\n                <div class="feature-text">\n                    <strong>Menos publicidade</strong>\n                    <span>Sem formatos intrusivos durante a leitura</span>\n                </div>\n            </div>\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-podcasts.svg" alt="Podcasts" />\n                </div>\n                <div class="feature-text">\n                    <strong>Podcasts</strong>\n                    <span>Acesso Antecipado Podcast+</span>\n                </div>\n            </div>\n        </div>\n        <a class="landing-exit-modal-cta"\n           href="/checkout/?price_id=price_1OmGaaLIdwiNHqVnMJBfmqrr&coupon=aYRHBKLy&utm_source=interno&utm_medium=pop-up-modal&utm_campaign=&utm_content=modal_landing_v2&show=biannual&product=standard"\n           data-event-name="modal"\n           data-click-action="click"\n           data-click-location="landing"\n           data-click-label="price_1OmGaaLIdwiNHqVnMJBfmqrr">\n            Assinar agora\n        </a>\n        <div class="landing-exit-modal-bottomnotes">Renova a 39€ por 6 meses</div>\n    '}),(0,i.VR)({click_action:"show",click_label:"",click_location:"landing",event:i._j.modal}),g=!0,document.removeEventListener("mouseleave",p)))}document.addEventListener("growthBookReady",(async function(){const e=document.querySelector("#landing-b"),t=new URLSearchParams(window.location.search),n=t.get("product")?.toLowerCase()||null,h=t.get("show")?.toLowerCase()||null;n&&(0,c.mw)(n),e.style.display="flex",setTimeout((()=>{if(document.querySelectorAll("#landing-b .accordion-item").forEach(((e,t)=>{const n=e.querySelector(".accordion-header"),o=e.querySelector('input[type="radio"]'),i=e.querySelector(".accordion-panel");if(!n||!o||!i)return void console.warn("Elemento accordion incompleto encontrado:",e);const a=n.cloneNode(!0),r=a.querySelector('input[type="radio"]');n.parentNode?.replaceChild(a,n),a.addEventListener("click",(t=>{document.querySelectorAll('#form-landing input[name="price"]').forEach((e=>{e.checked=!1})),r.checked=!0,i.classList.add("open"),a.classList.add("active"),document.querySelectorAll("#landing-b .accordion-item").forEach((t=>{if(t!==e){const e=t.querySelector(".accordion-panel"),n=t.querySelector(".accordion-header");e&&e.classList.remove("open"),n&&n.classList.remove("active")}})),m()})),r.addEventListener("click",(function(e){e.stopPropagation(),a.click()}))})),!n){const e=document.querySelector(".recurrence-wrapper-b.yearly .accordion-item"),t=e?.querySelector('input[name="price"]'),n=e?.querySelector(".accordion-header"),o=e?.querySelector(".accordion-panel");t&&n&&o&&(document.querySelectorAll('#form-landing input[name="price"]').forEach((e=>{e.checked=!1})),t.checked=!0,o.classList.add("open"),n.classList.add("active"))}m(),n&&setTimeout((()=>{!function(e,t){let n={lowcost:["lowcostyear","lowcostquarter","lowcostmonth"],standard:["standardyear","standardquarter","standardmonth"],premium:["premiumyear","premiumquarter","premiummonth"]}[e.toLowerCase()];if(t&&n){const e={yearly:0,quarterly:1,monthly:2}[t.toLowerCase()];void 0!==e&&n[e]&&(n=[n[e],...n.filter(((t,n)=>n!==e))])}if(!n)return void console.warn(`Product "${e}" not recognized`);const o=document.querySelector("#landing-b"),i=".accordion-item",a=".accordion-header",r=".accordion-panel";for(const t of n){const n=o?.querySelector(`[id="${t}"] input[type="radio"], input[type="radio"][id="${t}"]`);if(n){const s=n.closest(i);if(!s)continue;const c=s.querySelector(a),l=s.querySelector(r);if(c&&l){n.checked=!0,l.classList.add("open"),c.classList.add("active"),o?.querySelectorAll(i).forEac
1h((e=>{if(e!==s){const t=e.querySelector(r),n=e.querySelector(a);t&&t.classList.remove("open"),n&&n.classList.remove("active")}})),s.scrollIntoView({behavior:"smooth",block:"center"}),m(),console.log(`Auto-selected product: ${e} (${t})`);break}}}}(n,h)}),400)}),200),async function(){document.querySelectorAll(".landingbtn").forEach((e=>e.addEventListener("click",(function(e){e.preventDefault();const t=new URL(this.href);t.search=(0,s.P4)(new URLSearchParams(t.search),{utm_medium:"landing",utm_campaign:this.dataset.priceId}).toString(),location.href=t.toString()})))),adamastor.isSubscriber()||(document.addEventListener("mouseleave",p),history.pushState({page:"landing"},document.title,window.location.href),window.addEventListener("popstate",(function(e){g||(o._.show({classes:["landing-exit-modal"],html:'\n        <svg class="landing-exit-modal-logo" viewBox="0 0 4459 571" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" role="img" aria-label="Observador">\n            <rect x="0" y="0" width="4458.33" height="570.833" style="fill:none;"></rect>\n            <g>\n                <g transform="matrix(4.15979,0,0,4.15979,7.58043,-469.676)">\n                    <g>\n                        <g transform="matrix(1.19088,0,0,1.19088,197.082,191.031)">\n                            <path d="M0,-15.97C9.572,-15.97 14.632,-19.403 14.632,-25.899L14.632,-26.153C14.632,-32.301 9.762,-35.827 1.271,-35.827L-17.307,-35.827L-17.307,-15.97L0,-15.97ZM5.21,19.858C14.481,19.858 19.588,16.241 19.588,9.675L19.588,9.421C19.588,2.759 14.396,-0.763 4.574,-0.763L-17.307,-0.763L-17.307,19.858L5.21,19.858ZM-34.785,35.954C-35.076,35.954 -35.312,35.718 -35.312,35.426L-35.312,-51.396C-35.312,-51.688 -35.076,-51.924 -34.785,-51.924L4.193,-51.924C21.974,-51.924 33.02,-43.315 33.02,-29.456L33.02,-29.201C33.02,-20.906 29.284,-14.781 21.598,-10.478L20.615,-9.928L21.667,-9.525C33.098,-5.151 37.975,1.237 37.975,11.834L37.975,12.089C37.975,27.256 26.033,35.954 5.21,35.954L-34.785,35.954Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,297.556,127.638)">\n                            <path d="M0,90.418C-13.543,90.418 -26.546,85.653 -36.614,77.002C-36.832,76.814 -36.859,76.485 -36.674,76.264L-26.439,64.007C-26.335,63.882 -26.185,63.817 -26.035,63.817C-25.918,63.817 -25.802,63.855 -25.705,63.933C-16.969,70.935 -8.68,74.195 0.381,74.195C8.624,74.195 13.743,70.78 13.743,65.282L13.743,65.028C13.743,59.437 9.806,56.896 -4.57,53.21C-24.275,48.18 -33.654,42.905 -33.654,26.533L-33.654,26.279C-33.654,10.561 -21.355,0 -3.049,0C9.051,0 19.794,3.559 28.88,10.578C29.102,10.75 29.151,11.064 28.991,11.295L19.985,24.353C19.883,24.501 19.718,24.581 19.551,24.581C19.449,24.581 19.346,24.551 19.256,24.49C11.006,18.928 3.627,16.224 -3.304,16.224C-10.572,16.224 -15.268,19.473 -15.268,24.501L-15.268,24.754C-15.268,31.349 -10.191,33.238 4.317,36.954C21.489,41.428 32.13,47.365 32.13,63.123L32.13,63.377C32.13,80.057 19.819,90.418 0,90.418" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,353.895,129.151)">\n                            <path d="M0,87.877C-0.292,87.877 -0.527,87.642 -0.527,87.35L-0.527,0.527C-0.527,0.236 -0.292,0 0,0L62.59,0C62.882,0 63.118,0.236 63.118,0.527L63.118,15.823C63.118,16.114 62.882,16.35 62.59,16.35L17.86,16.35L17.86,35.446L56.872,35.446C57.164,35.446 57.4,35.682 57.4,35.974L57.4,51.269C57.4,51.561 57.164,51.796 56.872,51.796L17.86,51.796L17.86,71.527L63.225,71.527C63.517,71.527 63.753,71.764 63.753,72.055L63.753,87.35C63.753,87.642 63.517,87.877 63.225,87.877L0,87.877Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,493.856,182.361)">\n                            <path d="M0,-1.485C9.429,-1.485 15.521,-6.629 15.521,-14.59L15.521,-14.844C15.521,-23.254 9.725,-28.076 -0.381,-28.076L-20.351,-28.076L-20.351,-1.485L0,-1.485ZM15.176,43.196C15,43.196 14.836,43.109 14.738,42.963L-4.165,14.738L-20.351,14.738L-20.351,42.669C-20.351,42.961 -20.587,43.196 -20.879,43.196L-38.336,43.196C-38.628,43.196 -38.864,42.961 -38.864,42.669L-38.864,-44.153C-38.864,-44.445 -38.628,-44.681 -38.336,-44.681L1.271,-44.681C21.946,-44.681 34.289,-33.907 34.289,-15.86L34.289,-15.60
17C34.289,1.036 24.111,8.303 15.573,11.468L14.939,11.703L35.922,42.371C36.031,42.533 36.043,42.742 35.952,42.915C35.86,43.088 35.681,43.196 35.485,43.196L15.176,43.196Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,583.242,129.151)">\n                            <path d="M0,87.877C-0.216,87.877 -0.409,87.746 -0.489,87.547L-35.604,0.724C-35.669,0.561 -35.649,0.377 -35.552,0.232C-35.453,0.087 -35.29,0 -35.114,0L-15.806,0C-15.585,0 -15.388,0.137 -15.312,0.344L8.181,62.609L31.675,0.344C31.751,0.137 31.948,0 32.169,0L50.97,0C51.145,0 51.309,0.087 51.406,0.232C51.505,0.377 51.524,0.561 51.459,0.724L16.345,87.547C16.265,87.746 16.07,87.877 15.855,87.877L0,87.877Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,697.75,172.224)">\n                            <path d="M0,15.539L-12.638,-15.219L-25.276,15.539L0,15.539ZM15.085,51.708C14.87,51.708 14.676,51.579 14.596,51.38L6.575,31.762L-31.852,31.762L-39.873,51.38C-39.953,51.579 -40.147,51.708 -40.362,51.708L-58.057,51.708C-58.234,51.708 -58.399,51.619 -58.497,51.472C-58.596,51.324 -58.612,51.138 -58.543,50.975L-21.185,-35.848C-21.103,-36.043 -20.91,-36.169 -20.698,-36.169L-4.004,-36.169C-3.792,-36.169 -3.6,-36.043 -3.517,-35.848L33.775,50.975C33.845,51.138 33.828,51.324 33.729,51.472C33.632,51.619 33.466,51.708 33.288,51.708L15.085,51.708Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,790.436,148.924)">\n                            <path d="M0,54.67C16.398,54.67 27.416,43.787 27.416,27.589L27.416,27.335C27.416,11.241 16.143,0.001 0,0.001L-15.69,0.001L-15.69,54.67L0,54.67ZM-33.727,71.274C-34.02,71.274 -34.256,71.038 -34.256,70.746L-34.256,-16.076C-34.256,-16.368 -34.02,-16.604 -33.727,-16.604L0,-16.604C27.159,-16.604 46.872,1.768 46.872,27.081L46.872,27.335C46.872,52.795 27.159,71.274 0,71.274L-33.727,71.274Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,1025.12,182.361)">\n                            <path d="M0,-1.485C9.455,-1.485 15.564,-6.629 15.564,-14.59L15.564,-14.844C15.564,-23.254 9.752,-28.076 -0.382,-28.076L-20.406,-28.076L-20.406,-1.485L0,-1.485ZM15.218,43.196C15.041,43.196 14.877,43.109 14.778,42.963L-4.177,14.738L-20.406,14.738L-20.406,42.669C-20.406,42.961 -20.643,43.196 -20.936,43.196L-38.442,43.196C-38.734,43.196 -38.971,42.961 -38.971,42.669L-38.971,-44.153C-38.971,-44.445 -38.734,-44.681 -38.442,-44.681L1.274,-44.681C22.007,-44.681 34.384,-33.907 34.384,-15.86L34.384,-15.607C34.384,1.037 24.178,8.303 15.616,11.468L14.98,11.703L36.02,42.371C36.131,42.533 36.142,42.742 36.051,42.915C35.959,43.088 35.779,43.196 35.583,43.196L15.218,43.196Z" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,912.486,214.035)">\n                            <path d="M0,-54.679C-14.955,-54.679 -27.123,-42.415 -27.123,-27.34C-27.123,-12.265 -14.955,0 0,0C14.954,0 27.121,-12.265 27.121,-27.34C27.121,-42.415 14.954,-54.679 0,-54.679M0,18.124C-25.144,18.124 -45.598,-2.272 -45.598,-27.34C-45.598,-52.408 -25.144,-72.803 0,-72.803C25.142,-72.803 45.596,-52.408 45.596,-27.34C45.596,-2.272 25.142,18.124 0,18.124" style="fill-rule:nonzero;"></path>\n                        </g>\n                        <g transform="matrix(1.19088,0,0,1.19088,68.4755,137.257)">\n                            <path d="M0,74.34C-20.528,74.34 -37.17,57.698 -37.17,37.17C-37.17,16.641 -20.528,-0.001 0,-0.001C20.529,-0.001 37.171,16.641 37.171,37.17C37.171,57.698 20.529,74.34 0,74.34M0,-20.33C-31.756,-20.33 -57.5,5.413 -57.5,37.17C-57.5,68.926 -31.756,94.67 0,94.67C31.757,94.67 57.5,68.926 57.5,37.17C57.5,5.413 31.757,-20.33 0,-20.33" style="fill-rule:nonzero;"></path>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </svg>\n        <p class="landing-exit-modal-title">Não ficou convencido?</p>\n        <p class="landing-exit-modal-subtitle">\n            Damos-lhe mais uma razão para assinar.<br>\n            <strong>Assine 6 meses por <s>42€</s> 19€</strong>\n        </p>\n        <div class="landing-exit-modal-features">\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-ilimitado.svg" alt="Acesso ilimitado" />\n                </div>\n                <div class="feature-text">\n                    <strong>Acesso ilimitado</strong>
1\n                    <span>Artigos exclusivos<br>e opinião exclusiva</span>\n                </div>\n            </div>\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-npub.svg" alt="Menos publicidade" />\n                </div>\n                <div class="feature-text">\n                    <strong>Menos publicidade</strong>\n                    <span>Sem formatos intrusivos durante a leitura</span>\n                </div>\n            </div>\n            <div class="landing-exit-modal-feature">\n                <div class="feature-icon">\n                    <img src="https://static.observador.pt/piano/media/vantagens/icon-podcasts.svg" alt="Podcasts" />\n                </div>\n                <div class="feature-text">\n                    <strong>Podcasts</strong>\n                    <span>Acesso Antecipado Podcast+</span>\n                </div>\n            </div>\n        </div>\n        <a class="landing-exit-modal-cta"\n           href="/checkout/?price_id=price_1OmGaaLIdwiNHqVnMJBfmqrr&coupon=aYRHBKLy&utm_source=interno&utm_medium=pop-up-modal&utm_campaign=&utm_content=modal_landing_v2&show=biannual&product=standard"\n           data-event-name="modal"\n           data-click-action="click"\n           data-click-location="landing"\n           data-click-label="price_1OmGaaLIdwiNHqVnMJBfmqrr">\n            Assinar agora\n        </a>\n        <div class="landing-exit-modal-bottomnotes">Renova a 39€ por 6 meses</div>\n    '}),(0,i.VR)({click_action:"show",click_label:"landing",click_location:"",event:i._j.modal}),g=!0)})));const e=adamastor.getSessionProfile()?.email??"";if(e&&e.endsWith("@observador.pt")&&!["[email protected]","[email protected]","[email protected]","[email protected]"].includes(e))return void(0,c.Rh)();const t=adamastor.getSubscriptionsProducts()?.find((e=>"swg"===e.source||"iap"===e.source||"shared"===e.source||"grants"===e.source));if(t)return document.querySelector("#landing-spinner")?.remove(),document.querySelector("#js-obs-offers").remove(),document.querySelector(".page-container").style.display="block",void("swg"===t.source?document.querySelector("#js-obs-rrme-notice").style.display="block":"iap"===t.source?document.querySelector("#js-obs-iap-notice").style.display="block":"shared"===t.source?document.querySelector("#js-obs-shared-notice").style.display="block":"grants"===t.source&&(document.querySelector("#js-obs-grants-notice").style.display="block"));const n=document.querySelector("article.article-landing").dataset.landingPublic,m=adamastor.isSubscriber(),h=[l,u,d].includes(window.location.pathname);if(h&&m&&"upgrades"!==n)return void(location.pathname=l);const f=adamastor.getIsUserExSubscriber();if(h&&f&&"ex-subscribers"!==n)return void(location.pathname=u);const y=!adamastor.isSubscriber()&&!adamastor.hasPreviousSubscription();if(h&&y&&"new-subscribers"!==n)location.pathname=d;else switch(n){case"ex-subscribers":return void(0,a.z)();case"new-subscribers":(0,a.z)();const e=document.querySelector(".article-landing");return void(e&&e.classList.add("sub-18"));case"upgrades":(0,r.z)()}}()}));let g=!1},22037:function(){var e,t="https://js.stripe.com",n="".concat(t,"/").concat("clover","/stripe.js"),o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",r=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src="".concat(n).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(o),o},s=null,c=null,l=null,d=function(){return e||(e=(n=null,null!==s?s:(s=new Promise((function(e,s){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&n&&console.warn(a),window.Stripe)e(window.Stripe);else try{var d=function(){for(var e,n=document.querySelectorAll('script[src^="'.concat(t,'"]')),a=0;a<n.length;a++){var r=n[a];if(e=r.src,o.test(e)||i.test(e))return r}return null}();if(d&&n)console.warn(a);else if(d){if(d&&null!==l&&null!==c){var u;d.removeEventListener("load",l),d.removeEventListener("error",c),null===(u=d.parentNode)||void 0===u||u.removeChild(d),d=r(n)}}else d=r(n);l=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(e,s),c=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(s),d.addEventListener("load",l),d.addEventListener("error",c)}catch(e){return void s(e)}else e(null)}))).catch((function(e){return s=null,Promise.reject(e)}
1))).catch((function(t){return e=null,Promise.reject(t)})));var n};Promise.resolve().then((function(){return d()})).catch((function(e){console.warn(e)}))},24212:function(e,t,n){n.d(t,{I1:function(){return i},ae:function(){return o}}),n(22037);const o=contextualData.STRIPE_CASHIER_URL;function i(e,t){const n=new URL(e);"development"===contextualData.STRIPE_MODE&&n.searchParams.append("XDEBUG_SESSION_START","15803");const o=n.toString();return fetch(o,t)}},41476:function(e,t,n){function o(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}n.d(t,{D:function(){return o}})},41669:function(e){e.exports=jQuery},54586:function(e,t,n){n.d(t,{VR:function(){return d},_j:function(){return r}});var o=n(70583),i=n(1550),a=n(6864),r=(e=>(e.pageview="obs_page_view",e.articleview="obs_article_page_view",e.articleinteraction="article_interaction",e.game="games",e.audio="audio",e.onboard="onboard",e.previsometro="previsometro",e.toaster="toaster",e.header="header",e.moa="moa",e.menu="menu",e.product_awareness="product_awareness",e.associateaccount="associate_account",e.landing="landing",e.ask_info="ask_info",e.manageAccount="manage_account",e.paywall="paywall",e.studentFaqSlides="student_faq_slides",e.widget="widget",e.interactive="interactive",e.login_flow="login_flow",e.cupon="cupon",e.modal="modal",e.podcast_promo="podcast_promo",e))(r||{});function s(e){new URLSearchParams(location.search).has("analytics")&&console.log(e)}function c(){if("grid"===contextualData.type&&"homepage"===contextualData.context)return"Observador";if("post"===contextualData.type)return u(contextualData.post.smallTitle);const e=document.title;return"grid"===contextualData.type&&"category"===contextualData.context?u(e.replace(/ \u2013 notícias, opinião, rádio, fotos e podcasts$/,"")):u(e.replace(/ \u2013 Observador$/,""))}function l(){const e=location.pathname;return e.length>99?e.slice(0,96)+"...":e}function d(e){var t;s(e),function(e){if(s(e),dataLayer.push(e),function(e){const t=e;return void 0!==t.click_action||void 0!==t.click_location||void 0!==t.click_label}(e)){const t=new CustomEvent("ga4-click-event",{detail:e});document.dispatchEvent(t)}}({event:"obs_page_view",site_section:"",darkmode_status:"light"!==document.body.id,newsletter_subscribed_number:o.subscriptionsController.getInstance().subscriptions.filter((e=>"subscribed"===e.status)).length,adblocker_status:void 0===window.pSUPERFLY,user_id:(0,a.getUserId)(),user_browser_id:localStorage.getItem("qrbid")??"",user_profile:(0,a.getUserType)(),page_title:c(),page_path:l(),action_type:t??i.ActionTypeE.other,cg1:"web",...e})}function u(e){return void 0===e?"":(e.replace(/\u2013/,"-"),e.length>99?e.slice(0,96)+"...":e)}window.sendClickEventGlobal=d},59238:function(e,t,n){n.d(t,{z:function(){return i}});var o=n(69627);function i(){(0,o.Rh)()}},61722:function(e,t,n){n(41669)},64402:function(e,t,n){n(70583),window.globalSettings.obsIps.chimpProxy},69627:function(e,t,n){n.d(t,{Rh:function(){return a},mw:function(){return i}});let o=null;function i(e){o=e}function a(){document.querySelector("#landing-spinner")?.remove();const e=new URLSearchParams(window.location.search).get("show")?.toLowerCase()||null,t=new URLSearchParams(window.location.search).get("product")?.toLowerCase()||null;switch(t&&i(t),e){case"monthly":r("monthly");break;case"quarterly":r("quarterly");break;default:r("yearly")}const n=document.querySelector(".global-spinner"),o=document.querySelector(".page-container"),a=document.querySelectorAll(".switch-b");for(let e=0;e<a.length;e++)a[e].addEventListener("click",(function(e){r(this.dataset.target)}));n.style.display="none",o.style.display="block",t&&window.innerWidth<=940&&function(e,t){if(!t)return;let n="";const o=t.toLowerCase();if("yearly"===o)n="year";else if("monthly"===o)n="month";else{if("quarterly"!==o)return;n="quarter"}const i=document.querySelector("#landing-b"),a=i?.querySelector(`[id="${n}${e}"]`);if(!a)return;const r=a.querySelector('input[type="radio"]'),s=i?.querySelector(`input[name="price"][value="${e}"]`);setTimeout((()=>
1{if(a.scrollIntoView({behavior:"smooth",block:"start"}),r){r.checked=!0;const e=r.closest(".accordion-header");e&&e.click()}else if(s){s.checked=!0;const e=s.closest(".accordion-header");e&&e.click()}}),600)}(t,e)}function r(e){document.querySelectorAll(".switch-b").forEach((e=>{e.classList.remove("active")})),document.querySelectorAll(`.switch-b.${e}`).forEach((e=>e.classList.add("active")));let t="";const n=document.querySelector('#landing-b input[type="radio"][name="price"]:checked');n&&(t=n.value),o&&!t&&(t=o);const i=document.querySelectorAll(".recurrence-wrapper-b");i?.forEach((e=>{e.classList.add("hide")}));const a=document.querySelector(`.recurrence-wrapper-b.${e}`);if(a?.classList.remove("hide"),("monthly"===e||"yearly"===e||"quarterly"===e)&&a){let e=null;if(t&&(e=a.querySelector(`input[type="radio"][name="price"][value="${t}"]`)),!e&&t){const t=a.querySelectorAll('input[type="radio"][name="price"]');t.length>=1&&(e=t[0])}if(e){e.checked=!0;const t=e.closest(".accordion-header");if(t){t.click();const n=e.closest(".accordion-item")?.querySelector(".accordion-panel");n&&t&&(n.classList.add("open"),t.classList.add("active"),document.querySelectorAll("#landing-b .accordion-item").forEach((t=>{if(t!==e.closest(".accordion-item")){const e=t.querySelector(".accordion-panel"),n=t.querySelector(".accordion-header");e&&e.classList.remove("open"),n&&n.classList.remove("active")}})))}}}}},70583:function(e,t,n){n.d(t,{subscriptionsController:function(){return a}}),n(64402),n(61722);var o=n(41476);const i="user-details";class a{static getInstance(){return this.instance||(this.instance=new a),this.instance}constructor(){this.loadFromLocalStorage(),window.addEventListener("storage",(e=>{e.storageArea==localStorage&&e.key===i&&this.loadFromLocalStorage()}))}get email(){return this._email}get subscriptions(){return this._subscriptions}get lastSync(){return this._lastSync}set email(e){if(!(0,o.D)(e))throw 600;e!==this._email&&(this._subscriptions=[],this._lastSync=null),this._email=e,this.syncLocalStorage()}set lastSync(e){this._lastSync=e,this.syncLocalStorage()}set subscriptions(e){this._subscriptions=e,this.syncLocalStorage()}loadFromLocalStorage(){const e=JSON.parse(localStorage.getItem(i));e?(this._email=e.email,this._subscriptions=e.subscriptions,this.lastSync=e.lastSync||null):(this._email="",this._subscriptions=[],this.lastSync=null)}reset(){this._email="",this._subscriptions=[],localStorage.removeItem(i)}subscribe(e){this._subscriptions=this.subscriptions.filter((t=>t.list_id!==e.list_id)),e.status="subscribed",this._subscriptions.push(e),this.syncLocalStorage()}unsubscribe(e){this._subscriptions=this.subscriptions.filter((t=>t.list_id!==e.list_id)),e.status="unsubscribed",this._subscriptions.push(e),this.syncLocalStorage()}syncLocalStorage(){localStorage.setItem(i,JSON.stringify({email:this.email,subscriptions:this.subscriptions,lastSync:this._lastSync}))}}},76026:function(e,t,n){async function o(e,t){return new Promise(((n,o)=>{const i=document.createElement("script");i.src=e,i.id=t,i.defer=!1,i.onload=()=>n(!0),i.onerror=()=>o("Can´t load "+t),document.querySelector("script").insertAdjacentElement("afterend",i)}))}async function i(e,t){const n=await fetch(e),o=await n.text(),i=(new DOMParser).parseFromString(o,"text/html").querySelector("template");i&&document.body.appendChild(i)}async function a(e){const t=`${location.protocol}//${location.host}/wp-content/themes/observador-child/assets/build/`;var n;await Promise.all([i(`${t}html/web-components/${e}.html?version=${contextualData.assetsVersion}`),(n=`${t}css/web-components/${e}.min.css?version=${contextualData.assetsVersion}`,new Promise(((e,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=n,o.onload=()=>e(!0),o.onerror=()=>t("Can´t load link "+n),document.querySelector("head").appendChild(o)}))),o(`${t}js/web-components/${e}/${e}.min.js?version=${contextualData.assetsVersion}`,e)])}n.d(t,{Qf:function(){return a}})},88971:function(e,t,n){n.d(t,{z:function(){return r}});var o=n(24212),i=n(91597),a=n(69627);async function r(){document.querySelectorAll(".js-obs-swg-btn").forEach((e=>{e.style.display="none"})),document.querySelector(".downgrade-disclaimer").classList.remove("hidden");try{const i=await(0,o.I1)(`${o.ae}/api/subscriptions/full`,{method:"GET",headers:{Authorization:`Bearer ${adamastor.getToken()}`}}),r=await i.json();
1if(0===r.subscriptions.length)return void(0,a.Rh)();const s=r.subscriptions[0],c=document.querySelectorAll("obs-stripe-price");for(const o of Array.from(c))o.dataset.priceId!==s?.price_id?(e=s.product_id,t=window.STRIPE_PRODUCTS[o.dataset.productId],window.STRIPE_PRECEDENCE.indexOf(e)<=window.STRIPE_PRECEDENCE.indexOf(t)&&n(s.product_id,window.STRIPE_PRODUCTS[o.dataset.productId],o.dataset.recurrence,s.recurrence)||o.remove()):o.classList.add("current");if(0===document.querySelector(".recurrence-wrapper-b.monthly").children.length&&document.querySelectorAll(".switch-b.monthly").forEach((e=>{e.classList.add("disabled"),e.setAttribute("disabled","disabled")})),0===document.querySelector(".recurrence-wrapper-b.quarterly").children.length&&document.querySelectorAll(".switch-b.quarterly").forEach((e=>{e.classList.add("disabled"),e.setAttribute("disabled","disabled")})),0===document.querySelectorAll("#js-obs-offers obs-stripe-price:not(.current)").length)return void function(){document.querySelectorAll("#js-obs-offers .js-landing-plans-row").forEach((e=>e.remove())),document.querySelector("#js-obs-top-plan-notice")?.style.removeProperty("display"),document.querySelector("#landing-spinner")?.remove();const e=document.querySelector(".page-container");e&&(e.style.display="block")}();(0,a.Rh)()}catch(e){console.log(e),i._.show({title:"Erro",text:"Ocorreu um erro ao verificar a subscrição. Por favor, tente novamente mais tarde.",icon:"dialog-warning"})}var e,t;function n(e,t,n,o){const i=r(o),a=r(n);return!(e===t&&i>=a||i>a||e===t&&i===a)}function r(e){switch(e){case"day":return 1;case"week":return 7;case"month":return 30;case"quarter":return 90;case"year":return 365;default:return 0}}}},91597:function(e,t,n){n.d(t,{_:function(){return a}});var o=n(76026);function i(e,t){return window.dialogManagerState.processing&&!e.force?(window.dialogManagerState.queue.push({type:t,config:e}),!1):(window.dialogManagerState.currentConfig=e,window.dialogManagerState.attachedListeners||(window.dialogManagerState.attachedListeners=!0,this.dialog.querySelector("#obs-dialog-close")?.addEventListener("click",this.hide.bind(this)),this.dialog.querySelector("#obs-dialog-confirm").addEventListener("click",this.confirmCallback.bind(this))),window.dialogManagerState.processing=!0,!0===e?.hideCloseButton?this.dialog.querySelector("#obs-dialog-close").classList.add("hidden"):this.dialog.querySelector("#obs-dialog-close").classList.remove("hidden"),this.dialog.querySelector("#apoio-cliente").
1classList.add("hidden"),e?.spinner?this.dialog.querySelector("#dialog-spinner").classList.remove("hidden"):this.dialog.querySelector("#dialog-spinner").classList.add("hidden"),this.dialog.querySelector("#obs-dialog-confirm").classList.add("hidden"),e?.confirmCallback&&this.dialog.querySelector("#obs-dialog-confirm").classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-confirm").innerHTML=e?.confirmText?e.confirmText:"Confirmar",this.dialog.querySelector("#obs-dialog-text").innerText="",this.dialog.querySelector("#obs-dialog-text").innerHTML="",this.dialog.querySelector("#template-container").classList.add("hidden"),this.dialog.querySelector("#obs-dialog-body").classList.add("hidden"),this.dialog.querySelector("#dialog-icon").classList.add("hidden"),this.dialog.querySelector("#dialog-icon use").setAttribute("href",""),this.dialog.querySelector("#obs-dialog-title").classList.add("hidden"),this.dialog.classList.forEach((e=>this.dialog.classList.remove(e))),e.classes&&this.dialog.classList.add(...e.classes),!0)}const a={DIALOG_GENERIC_ERROR:"Ocorreu um erro, por favor entre em contacto com o Apoio a Cliente",dialog:document.querySelector("#obs-dialog"),confirmCallback(){window.dialogManagerState.currentConfig?.confirmCallback&&window.dialogManagerState.currentConfig.confirmCallback(),this.hide()},init:i,show(e){this.init.call(this,e,"text")&&(this.handleTitle(e),e.text?this.dialog.querySelector("#obs-dialog-text").innerText=e.text:e.html&&(this.dialog.querySelector("#obs-dialog-text").innerHTML=e.html),!0===e?.customerSupport&&this.dialog.querySelector("#apoio-cliente").
1classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-body").classList.remove("hidden"),this.dialog.querySelector("#template-container").classList.add("hidden"),this.dialog.showModal())},hide(){window.dialogManagerState.currentConfig?.closeCallback&&window.dialogManagerState.currentConfig.closeCallback(),window.dialogManagerState.processing=!1;const e=window.dialogManagerState.queue.shift();if(!e)return window.dialogManagerState.currentConfig={},void this.dialog.close();window.dialogManagerState.currentConfig=e.config,"text"!==e.type?"template"!==e.type?"template-load"!==e.type||this.loadAndShowTemplateFiles(e.config):this.showTemplate(e.config):this.show(e.config)},handleTitle(e){e.title&&(this.dialog.querySelector("#obs-dialog-title").classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-title").innerText=e.title),e.icon&&(this.dialog.querySelector("#dialog-icon use").setAttribute("href",`/wp-content/themes/observador-child/assets/build/svg/global.svg?${(new Date).getTime()}#obs-icon-${e.icon}`),this.dialog.querySelector("#dialog-icon").classList.remove("hidden"))},async showTemplate(e){const t=this;if(!i.call(this,e,"template"))return;const{componentTag:n,properties:o,confirmCallback:a}=e;if(!n)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning"}),void console.warn("Component tag can't be empty");const r=document.querySelector(`#${n}-template`);if(!r)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning",force:!0}),void console.warn("Template not found: ",n);const s=r.content.cloneNode(!0),c=s.querySelector(n);if(!c)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning",force:!0}),void console.warn("Component not found in template: ",n);if(o)for(const e in o)c[e]=o[e];c.confirmCallback=function(){a&&a(),t.hide()},this.dialog.querySelector("#template-container").innerHTML="",this.dialog.querySelector("#template-container").appendChild(s);const l=this.dialog.querySelector("#template-container").firstElementChild;!1!==l?.isValid?(this.dialog.querySelector("#obs-dialog-body").classList.add("hidden"),this.dialog.querySelector("#template-container").classList.remove("hidden"),this.handleTitle(e),this.dialog.showModal()):this.hide()},async loadTemplateFiles(e){if(document.querySelector(`#${e}-template`))return!0;try{return await(0,o.Qf)(e),!0}catch(e){return console.error(e),this.show({title:"Erro",text:"Ocorreu um erro ao processar o pedido",icon:"dialog-warning"}),!1}},async loadAndShowTemplateFiles(e){await this.loadTemplateFiles(e.componentTag)&&await this.showTemplate(e)}};window.dialogManager=a,window.dialogManagerState||(window.dialogManagerState={processing:!1,queue:[],currentConfig:{},attachedListeners:!1})}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(16242),n(88971),n(59238),n(69627)}();
2//# sourceMappingURL=article-landing.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.