@credithub/harlan-components 1.120.3 → 1.120.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,11 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
1
5
  import { phoneMask } from '../../utils/number';
2
6
  import React from 'react';
7
+ import styled from 'styled-components';
8
+ import Button from './button';
3
9
  import Modal from './modal';
4
10
  var FIELD_LABELS = {
5
11
  nome: 'Nome',
@@ -23,16 +29,42 @@ var FIELDS_ORDER = [
23
29
  'codigo_cidade',
24
30
  'email'
25
31
  ];
32
+ var CartorioList = styled.dl(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n color: ", ";\n text-align: left;\n margin: 0;\n padding: 0;\n"], ["\n ", ";\n color: ", ";\n text-align: left;\n margin: 0;\n padding: 0;\n"])), function (_a) {
33
+ var theme = _a.theme;
34
+ return theme.typography.body16;
35
+ }, function (_a) {
36
+ var theme = _a.theme;
37
+ return theme.colors.cinzaEscuro;
38
+ });
39
+ var CartorioRow = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-bottom: 8px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n margin-bottom: 8px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
40
+ var CartorioDt = styled.dt(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n margin: 0;\n"], ["\n ", ";\n margin: 0;\n"])), function (_a) {
41
+ var theme = _a.theme;
42
+ return theme.typography.headline14;
43
+ });
44
+ var CartorioDd = styled.dd(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n margin: 2px 0 0 0;\n"], ["\n ", ";\n margin: 2px 0 0 0;\n"])), function (_a) {
45
+ var theme = _a.theme;
46
+ return theme.typography.body16;
47
+ });
48
+ var EmptyMessage = styled.p(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n color: ", ";\n text-align: center;\n margin: 0;\n"], ["\n ", ";\n color: ", ";\n text-align: center;\n margin: 0;\n"])), function (_a) {
49
+ var theme = _a.theme;
50
+ return theme.typography.body16;
51
+ }, function (_a) {
52
+ var theme = _a.theme;
53
+ return theme.colors.cinzaEscuro;
54
+ });
26
55
  var ModalDadosCartorio = function (_a) {
27
56
  var isOpen = _a.isOpen, onClose = _a.onClose, cartorio = _a.cartorio;
28
57
  var isEmpty = !cartorio || Object.keys(cartorio).length === 0;
29
- return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, title: "Dados do cart\u00F3rio", footer: React.createElement("button", { type: "button", onClick: onClose }, "Fechar") }, isEmpty ? (React.createElement("p", null, "Dados do cart\u00F3rio n\u00E3o dispon\u00EDveis.")) : (React.createElement("dl", { style: { textAlign: 'left', margin: 0 } }, FIELDS_ORDER.map(function (key) {
58
+ return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, title: "Dados do cart\u00F3rio", footer: React.createElement(Button, { onClick: onClose }, "Fechar") }, isEmpty ? (React.createElement(EmptyMessage, null, "Dados do cart\u00F3rio n\u00E3o dispon\u00EDveis.")) : (React.createElement(CartorioList, null, FIELDS_ORDER.map(function (key) {
30
59
  var value = cartorio[key];
31
- var raw = value != null && String(value).trim() !== '' ? String(value).trim() : '';
60
+ var raw = value != null && String(value).trim() !== ''
61
+ ? String(value).trim()
62
+ : '';
32
63
  var display = key === 'telefone' && raw ? phoneMask(raw) : raw || '—';
33
- return (React.createElement("div", { key: key, style: { marginBottom: '8px' } },
34
- React.createElement("dt", { style: { fontWeight: 600, margin: 0 } }, FIELD_LABELS[key]),
35
- React.createElement("dd", { style: { margin: '2px 0 0 0' } }, display)));
64
+ return (React.createElement(CartorioRow, { key: key },
65
+ React.createElement(CartorioDt, null, FIELD_LABELS[key]),
66
+ React.createElement(CartorioDd, null, display)));
36
67
  })))));
37
68
  };
38
69
  export default ModalDadosCartorio;
70
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface ModalInstallExtensionProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const ModalInstallExtension: FC<ModalInstallExtensionProps>;
7
+ export default ModalInstallExtension;
@@ -0,0 +1,104 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import React from 'react';
6
+ import styled from 'styled-components';
7
+ import Button from './button';
8
+ import Modal from './modal';
9
+ var EXTENSION_URL = 'https://chromewebstore.google.com/detail/credithub/kbabapbdjbfdigkbmicgjkfgobifkoli';
10
+ var PuzzleIcon = function () { return (React.createElement("svg", { width: "64", height: "64", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" },
11
+ React.createElement("path", { d: "M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 2c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z" }))); };
12
+ var ContentWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n padding: 8px 0;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n padding: 8px 0;\n"])));
13
+ var IconContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 88px;\n height: 88px;\n border-radius: 50%;\n background: linear-gradient(\n 135deg,\n ", "20,\n ", "15\n );\n display: flex;\n align-items: center;\n justify-content: center;\n color: ", ";\n"], ["\n width: 88px;\n height: 88px;\n border-radius: 50%;\n background: linear-gradient(\n 135deg,\n ", "20,\n ", "15\n );\n display: flex;\n align-items: center;\n justify-content: center;\n color: ", ";\n"])), function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.colors.azulClaro;
16
+ }, function (_a) {
17
+ var theme = _a.theme;
18
+ return theme.colors.azulCredithub;
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.colors.azulCredithub;
22
+ });
23
+ var Title = styled.h3(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n color: ", ";\n margin: 0;\n text-align: center;\n"], ["\n ", ";\n color: ", ";\n margin: 0;\n text-align: center;\n"])), function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.typography.headline20;
26
+ }, function (_a) {
27
+ var theme = _a.theme;
28
+ return theme.colors.cinzaEscuro;
29
+ });
30
+ var Description = styled.p(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n color: ", ";\n margin: 0;\n text-align: center;\n line-height: 1.6;\n max-width: 380px;\n"], ["\n ", ";\n color: ", ";\n margin: 0;\n text-align: center;\n line-height: 1.6;\n max-width: 380px;\n"])), function (_a) {
31
+ var theme = _a.theme;
32
+ return theme.typography.body16;
33
+ }, function (_a) {
34
+ var theme = _a.theme;
35
+ return theme.colors.cinzaMedio;
36
+ });
37
+ var FeatureList = styled.ul(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 8px 0 0 0;\n width: 100%;\n"], ["\n list-style: none;\n padding: 0;\n margin: 8px 0 0 0;\n width: 100%;\n"])));
38
+ var FeatureItem = styled.li(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 16px;\n border-radius: 8px;\n background: ", ";\n margin-bottom: 8px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 16px;\n border-radius: 8px;\n background: ", ";\n margin-bottom: 8px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])), function (_a) {
39
+ var theme = _a.theme;
40
+ return theme.colors.cinzaBase;
41
+ });
42
+ var CheckCircle = styled.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: ", ";\n color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n\n svg {\n width: 12px;\n height: 12px;\n }\n"], ["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: ", ";\n color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n\n svg {\n width: 12px;\n height: 12px;\n }\n"])), function (_a) {
43
+ var theme = _a.theme;
44
+ return theme.colors.positivoApoio;
45
+ });
46
+ var FeatureText = styled.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n color: ", ";\n"], ["\n ", ";\n color: ", ";\n"])), function (_a) {
47
+ var theme = _a.theme;
48
+ return theme.typography.body14;
49
+ }, function (_a) {
50
+ var theme = _a.theme;
51
+ return theme.colors.cinzaEscuro;
52
+ });
53
+ var Footer = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n"])));
54
+ var InstallButton = styled(Button)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n && {\n background: ", ";\n width: 100%;\n\n &:hover:not(:disabled) {\n background: ", ";\n }\n }\n"], ["\n && {\n background: ", ";\n width: 100%;\n\n &:hover:not(:disabled) {\n background: ", ";\n }\n }\n"])), function (_a) {
55
+ var theme = _a.theme;
56
+ return theme.colors.azulCredithub;
57
+ }, function (_a) {
58
+ var theme = _a.theme;
59
+ return theme.colors.azulApoio;
60
+ });
61
+ var GhostButton = styled(Button)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n && {\n background-color: transparent;\n color: ", ";\n\n &:hover:not(:disabled) {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n && {\n background-color: transparent;\n color: ", ";\n\n &:hover:not(:disabled) {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), function (_a) {
62
+ var theme = _a.theme;
63
+ return theme.colors.cinzaMedio;
64
+ }, function (_a) {
65
+ var theme = _a.theme;
66
+ return theme.colors.azulCredithub;
67
+ });
68
+ var ModalInstallExtension = function (_a) {
69
+ var isOpen = _a.isOpen, onClose = _a.onClose;
70
+ var handleInstall = function () {
71
+ window.open(EXTENSION_URL, '_blank', 'noopener,noreferrer');
72
+ onClose();
73
+ };
74
+ var footerContent = (React.createElement(Footer, null,
75
+ React.createElement(InstallButton, { onClick: handleInstall }, "Instalar Extens\u00E3o Gr\u00E1tis"),
76
+ React.createElement(GhostButton, { onClick: onClose }, "Agora n\u00E3o")));
77
+ return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, footer: footerContent },
78
+ React.createElement(ContentWrapper, null,
79
+ React.createElement(IconContainer, null,
80
+ React.createElement(PuzzleIcon, null)),
81
+ React.createElement(Title, null, "Desbloqueie mais informa\u00E7\u00F5es"),
82
+ React.createElement(Description, null,
83
+ "Instale a extens\u00E3o ",
84
+ React.createElement("strong", null, "CreditHub"),
85
+ " no seu navegador para acessar dados detalhados de quem protestou."),
86
+ React.createElement(FeatureList, null,
87
+ React.createElement(FeatureItem, null,
88
+ React.createElement(CheckCircle, null,
89
+ React.createElement("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3" },
90
+ React.createElement("polyline", { points: "20 6 9 17 4 12" }))),
91
+ React.createElement(FeatureText, null, "Veja quem protestou")),
92
+ React.createElement(FeatureItem, null,
93
+ React.createElement(CheckCircle, null,
94
+ React.createElement("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3" },
95
+ React.createElement("polyline", { points: "20 6 9 17 4 12" }))),
96
+ React.createElement(FeatureText, null, "Dados atualizados em tempo real")),
97
+ React.createElement(FeatureItem, null,
98
+ React.createElement(CheckCircle, null,
99
+ React.createElement("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3" },
100
+ React.createElement("polyline", { points: "20 6 9 17 4 12" }))),
101
+ React.createElement(FeatureText, null, "100% gratuito"))))));
102
+ };
103
+ export default ModalInstallExtension;
104
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
@@ -5,15 +5,21 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import React, { useCallback, useEffect, useRef, useState } from 'react';
6
6
  import ReactDOM from 'react-dom';
7
7
  import styled, { css } from 'styled-components';
8
- var Overlay = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n\n opacity: 1;\n transition: opacity 0.25s ease;\n ", "\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n\n opacity: 1;\n transition: opacity 0.25s ease;\n ", "\n"])), function (_a) {
8
+ var Overlay = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n\n opacity: 1;\n transition: opacity 0.25s ease;\n ", "\n ", "\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n\n opacity: 1;\n transition: opacity 0.25s ease;\n ", "\n ", "\n"])), function (_a) {
9
+ var opening = _a.opening;
10
+ return opening && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n opacity: 0;\n "], ["\n opacity: 0;\n "])));
11
+ }, function (_a) {
9
12
  var closing = _a.closing;
10
- return closing && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n opacity: 0;\n pointer-events: none;\n "], ["\n opacity: 0;\n pointer-events: none;\n "])));
13
+ return closing && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n opacity: 0;\n pointer-events: none;\n "], ["\n opacity: 0;\n pointer-events: none;\n "])));
11
14
  });
12
- var Container = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n border-radius: 12px;\n max-width: 500px;\n width: 90%;\n padding: 32px;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n position: relative;\n transition: transform 0.25s ease;\n transform: translateY(0);\n\n @media (max-width: 480px) {\n width: calc(100% - 32px);\n padding: 24px 20px;\n }\n"], ["\n background: ", ";\n border-radius: 12px;\n max-width: 500px;\n width: 90%;\n padding: 32px;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n position: relative;\n transition: transform 0.25s ease;\n transform: translateY(0);\n\n @media (max-width: 480px) {\n width: calc(100% - 32px);\n padding: 24px 20px;\n }\n"])), function (_a) {
15
+ var Container = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: ", ";\n border-radius: 12px;\n max-width: 500px;\n width: 90%;\n padding: 32px;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n position: relative;\n transition: transform 0.25s ease, opacity 0.25s ease;\n transform: translateY(0);\n opacity: 1;\n\n ", "\n\n @media (max-width: 480px) {\n width: calc(100% - 32px);\n padding: 24px 20px;\n }\n"], ["\n background: ", ";\n border-radius: 12px;\n max-width: 500px;\n width: 90%;\n padding: 32px;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n position: relative;\n transition: transform 0.25s ease, opacity 0.25s ease;\n transform: translateY(0);\n opacity: 1;\n\n ", "\n\n @media (max-width: 480px) {\n width: calc(100% - 32px);\n padding: 24px 20px;\n }\n"])), function (_a) {
13
16
  var theme = _a.theme;
14
17
  return theme.colors.white;
18
+ }, function (_a) {
19
+ var opening = _a.opening;
20
+ return opening && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n transform: translateY(8px) scale(0.98);\n opacity: 0;\n "], ["\n transform: translateY(8px) scale(0.98);\n opacity: 0;\n "])));
15
21
  });
16
- var CloseButton = styled.button(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n all: unset;\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.5rem;\n cursor: pointer;\n color: ", ";\n border-radius: 50%;\n transition:\n background 0.3s ease,\n color 0.3s ease;\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"], ["\n all: unset;\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.5rem;\n cursor: pointer;\n color: ", ";\n border-radius: 50%;\n transition:\n background 0.3s ease,\n color 0.3s ease;\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_a) {
22
+ var CloseButton = styled.button(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n all: unset;\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.5rem;\n cursor: pointer;\n color: ", ";\n border-radius: 50%;\n transition:\n background 0.3s ease,\n color 0.3s ease;\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"], ["\n all: unset;\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 1.5rem;\n cursor: pointer;\n color: ", ";\n border-radius: 50%;\n transition:\n background 0.3s ease,\n color 0.3s ease;\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_a) {
17
23
  var theme = _a.theme;
18
24
  return theme.colors.cinzaEscuro;
19
25
  }, function (_a) {
@@ -23,24 +29,25 @@ var CloseButton = styled.button(templateObject_4 || (templateObject_4 = __makeTe
23
29
  var theme = _a.theme;
24
30
  return theme.colors.azulCredithub;
25
31
  });
26
- var Title = styled.h2(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n color: ", ";\n text-align: center;\n margin-bottom: 16px;\n"], ["\n ", ";\n color: ", ";\n text-align: center;\n margin-bottom: 16px;\n"])), function (_a) {
32
+ var Title = styled.h2(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n color: ", ";\n text-align: center;\n margin-bottom: 16px;\n"], ["\n ", ";\n color: ", ";\n text-align: center;\n margin-bottom: 16px;\n"])), function (_a) {
27
33
  var theme = _a.theme;
28
34
  return theme.typography.headline20;
29
35
  }, function (_a) {
30
36
  var theme = _a.theme;
31
37
  return theme.colors.azulCredithub;
32
38
  });
33
- var Content = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n color: ", ";\n margin-bottom: 24px;\n text-align: center;\n"], ["\n ", ";\n color: ", ";\n margin-bottom: 24px;\n text-align: center;\n"])), function (_a) {
39
+ var Content = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n color: ", ";\n margin-bottom: 24px;\n text-align: center;\n"], ["\n ", ";\n color: ", ";\n margin-bottom: 24px;\n text-align: center;\n"])), function (_a) {
34
40
  var theme = _a.theme;
35
41
  return theme.typography.body16;
36
42
  }, function (_a) {
37
43
  var theme = _a.theme;
38
44
  return theme.colors.cinzaEscuro;
39
45
  });
40
- var Footer = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 10px;\n"], ["\n display: flex;\n justify-content: center;\n gap: 10px;\n"])));
46
+ var Footer = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 10px;\n"], ["\n display: flex;\n justify-content: center;\n gap: 10px;\n"])));
41
47
  var Modal = function (_a) {
42
48
  var isOpen = _a.isOpen, onClose = _a.onClose, title = _a.title, children = _a.children, footer = _a.footer;
43
49
  var _b = useState(false), closing = _b[0], setClosing = _b[1];
50
+ var _c = useState(false), opening = _c[0], setOpening = _c[1];
44
51
  var firstFocusable = useRef(null);
45
52
  useEffect(function () {
46
53
  if (!isOpen)
@@ -54,6 +61,17 @@ var Modal = function (_a) {
54
61
  window.addEventListener('keydown', handleKeyDown);
55
62
  return function () { return window.removeEventListener('keydown', handleKeyDown); };
56
63
  }, [isOpen]);
64
+ useEffect(function () {
65
+ if (isOpen)
66
+ setClosing(false);
67
+ }, [isOpen]);
68
+ useEffect(function () {
69
+ if (!isOpen)
70
+ return function () { };
71
+ setOpening(true);
72
+ var id = requestAnimationFrame(function () { return setOpening(false); });
73
+ return function () { return cancelAnimationFrame(id); };
74
+ }, [isOpen]);
57
75
  useEffect(function () {
58
76
  if (isOpen) {
59
77
  var overflow_1 = document.body.style.overflow;
@@ -95,8 +113,8 @@ var Modal = function (_a) {
95
113
  var ContainerRef = useRef(null);
96
114
  if (!isOpen && !closing)
97
115
  return null;
98
- var dialog = (React.createElement(Overlay, { closing: closing, onClick: startClose, role: "dialog", "aria-modal": "true", "aria-labelledby": title ? 'modal-title' : undefined },
99
- React.createElement(Container, { ref: ContainerRef, onClick: function (e) { return e.stopPropagation(); }, "data-testid": "modal-container" },
116
+ var dialog = (React.createElement(Overlay, { closing: closing, opening: opening, onClick: startClose, role: "dialog", "aria-modal": "true", "aria-labelledby": title ? 'modal-title' : undefined },
117
+ React.createElement(Container, { opening: opening, ref: ContainerRef, onClick: function (e) { return e.stopPropagation(); }, "data-testid": "modal-container" },
100
118
  React.createElement(CloseButton, { "aria-label": "Fechar", onClick: startClose, ref: firstFocusable }, "\u00D7"),
101
119
  title && (React.createElement(Title, { id: "modal-title", tabIndex: -1 }, title)),
102
120
  React.createElement(Content, null, children),
@@ -106,4 +124,4 @@ var Modal = function (_a) {
106
124
  : dialog;
107
125
  };
108
126
  export default Modal;
109
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
127
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const _default: React.NamedExoticComponent<{
3
3
  tags: (string | RegExp)[];
4
+ extensionInstalled?: boolean;
4
5
  }>;
5
6
  export default _default;
@@ -50,7 +50,7 @@ var PROTESTOS_ERROR_SUMMARY = 'Falha ao consultar protestos, tente novamente mai
50
50
  var clearProtestosCollections = function (state) { return (__assign(__assign({}, (state || {})), { protestosDeCredito: undefined, protestosDeImposto: undefined, protestosGerais: undefined, totalProtestos: undefined, valorTotalProtestos: undefined, nmChaves: undefined, cartorio: undefined })); };
51
51
  var Protestos = function (_a) {
52
52
  var _b, _c, _d, _e;
53
- var tags = _a.tags;
53
+ var tags = _a.tags, extensionInstalled = _a.extensionInstalled;
54
54
  var ctx = useContext(Queries.Protestos);
55
55
  var ctxLiminar = useContext(Queries.Liminar);
56
56
  var _f = useGlobalData(), globalData = _f.data, setData = _f.setData;
@@ -149,15 +149,15 @@ var Protestos = function (_a) {
149
149
  var elements = [
150
150
  {
151
151
  total: protestosDeCredito.length,
152
- element: (React.createElement(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", subtitle: "Protestos de cr\u00E9dito em geral.", registros: protestosDeCredito.length, icon: ProtestosCreditoIcon }, protestosDeCredito.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); } })); })))
152
+ element: (React.createElement(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", subtitle: "Protestos de cr\u00E9dito em geral.", registros: protestosDeCredito.length, icon: ProtestosCreditoIcon }, protestosDeCredito.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); }, extensionInstalled: extensionInstalled, tags: tags })); })))
153
153
  },
154
154
  {
155
155
  total: protestosDeImposto.length,
156
- element: (React.createElement(ProtestosCategory, { title: "Protestos de Imposto", subtitle: "Protestos de impostos federais, estaduais e municipais.", registros: protestosDeImposto.length, icon: ProtestosImpostosIcon }, protestosDeImposto.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); } })); })))
156
+ element: (React.createElement(ProtestosCategory, { title: "Protestos de Imposto", subtitle: "Protestos de impostos federais, estaduais e municipais.", registros: protestosDeImposto.length, icon: ProtestosImpostosIcon }, protestosDeImposto.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); }, extensionInstalled: extensionInstalled, tags: tags })); })))
157
157
  },
158
158
  {
159
159
  total: protestosGerais.length,
160
- element: (React.createElement(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais.length, icon: ProtestosGeraisIcon }, protestosGerais.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); } })); })))
160
+ element: (React.createElement(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais.length, icon: ProtestosGeraisIcon }, protestosGerais.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i, showInstrumento: showInstrumento, onOpenCartorioModal: function () { return setIsModalCartorioOpen(true); }, extensionInstalled: extensionInstalled, tags: tags })); })))
161
161
  }
162
162
  ].sort(function (a, b) { return b.total - a.total; });
163
163
  var children = registros ? (React.createElement(ResultProtestos, null, elements.map(function (_a, i) {
@@ -1,9 +1,11 @@
1
1
  import { Protesto } from '../../utils/parseProtesto';
2
2
  import React from 'react';
3
- export declare const ProtestoItem: React.MemoExoticComponent<({ protesto, showInstrumento, onOpenCartorioModal }: {
3
+ export declare const ProtestoItem: React.MemoExoticComponent<({ protesto, showInstrumento, onOpenCartorioModal, extensionInstalled, tags }: {
4
4
  protesto: Protesto;
5
5
  showInstrumento: boolean;
6
6
  onOpenCartorioModal?: () => void;
7
+ extensionInstalled?: boolean;
8
+ tags?: (string | RegExp)[];
7
9
  }) => React.JSX.Element>;
8
10
  export declare const Instrumento: ({ nm_chave, cpfCnpj }: {
9
11
  nm_chave?: string;
@@ -42,16 +42,19 @@ import { useGlobalData } from '../../contexts/globalDataContext';
42
42
  import { formatMoney } from '../../utils/number';
43
43
  import { isProtestoSPByNmChave } from '../../utils/protestoUf';
44
44
  import React, { memo, useCallback, useContext, useEffect, useMemo, useState } from 'react';
45
+ import styled from 'styled-components';
45
46
  import AddItemField from '../common/addItem';
46
47
  import Button from '../common/button';
48
+ import ModalInstallExtension from '../common/ModalInstallExtension';
47
49
  import ModalInstrumentoProtestoSP from '../common/modalInstrumentoProtestoSP';
48
50
  import { ResultContent } from '../interface/result';
49
- import styled from 'styled-components';
50
51
  import { WebService } from '../webservice';
51
52
  import InstrumentoDiscoveryConfirmModal from './instrumento/InstrumentoDiscoveryConfirmModal';
52
53
  import InstrumentoEmailStatusModal from './instrumento/InstrumentoEmailStatusModal';
53
54
  import { discoverPDFProtesto } from './instrumento/ieptbInstrumento';
54
55
  import { useInstrumento } from './instrumento/useInstrumento';
56
+ import { hasOneOfTags } from '../../utils/tags';
57
+ var PREMIUM_TAGS = ['prata', 'ouro', 'diamante', 'prata-new', 'ouro-new', 'diamante-new'];
55
58
  // Throttling mechanism for API requests
56
59
  var activeRequests = 0;
57
60
  var MAX_CONCURRENT_REQUESTS = 2;
@@ -136,12 +139,36 @@ var AIIndicator = function () { return (React.createElement("span", { title: "In
136
139
  * em produção com estilos globais do app host (button { min-width, margin, flex }).
137
140
  * Layout explícito (width: fit-content, display: inline-block) evita deslocamento.
138
141
  */
142
+ /** Mesmo padrão visual do link "Quem Protestou": azul, sublinhado, abre modal (dados do cartório). */
139
143
  var UfCellButton = styled.button.attrs({
140
144
  type: 'button',
141
- title: 'Ver dados do cartório'
142
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n all: unset;\n box-sizing: border-box;\n display: inline-block;\n width: fit-content;\n min-width: 0;\n margin: 0;\n padding: 0;\n background: none;\n border: none;\n cursor: pointer;\n text-decoration: underline;\n color: inherit;\n font: inherit;\n"], ["\n all: unset;\n box-sizing: border-box;\n display: inline-block;\n width: fit-content;\n min-width: 0;\n margin: 0;\n padding: 0;\n background: none;\n border: none;\n cursor: pointer;\n text-decoration: underline;\n color: inherit;\n font: inherit;\n"])));
145
+ title: 'Ver dados do cartório',
146
+ 'data-harlan': 'uf-cartorio-button'
147
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n all: unset;\n box-sizing: border-box;\n display: inline-block;\n width: fit-content;\n min-width: 0;\n margin: 0;\n padding: 0;\n background: none;\n border: none;\n cursor: pointer;\n color: ", ";\n text-decoration: underline;\n vertical-align: top;\n line-height: ", ";\n ", ";\n transition: opacity 0.2s ease;\n\n &:hover {\n opacity: 0.8;\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"], ["\n all: unset;\n box-sizing: border-box;\n display: inline-block;\n width: fit-content;\n min-width: 0;\n margin: 0;\n padding: 0;\n background: none;\n border: none;\n cursor: pointer;\n color: ", ";\n text-decoration: underline;\n vertical-align: top;\n line-height: ", ";\n ", ";\n transition: opacity 0.2s ease;\n\n &:hover {\n opacity: 0.8;\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"])), function (_a) {
148
+ var theme = _a.theme;
149
+ return theme.colors.azulCredithub;
150
+ }, function (_a) {
151
+ var theme = _a.theme;
152
+ return theme.typography.headline16.lineHeight;
153
+ }, function (_a) {
154
+ var theme = _a.theme;
155
+ return theme.typography.headline16;
156
+ }, function (_a) {
157
+ var theme = _a.theme;
158
+ return theme.colors.azulCredithub;
159
+ });
143
160
  /** Evita que a célula UF estique e desloque o conteúdo em produção (conflito com estilos do host). */
144
- var UfCellValueWrapper = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-block;\n width: fit-content;\n min-width: 0;\n"], ["\n display: inline-block;\n width: fit-content;\n min-width: 0;\n"])));
161
+ var UfCellValueWrapper = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-block;\n width: fit-content;\n min-width: 0;\n vertical-align: top;\n line-height: ", ";\n"], ["\n display: inline-block;\n width: fit-content;\n min-width: 0;\n vertical-align: top;\n line-height: ", ";\n"])), function (_a) {
162
+ var theme = _a.theme;
163
+ return theme.typography.headline16.lineHeight;
164
+ });
165
+ var QuemProtestouClickable = styled.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n all: unset;\n cursor: pointer;\n color: ", ";\n text-decoration: underline;\n transition: opacity 0.2s ease;\n\n &:hover {\n opacity: 0.8;\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"], ["\n all: unset;\n cursor: pointer;\n color: ", ";\n text-decoration: underline;\n transition: opacity 0.2s ease;\n\n &:hover {\n opacity: 0.8;\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"])), function (_a) {
166
+ var theme = _a.theme;
167
+ return theme.colors.azulCredithub;
168
+ }, function (_a) {
169
+ var theme = _a.theme;
170
+ return theme.colors.azulCredithub;
171
+ });
145
172
  var UfCell = function (_a) {
146
173
  var uf = _a.uf, hasCartorio = _a.hasCartorio, onOpenCartorio = _a.onOpenCartorio;
147
174
  var display = uf && uf.trim() !== '' ? uf : '—';
@@ -150,16 +177,18 @@ var UfCell = function (_a) {
150
177
  };
151
178
  export var ProtestoItem = memo(function (_a) {
152
179
  var _b, _c, _d;
153
- var protesto = _a.protesto, showInstrumento = _a.showInstrumento, onOpenCartorioModal = _a.onOpenCartorioModal;
180
+ var protesto = _a.protesto, showInstrumento = _a.showInstrumento, onOpenCartorioModal = _a.onOpenCartorioModal, extensionInstalled = _a.extensionInstalled, _e = _a.tags, tags = _e === void 0 ? [] : _e;
181
+ var hasPremiumAccess = hasOneOfTags(tags, PREMIUM_TAGS);
154
182
  var client = useContext(WebService);
155
- var _e = useGlobalData(), setData = _e.setData, globalData = _e.data;
183
+ var _f = useGlobalData(), setData = _f.setData, globalData = _f.data;
156
184
  var cartorio = (_b = globalData === null || globalData === void 0 ? void 0 : globalData.protestosData) === null || _b === void 0 ? void 0 : _b.cartorio;
157
185
  var iaOverrides = ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.protestosData) === null || _c === void 0 ? void 0 : _c.iaOverrides) || {};
158
186
  var refreshToken = ((_d = globalData === null || globalData === void 0 ? void 0 : globalData.protestosData) === null || _d === void 0 ? void 0 : _d.refreshToken) || 0;
159
- var _f = useState(null), quemApresentou = _f[0], setQuemApresentou = _f[1];
160
- var _g = useState(false), loading = _g[0], setLoading = _g[1];
161
- var _h = useState(false), queued = _h[0], setQueued = _h[1];
162
- var _j = useState(false), isAIData = _j[0], setIsAIData = _j[1];
187
+ var _g = useState(null), quemApresentou = _g[0], setQuemApresentou = _g[1];
188
+ var _h = useState(false), loading = _h[0], setLoading = _h[1];
189
+ var _j = useState(false), queued = _j[0], setQueued = _j[1];
190
+ var _k = useState(false), isAIData = _k[0], setIsAIData = _k[1];
191
+ var _l = useState(false), isExtensionModalOpen = _l[0], setIsExtensionModalOpen = _l[1];
163
192
  var documento = protesto.cpfCnpj;
164
193
  var nm_chave = protesto.nm_chave;
165
194
  var formatBooleanField = function (value) {
@@ -232,14 +261,24 @@ export var ProtestoItem = memo(function (_a) {
232
261
  return React.createElement(ThreeDotsLoader, null);
233
262
  return quemApresentou || '';
234
263
  };
235
- return (React.createElement(ResultContent, { print: "repeat(6, 1fr)", desktop: "repeat(7, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)" },
236
- React.createElement(AddItemField, { name: "Quem Protestou", value: getQuemProtestouDisplay() }),
237
- React.createElement(AddItemField, { name: "Atrav\u00E9s De", value: protesto.nomeApresentante }),
238
- React.createElement(AddItemField, { name: "Data Do Protesto", value: protesto.dataProtesto }),
239
- React.createElement(AddItemField, { name: "Possui Anu\u00EAncia / Protesto Pago", value: formatBooleanField(String(protesto.temAnuencia)) }),
240
- React.createElement(AddItemField, { name: "Valor Do Protesto", value: formatMoney(protesto.valor) }),
241
- React.createElement(AddItemField, { name: "Custas de Cart\u00F3rio para Baixa", value: protesto.vl_custas ? formatMoney(protesto.vl_custas) : '—' }),
242
- showInstrumento && React.createElement(Instrumento, { nm_chave: nm_chave, cpfCnpj: documento })));
264
+ var handleQuemProtestouClick = function () {
265
+ if (extensionInstalled === false) {
266
+ setIsExtensionModalOpen(true);
267
+ }
268
+ };
269
+ var shouldShowExtensionPrompt = hasPremiumAccess && extensionInstalled === false;
270
+ var quemProtestouValue = shouldShowExtensionPrompt ? (React.createElement(QuemProtestouClickable, { onClick: handleQuemProtestouClick }, getQuemProtestouDisplay() || 'Clique para ver')) : (getQuemProtestouDisplay());
271
+ return (React.createElement(React.Fragment, null,
272
+ React.createElement(ResultContent, { print: "repeat(8, 1fr)", desktop: "repeat(8, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)" },
273
+ React.createElement(AddItemField, { name: "Quem Protestou", value: quemProtestouValue }),
274
+ React.createElement(AddItemField, { name: "Atrav\u00E9s De", value: protesto.nomeApresentante }),
275
+ React.createElement(AddItemField, { name: "Data Do Protesto", value: protesto.dataProtesto }),
276
+ React.createElement(AddItemField, { name: "Possui Anu\u00EAncia / Protesto Pago", value: formatBooleanField(String(protesto.temAnuencia)) }),
277
+ React.createElement(AddItemField, { name: "Valor Do Protesto", value: formatMoney(protesto.valor) }),
278
+ React.createElement(AddItemField, { name: "Custas de Cart\u00F3rio para Baixa", value: protesto.vl_custas ? formatMoney(protesto.vl_custas) : '—' }),
279
+ React.createElement(AddItemField, { name: "UF", value: React.createElement(UfCell, { uf: cartorio === null || cartorio === void 0 ? void 0 : cartorio.uf, hasCartorio: Boolean(cartorio), onOpenCartorio: onOpenCartorioModal }) }),
280
+ showInstrumento && (React.createElement(Instrumento, { nm_chave: nm_chave, cpfCnpj: documento }))),
281
+ React.createElement(ModalInstallExtension, { isOpen: isExtensionModalOpen, onClose: function () { return setIsExtensionModalOpen(false); } })));
243
282
  });
244
283
  export var Instrumento = function (_a) {
245
284
  var nm_chave = _a.nm_chave, cpfCnpj = _a.cpfCnpj;
@@ -308,7 +347,9 @@ export var Instrumento = function (_a) {
308
347
  };
309
348
  var getButtonLabel = function () {
310
349
  if (errorKind === 'missing-key')
311
- return isMissingKeyLoading ? 'Solicitar instrumento' : 'Instrumento não localizado';
350
+ return isMissingKeyLoading
351
+ ? 'Solicitar instrumento'
352
+ : 'Instrumento não localizado';
312
353
  if (errorKind === 'invalid-key' || errorKind === 'missing-doc')
313
354
  return 'Instrumento Indisponível';
314
355
  if (!isProtestoSPByNmChave(normalizedKey))
@@ -349,7 +390,9 @@ export var Instrumento = function (_a) {
349
390
  byteNumbers[i] = byteCharacters.charCodeAt(i);
350
391
  }
351
392
  byteArray = new Uint8Array(byteNumbers);
352
- blob = new Blob([byteArray], { type: 'application/pdf' });
393
+ blob = new Blob([byteArray], {
394
+ type: 'application/pdf'
395
+ });
353
396
  url = URL.createObjectURL(blob);
354
397
  link = document.createElement('a');
355
398
  link.href = url;
@@ -403,4 +446,4 @@ export var Instrumento = function (_a) {
403
446
  });
404
447
  }); } })));
405
448
  };
406
- var templateObject_1, templateObject_2;
449
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -25,6 +25,7 @@ type ConsultaSimplesProps = {
25
25
  printMode?: boolean;
26
26
  isFinancial?: boolean;
27
27
  tags?: (string | RegExp)[];
28
+ extensionInstalled?: boolean;
28
29
  };
29
30
  declare const ConsultaSimples: React.FC<ConsultaSimplesProps>;
30
31
  export default ConsultaSimples;
@@ -79,7 +79,7 @@ var EditalQueryWrapper = function (_a) {
79
79
  };
80
80
  var ConsultaSimples = function (_a) {
81
81
  var _b, _c, _d;
82
- var _documento = _a.documento, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico, onClickQSA = _a.onClickQSA, onClickPrint = _a.onClickPrint, apiKey = _a.apiKey, queryParams = _a.queryParams, onClose = _a.onClose, hasCredits = _a.hasCredits, _e = _a.initRefinBoaVista, initRefinBoaVista = _e === void 0 ? false : _e, _f = _a.initRefinSerasa, initRefinSerasa = _f === void 0 ? false : _f, _g = _a.initVeiculos, initVeiculos = _g === void 0 ? false : _g, _h = _a.printMode, printMode = _h === void 0 ? false : _h, _j = _a.isFinancial, isFinancial = _j === void 0 ? false : _j, _k = _a.tags, tags = _k === void 0 ? [] : _k, posthog = _a.posthog;
82
+ var _documento = _a.documento, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico, onClickQSA = _a.onClickQSA, onClickPrint = _a.onClickPrint, apiKey = _a.apiKey, queryParams = _a.queryParams, onClose = _a.onClose, hasCredits = _a.hasCredits, _e = _a.initRefinBoaVista, initRefinBoaVista = _e === void 0 ? false : _e, _f = _a.initRefinSerasa, initRefinSerasa = _f === void 0 ? false : _f, _g = _a.initVeiculos, initVeiculos = _g === void 0 ? false : _g, _h = _a.printMode, printMode = _h === void 0 ? false : _h, _j = _a.isFinancial, isFinancial = _j === void 0 ? false : _j, _k = _a.tags, tags = _k === void 0 ? [] : _k, posthog = _a.posthog, extensionInstalled = _a.extensionInstalled;
83
83
  var documento = _documento.replace(/\D+/g, '');
84
84
  // extrai CTIME (case-insensitive) dos urlData para repassar como prop
85
85
  var ctimeProp = (_c = (_b = queryParams === null || queryParams === void 0 ? void 0 : queryParams.urlData) === null || _b === void 0 ? void 0 : _b.CTIME) !== null && _c !== void 0 ? _c : (_d = queryParams === null || queryParams === void 0 ? void 0 : queryParams.urlData) === null || _d === void 0 ? void 0 : _d.ctime;
@@ -122,7 +122,7 @@ var ConsultaSimples = function (_a) {
122
122
  React.createElement(ConsultaImoveis, { documento: documento }),
123
123
  React.createElement(Veiculos, { documento: documento })),
124
124
  React.createElement(ProtestosSP, null),
125
- React.createElement(Protestos, { tags: tags }),
125
+ React.createElement(Protestos, { tags: tags, extensionInstalled: extensionInstalled }),
126
126
  React.createElement(Edital, { isFinancial: isFinancial, tags: tags }),
127
127
  React.createElement(ProtestosPagosBaixados, { isFinancial: isFinancial }),
128
128
  React.createElement(CCF, null),