1"use strict";(self.webpackChunkcomparamais_website=self.webpackChunkcomparamais_website||[]).push([[6954],{3985:function(e,t,o){o.r(t),o.d(t,{Head:function(){return n},default:function(){return l}});var a=o(2269),r=o(7714),i=o(6760),s=o(2892),c=o(4848);const n=e=>{let{data:t}=e;return(0,c.jsx)(r.A,{pageNode:t.page})};function l(e){let{data:{page:t}}=e;return(0,c.jsxs)("main",{className:"Page",id:"LegalPage",children:[(0,c.jsxs)("header",{className:"Header",id:"LegalPageHeader",children:[(0,c.jsx)(i.A,{children:t.label}),(0,c.jsx)("h1",{className:"title",children:t.headerTitle})]}),(0,c.jsx)("section",{className:"Content html",children:(0,c.jsx)(a.j,{html:t.content})}),(0,c.jsx)(s.A,{})]})}},2892:function(e,t,o){o.d(t,{A:function(){return n}});var a=o(1174),r=o(8771),i=o(4848);const s="luz-e-gas",c={"credito-pessoal":{text:"Pedir Agora Crédito Pessoal",wniosker:"credito-pessoal",simValues:{amount:1e4,period:12}},"credito-automovel":{text:"Pedir Agora Crédito Automóvel",wniosker:"credito-pessoal",simValues:{amount:15e3,period:36}},"credito-consolidado":{text:"Poupe 60% nas prestações de créditos",wniosker:"credito-consolidado",simValues:{amount:25e3,period:48}},"credito-habitacao":{text:"Poupe agora no crédito habitação",wniosker:"credito-habitacao",simValues:{amount:25e4,period:240,downpayment:20}},"cartao-de-credito":{text:"Descubra agora o melhor cartão",wniosker:"cartao-de-credito"},"luz-e-gas":{text:"Poupe até 50% nas faturas",wniosker:"luz-e-gas",simValues:{electricity:450,power:6.9,gas:300,tier:2}},"tv-net-voz":{text:"Teste a cobertura e pacotes",wniosker:"tv-net-voz"},telemovel:{text:"Adira ao melhor tarifário móvel",wniosker:"telemovel"}};function n(e){let{categorySlug:t=s}=e;const o=c[t]||c[s];return(0,i.jsxs)("div",{className:"ActionBanner",children:[(0,i.jsx)("p",{children:o.text}),(0,i.jsxs)(a.A,{category:o.wniosker,simValues:o.simValues,children:[(0,i.jsx)(r.A,{i:t})," Simular"]})]})}},1174:function(e,t,o){o.d(t,{A:function(){return s}});var a=o(6540),r=o(3055),i=o(4848);function s(e){let{category:t,simValues:o={},children:s="Simular",forceUrl:c}=e;const n=(0,a.useMemo)((()=>{let e=t;if(c){if(c.startsWith("http"))return c;e=c}const a=new URLSearchParams;try{const e=JSON.parse(localStorage.getItem(r.I));Object.keys(e).length&&Object.keys(e).forEach((t=>a.append(t,e[t])))}catch(i){}if(Object.keys(o).forEach((e=>a.append(e,o[e]))),["credito-pessoal","credito-automovel","credito-consolidado"].includes(t)){return("credito-consolidado"===t?"https://credito-consolidado.comparamais.pt/":"/process")+"?loanType=loan&applicationPrincipal="+o.amount+"&applicationPeriod="+o.period+"&provider="+(o.provider||"")}return"/formulario/"+e+"/?"+a.toString()}),[t,o,c]),l=(0,a.useMemo)((()=>{switch(t){case"credito-pessoal":case"credito-automovel":case"credito-consolidado":case"credito-habitacao":case"cartao-de-credito":return"Submeter";default:return s}}),[t,s,c]);return(0,i.jsx)("a",{href:n,className:"ActionButton action",onClick:function(){try{var e;null===(e=window.dataLayer)||void 0===e||e.push({event:"luz-e-gas"===t?"Button_click":"Button_click_"+t})}catch(o){}},target:"_blank",rel:"noopener noreferrer",children:l})}}}]); 2//# sourceMappingURL=component---src-pages-legal-pages-uri-url-jsx-d0eef009cf85fd350c4e.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.