plataforma-fundacao-componentes 2.23.7 → 2.23.10
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.
- package/dist/assets/icons/PhonePlusIcon.d.ts +3 -0
- package/dist/components/assembleiaPauta/AssembleiaPauta.d.ts +3 -3
- package/dist/components/button/Button.d.ts +3 -4
- package/dist/components/button/Button.stories.d.ts +1 -0
- package/dist/components/calendar/Calendar.d.ts +24 -0
- package/dist/components/calendar/Calendar.stories.d.ts +17 -0
- package/dist/components/calendar/components/calendarChip/CalendarChip.d.ts +15 -0
- package/dist/components/calendar/components/calendarDays/CalendarDays.d.ts +22 -0
- package/dist/components/calendar/components/calendarHeader/CalendarHeader.d.ts +8 -0
- package/dist/components/calendar/components/calendarMonthDay/CalendarMonthDay.d.ts +20 -0
- package/dist/components/calendar/components/calendarWeekDay/CalendarWeekDay.d.ts +2 -0
- package/dist/components/calendarEvent/CalendarEvent.d.ts +77 -0
- package/dist/components/calendarEvent/CalendarEvent.stories.d.ts +26 -0
- package/dist/components/col/Col.d.ts +1 -0
- package/dist/components/datePicker/DatePicker.d.ts +2 -5
- package/dist/components/datePicker/components/datePickerCalendar/DatePickerCalendar.d.ts +1 -1
- package/dist/components/dropdownItem/DropdownItem.d.ts +1 -0
- package/dist/components/dropdownSelector/DropdownSelector.d.ts +16 -0
- package/dist/components/dropdownSelector/DropdownSelector.stories.d.ts +8 -0
- package/dist/components/fileUpload/FileUpload.d.ts +3 -3
- package/dist/components/floatingPanel/FloatingPanel.d.ts +17 -0
- package/dist/components/floatingPanel/FloatingPanel.stories.d.ts +6 -0
- package/dist/components/hourEvents/HourEvents.d.ts +24 -0
- package/dist/components/hourEvents/HourEvents.stories.d.ts +24 -0
- package/dist/components/inlineMonthPicker/InlineMonthPicker.d.ts +16 -0
- package/dist/components/inlineMonthPicker/InlineMonthPicker.stories.d.ts +7 -0
- package/dist/components/input/Input.d.ts +0 -1
- package/dist/components/modal/Modal.d.ts +3 -3
- package/dist/components/modal/ModalMask.d.ts +3 -3
- package/dist/components/modalManager/ModalManager.d.ts +5 -1
- package/dist/components/modalManager/ModalManager.stories.d.ts +2 -1
- package/dist/components/scrollArrowOverflow/ScrollArrowOverflow.d.ts +13 -0
- package/dist/components/scrollArrowOverflow/ScrollArrowOverflow.stories.d.ts +16 -0
- package/dist/components/select/Select.d.ts +7 -4
- package/dist/components/select/Select.stories.d.ts +1 -0
- package/dist/index.css +1535 -10415
- package/dist/index.d.ts +11 -4
- package/dist/index.js +1176 -433
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1171 -435
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/Notification.d.ts +2 -1
- package/dist/utils/CalendarUtils.d.ts +44 -0
- package/dist/utils/HTMLutils.d.ts +4 -0
- package/dist/utils/MoedaUtils.d.ts +1 -1
- package/dist/utils/ParsingUtils.d.ts +3 -2
- package/package.json +4 -3
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useEffect,
|
|
1
|
+
import React, { useMemo, useState, useEffect, Component, memo, useCallback, useLayoutEffect, useRef, forwardRef, useImperativeHandle, createRef, Fragment as Fragment$1 } from 'react';
|
|
2
2
|
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { Chart } from 'chart.js';
|
|
@@ -119,6 +119,13 @@ var getMergedClassNames = function getMergedClassNames(arr) {
|
|
|
119
119
|
return Boolean(el);
|
|
120
120
|
}).join(' ');
|
|
121
121
|
};
|
|
122
|
+
var useMergedClassNames = function useMergedClassNames(arr) {
|
|
123
|
+
return useMemo(function () {
|
|
124
|
+
return arr.filter(function (el) {
|
|
125
|
+
return Boolean(el);
|
|
126
|
+
}).join(' ');
|
|
127
|
+
}, [arr]);
|
|
128
|
+
};
|
|
122
129
|
var getUniqueKey = function getUniqueKey() {
|
|
123
130
|
var atual = window.sessionStorage.getItem('chaveAtual') ? parseInt(window.sessionStorage.getItem('chaveAtual') || '1') : 1;
|
|
124
131
|
window.sessionStorage.setItem('chaveAtual', String(atual + 1));
|
|
@@ -130,6 +137,12 @@ var isMobile = function isMobile() {
|
|
|
130
137
|
return navigator.userAgent.match(toMatchItem);
|
|
131
138
|
});
|
|
132
139
|
};
|
|
140
|
+
var isiPhone = function isiPhone() {
|
|
141
|
+
var toMatch = [/iPhone/i, /iPad/i, /iPod/i];
|
|
142
|
+
return toMatch.some(function (toMatchItem) {
|
|
143
|
+
return navigator.userAgent.match(toMatchItem);
|
|
144
|
+
});
|
|
145
|
+
};
|
|
133
146
|
var Interval = /*#__PURE__*/function () {
|
|
134
147
|
function Interval(callback, delay) {
|
|
135
148
|
var _this = this;
|
|
@@ -179,6 +192,15 @@ var Interval = /*#__PURE__*/function () {
|
|
|
179
192
|
|
|
180
193
|
return Interval;
|
|
181
194
|
}();
|
|
195
|
+
var getParents = function getParents(anchor) {
|
|
196
|
+
if (!anchor) return [];
|
|
197
|
+
|
|
198
|
+
if (anchor.id === 'root' || !(anchor !== null && anchor !== void 0 && anchor.parentElement)) {
|
|
199
|
+
return [anchor];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return [anchor].concat(getParents(anchor.parentElement));
|
|
203
|
+
};
|
|
182
204
|
|
|
183
205
|
var rootClassName$7 = 'percent-loader-icon';
|
|
184
206
|
var PercentLoaderIcon = function PercentLoaderIcon(props) {
|
|
@@ -220,7 +242,7 @@ var PercentLoaderIcon = function PercentLoaderIcon(props) {
|
|
|
220
242
|
};
|
|
221
243
|
|
|
222
244
|
var rootClassName$8 = 'icon-component';
|
|
223
|
-
var
|
|
245
|
+
var AddAssemblyIcon = function AddAssemblyIcon() {
|
|
224
246
|
return React.createElement("svg", {
|
|
225
247
|
className: rootClassName$8,
|
|
226
248
|
viewBox: '0 0 24 24',
|
|
@@ -229,30 +251,30 @@ var AddIcon = function AddIcon() {
|
|
|
229
251
|
}, React.createElement("path", {
|
|
230
252
|
fillRule: 'evenodd',
|
|
231
253
|
clipRule: 'evenodd',
|
|
232
|
-
d: '
|
|
254
|
+
d: 'M0.463918 20.9999C0.207703 20.9999 0 20.792 0 20.5354C0 17.6267 1.53437 15.0722 3.84016 13.6437C4.96151 12.9489 6.26531 12.5205 7.66381 12.447C7.73012 12.4289 7.77321 12.4207 7.84485 12.4207L7.9443 12.4207C7.94519 12.4205 7.94913 12.42 7.9591 12.4187L7.96752 12.4174C8.03187 12.4078 8.06669 12.404 8.12134 12.404C8.17615 12.404 8.2116 12.4078 8.27571 12.4174L8.29079 12.4196C8.29552 12.4202 8.29809 12.4205 8.29895 12.4207H12.6557C13.2254 12.4207 13.7125 12.0091 13.8085 11.4452L15.086 4.11904C15.2121 3.38796 15.9067 2.89678 16.6008 3.01852L17.4424 3.0994C18.1735 3.22566 18.6641 3.92017 18.5398 4.63962L16.2128 20.6025C16.1758 20.8564 15.9402 21.0321 15.6867 20.9951C15.4332 20.958 15.2577 20.7222 15.2947 20.4684L17.6236 4.49343C17.6625 4.26815 17.5112 4.054 17.3199 4.01958L16.4781 3.93865C16.2538 3.89977 16.0392 4.05153 16.0001 4.27803L14.7228 11.6032C14.5512 12.6116 13.6777 13.3497 12.6557 13.3497L8.27969 13.3496C8.23835 13.3489 8.20769 13.3459 8.16036 13.3394L8.13942 13.3363C8.13651 13.3359 8.13395 13.3355 8.13172 13.3352C8.12697 13.3345 8.1237 13.334 8.12168 13.3336C8.11961 13.334 8.11613 13.3345 8.11099 13.3353L8.10435 13.3363L8.09438 13.3377C8.04522 13.345 8.00951 13.3488 7.95619 13.3497H7.88515C7.86235 13.3558 7.84684 13.3581 7.75628 13.3714C3.93506 13.5671 0.928288 16.7045 0.928288 20.5354C0.928288 20.792 0.463918 20.9999 0.463918 20.9999ZM8.12172 11.3C10.2577 11.3 11.9889 9.56666 11.9889 7.42798C11.9889 5.2893 10.2577 3.55593 8.12172 3.55593C5.98634 3.55593 4.2545 5.2896 4.2545 7.42798C4.2545 9.56636 5.98634 11.3 8.12172 11.3ZM8.12171 10.371C6.49872 10.371 5.18233 9.05318 5.18233 7.42791C5.18233 5.80264 6.49872 4.48485 8.12171 4.48485C9.74529 4.48485 11.0611 5.8023 11.0611 7.42791C11.0611 9.05352 9.74529 10.371 8.12171 10.371Z'
|
|
255
|
+
}), React.createElement("circle", {
|
|
256
|
+
cx: '18.5',
|
|
257
|
+
cy: '16.5',
|
|
258
|
+
r: '4.5',
|
|
259
|
+
fill: '#FEFEFE'
|
|
260
|
+
}), React.createElement("path", {
|
|
261
|
+
fillRule: 'evenodd',
|
|
262
|
+
clipRule: 'evenodd',
|
|
263
|
+
d: 'M23 16.5C23 14.0142 20.9858 12 18.5 12C16.0142 12 14 14.0142 14 16.5C14 17.2646 14.191 18.0017 14.5504 18.6579C14.8273 19.1632 15.1979 19.6108 15.6405 19.9747C16.44 20.6335 17.4421 21 18.5 21C20.9858 21 23 18.9858 23 16.5ZM14.5625 16.5C14.5625 14.3249 16.3249 12.5625 18.5 12.5625C20.6751 12.5625 22.4375 14.3249 22.4375 16.5C22.4375 18.6751 20.6751 20.4375 18.5 20.4375C17.5738 20.4375 16.6979 20.1172 15.998 19.5404C15.6106 19.2219 15.2862 18.83 15.0437 18.3876C14.7294 17.8138 14.5625 17.1695 14.5625 16.5ZM18.2188 16.2188H16.1795C16.0242 16.2188 15.8983 16.3447 15.8983 16.5C15.8983 16.6553 16.0242 16.7813 16.1795 16.7813H18.2188V18.8205C18.2188 18.9758 18.3447 19.1017 18.5 19.1017C18.6553 19.1017 18.7813 18.9758 18.7813 18.8205V16.7813H20.8205C20.9758 16.7813 21.1017 16.6553 21.1017 16.5C21.1017 16.3447 20.9758 16.2188 20.8205 16.2188H18.7813V14.1795C18.7813 14.0242 18.6553 13.8983 18.5 13.8983C18.3447 13.8983 18.2188 14.0242 18.2188 14.1795V16.2188Z'
|
|
233
264
|
}));
|
|
234
265
|
};
|
|
235
266
|
|
|
236
267
|
var rootClassName$9 = 'icon-component';
|
|
237
|
-
var
|
|
268
|
+
var AddIcon = function AddIcon() {
|
|
238
269
|
return React.createElement("svg", {
|
|
239
270
|
className: rootClassName$9,
|
|
240
271
|
viewBox: '0 0 24 24',
|
|
241
272
|
fill: 'currentColor',
|
|
242
273
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
243
274
|
}, React.createElement("path", {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
d: '
|
|
247
|
-
}), React.createElement("circle", {
|
|
248
|
-
cx: '18.5',
|
|
249
|
-
cy: '16.5',
|
|
250
|
-
r: '4.5',
|
|
251
|
-
fill: '#FEFEFE'
|
|
252
|
-
}), React.createElement("path", {
|
|
253
|
-
"fill-rule": 'evenodd',
|
|
254
|
-
"clip-rule": 'evenodd',
|
|
255
|
-
d: 'M23 16.5C23 14.0142 20.9858 12 18.5 12C16.0142 12 14 14.0142 14 16.5C14 17.2646 14.191 18.0017 14.5504 18.6579C14.8273 19.1632 15.1979 19.6108 15.6405 19.9747C16.44 20.6335 17.4421 21 18.5 21C20.9858 21 23 18.9858 23 16.5ZM14.5625 16.5C14.5625 14.3249 16.3249 12.5625 18.5 12.5625C20.6751 12.5625 22.4375 14.3249 22.4375 16.5C22.4375 18.6751 20.6751 20.4375 18.5 20.4375C17.5738 20.4375 16.6979 20.1172 15.998 19.5404C15.6106 19.2219 15.2862 18.83 15.0437 18.3876C14.7294 17.8138 14.5625 17.1695 14.5625 16.5ZM18.2188 16.2188H16.1795C16.0242 16.2188 15.8983 16.3447 15.8983 16.5C15.8983 16.6553 16.0242 16.7813 16.1795 16.7813H18.2188V18.8205C18.2188 18.9758 18.3447 19.1017 18.5 19.1017C18.6553 19.1017 18.7813 18.9758 18.7813 18.8205V16.7813H20.8205C20.9758 16.7813 21.1017 16.6553 21.1017 16.5C21.1017 16.3447 20.9758 16.2188 20.8205 16.2188H18.7813V14.1795C18.7813 14.0242 18.6553 13.8983 18.5 13.8983C18.3447 13.8983 18.2188 14.0242 18.2188 14.1795V16.2188Z'
|
|
275
|
+
fillRule: 'evenodd',
|
|
276
|
+
clipRule: 'evenodd',
|
|
277
|
+
d: 'M24 12C24 5.37129 18.6287 0 12 0C5.37129 0 0 5.37129 0 12C0 14.0388 0.509249 16.0045 1.46771 17.7543C2.20618 19.1018 3.1944 20.2953 4.37466 21.2658C6.50667 23.0227 9.17895 24 12 24C18.6287 24 24 18.6287 24 12ZM1.5 12C1.5 6.19971 6.19971 1.5 12 1.5C17.8003 1.5 22.5 6.19971 22.5 12C22.5 17.8003 17.8003 22.5 12 22.5C9.53024 22.5 7.19438 21.6458 5.32797 20.1077C4.29496 19.2583 3.42979 18.2134 2.7832 17.0336C1.9451 15.5035 1.5 13.7854 1.5 12ZM11.25 11.25H5.81212C5.3979 11.25 5.06212 11.5858 5.06212 12C5.06212 12.4142 5.3979 12.75 5.81212 12.75H11.25L11.25 18.1879C11.25 18.6021 11.5858 18.9379 12 18.9379C12.4142 18.9379 12.75 18.6021 12.75 18.1879L12.75 12.75L18.1879 12.75C18.6021 12.75 18.9379 12.4142 18.9379 12C18.9379 11.5858 18.6021 11.25 18.1879 11.25L12.75 11.25V5.81212C12.75 5.3979 12.4142 5.06212 12 5.06212C11.5858 5.06212 11.25 5.3979 11.25 5.81212V11.25Z'
|
|
256
278
|
}));
|
|
257
279
|
};
|
|
258
280
|
|
|
@@ -261,17 +283,27 @@ var CircleArrowRight = function CircleArrowRight() {
|
|
|
261
283
|
return React.createElement("svg", {
|
|
262
284
|
className: rootClassName$a,
|
|
263
285
|
viewBox: '0 0 24 24',
|
|
264
|
-
fill: 'currentColor',
|
|
265
286
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
287
|
+
}, React.createElement("g", {
|
|
288
|
+
clipPath: 'url(#clip0_4539_71255)'
|
|
266
289
|
}, React.createElement("path", {
|
|
267
290
|
fillRule: 'evenodd',
|
|
268
291
|
clipRule: 'evenodd',
|
|
269
|
-
d: 'M24 12C24
|
|
292
|
+
d: 'M24 12C24 18.6278 18.6278 24 12 24C5.37223 24 4.69655e-07 18.6278 1.04907e-06 12C1.22723e-06 9.96215 0.509463 7.99515 1.46688 6.24592C2.20268 4.90263 3.19065 3.7104 4.37369 2.73404C6.5074 0.977406 9.17992 8.02534e-07 12 1.04907e-06C18.6278 1.62849e-06 24 5.37223 24 12ZM1.1999 12C1.1999 17.965 6.03487 22.8 11.9999 22.8C17.9649 22.8 22.7999 17.965 22.7999 12C22.7999 6.03497 17.9649 1.2 11.9999 1.2C9.46077 1.2 7.05719 2.07905 5.13686 3.66002C4.07155 4.53921 3.18165 5.61309 2.51933 6.82224C1.65809 8.39575 1.1999 10.1648 1.1999 12Z',
|
|
293
|
+
fill: 'currentColor'
|
|
270
294
|
}), React.createElement("path", {
|
|
271
|
-
d: 'M14.9102 12L9.68331
|
|
272
|
-
|
|
295
|
+
d: 'M14.9102 12L9.68331 6.51222C9.57177 6.39511 9.5717 6.20516 9.68314 6.08796C9.79459 5.97075 9.97536 5.97067 10.0869 6.08778L15.5159 11.7878C15.6275 11.905 15.6275 12.095 15.5159 12.2122L10.0869 17.9122C9.97536 18.0293 9.79459 18.0293 9.68314 17.912C9.5717 17.7948 9.57177 17.6049 9.68331 17.4878L14.9102 12Z',
|
|
296
|
+
fill: 'currentColor',
|
|
297
|
+
stroke: 'currentColor',
|
|
273
298
|
strokeWidth: '0.5'
|
|
274
|
-
}))
|
|
299
|
+
})), React.createElement("defs", null, React.createElement("clipPath", {
|
|
300
|
+
id: 'clip0_4539_71255'
|
|
301
|
+
}, React.createElement("rect", {
|
|
302
|
+
width: '24',
|
|
303
|
+
height: '24',
|
|
304
|
+
fill: 'white',
|
|
305
|
+
transform: 'matrix(1 8.74228e-08 8.74228e-08 -1 0 24)'
|
|
306
|
+
}))));
|
|
275
307
|
};
|
|
276
308
|
|
|
277
309
|
var FUNDACAO_LOGO_VERDE = 'verde';
|
|
@@ -1759,13 +1791,14 @@ var rootClassName$1o = 'icon-component';
|
|
|
1759
1791
|
var AgencyIcon = function AgencyIcon() {
|
|
1760
1792
|
return React.createElement("svg", {
|
|
1761
1793
|
className: rootClassName$1o,
|
|
1762
|
-
viewBox: '0
|
|
1794
|
+
viewBox: '0 -1 24 24',
|
|
1763
1795
|
fill: 'currentColor',
|
|
1764
1796
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
1765
1797
|
}, React.createElement("path", {
|
|
1766
1798
|
fillRule: 'evenodd',
|
|
1767
1799
|
clipRule: 'evenodd',
|
|
1768
|
-
d: 'M5.05577
|
|
1800
|
+
d: 'M5.05577 7.43598H23V4.50752H6.06768L5.05577 7.43598ZM5.00883 4.50752L3.99692 7.43598H1V4.50752H5.00883ZM5.70066 3.50014H0.841C0.375976 3.50014 0 3.87966 0 4.34734V7.59615C0 8.06473 0.375858 8.44336 0.841 8.44336H1.6322V19.1904C1.6322 19.9136 2.21481 20.5 2.9322 20.5H7.5654H16.4344H21.0672C21.7846 20.5 22.3672 19.9136 22.3672 19.1904V8.44336H23.159C23.6233 8.44336 24 8.06461 24 7.59615V4.34734C24 3.87978 23.6231 3.50014 23.159 3.50014H5.72391C5.71614 3.49995 5.70839 3.49995 5.70066 3.50014ZM16.9344 19.4926H21.0672C21.2325 19.4926 21.3672 19.357 21.3672 19.1904V8.44366H2.6322V19.1904C2.6322 19.357 2.7669 19.4926 2.9322 19.4926H7.0654V11.5303C7.0654 11.1402 7.3793 10.8251 7.7654 10.8251H11.9772C11.9847 10.8248 11.9922 10.8246 11.9998 10.8246C12.0074 10.8246 12.0149 10.8248 12.0224 10.8251H16.2344C16.6205 10.8251 16.9344 11.1402 16.9344 11.5303V19.4926ZM8.0654 11.8325H11.4998V19.4926H8.0654V11.8325ZM15.9344 19.4926H12.4998V11.8325H15.9344V19.4926Z',
|
|
1801
|
+
fill: 'currentColor'
|
|
1769
1802
|
}));
|
|
1770
1803
|
};
|
|
1771
1804
|
|
|
@@ -1813,7 +1846,7 @@ var CalendarCheckIcon = function CalendarCheckIcon() {
|
|
|
1813
1846
|
};
|
|
1814
1847
|
|
|
1815
1848
|
function _extends() {
|
|
1816
|
-
_extends = Object.assign
|
|
1849
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1817
1850
|
for (var i = 1; i < arguments.length; i++) {
|
|
1818
1851
|
var source = arguments[i];
|
|
1819
1852
|
|
|
@@ -1826,7 +1859,6 @@ function _extends() {
|
|
|
1826
1859
|
|
|
1827
1860
|
return target;
|
|
1828
1861
|
};
|
|
1829
|
-
|
|
1830
1862
|
return _extends.apply(this, arguments);
|
|
1831
1863
|
}
|
|
1832
1864
|
|
|
@@ -1838,14 +1870,51 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
1838
1870
|
}
|
|
1839
1871
|
|
|
1840
1872
|
function _setPrototypeOf(o, p) {
|
|
1841
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
1873
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1842
1874
|
o.__proto__ = p;
|
|
1843
1875
|
return o;
|
|
1844
1876
|
};
|
|
1845
|
-
|
|
1846
1877
|
return _setPrototypeOf(o, p);
|
|
1847
1878
|
}
|
|
1848
1879
|
|
|
1880
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
1881
|
+
if (!o) return;
|
|
1882
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1883
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1884
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1885
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1886
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
function _arrayLikeToArray(arr, len) {
|
|
1890
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1891
|
+
|
|
1892
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1893
|
+
|
|
1894
|
+
return arr2;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
1898
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1899
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
1900
|
+
|
|
1901
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1902
|
+
if (it) o = it;
|
|
1903
|
+
var i = 0;
|
|
1904
|
+
return function () {
|
|
1905
|
+
if (i >= o.length) return {
|
|
1906
|
+
done: true
|
|
1907
|
+
};
|
|
1908
|
+
return {
|
|
1909
|
+
done: false,
|
|
1910
|
+
value: o[i++]
|
|
1911
|
+
};
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1849
1918
|
var rootClassName$1q = 'catavento-verde-icon-ui-component';
|
|
1850
1919
|
|
|
1851
1920
|
var CataventoVerde = /*#__PURE__*/function (_Component) {
|
|
@@ -2098,7 +2167,7 @@ var rootClassName$1v = 'icon-component';
|
|
|
2098
2167
|
var NotebookIcon = function NotebookIcon() {
|
|
2099
2168
|
return React.createElement("svg", {
|
|
2100
2169
|
className: rootClassName$1v,
|
|
2101
|
-
viewBox: '0
|
|
2170
|
+
viewBox: '0 -1 24 24',
|
|
2102
2171
|
fill: 'currentColor',
|
|
2103
2172
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
2104
2173
|
}, React.createElement("path", {
|
|
@@ -5027,12 +5096,10 @@ var dateToString = function dateToString(date) {
|
|
|
5027
5096
|
return '';
|
|
5028
5097
|
}
|
|
5029
5098
|
};
|
|
5030
|
-
|
|
5031
5099
|
var getTwoNumbersIfNotTen = function getTwoNumbersIfNotTen(num) {
|
|
5032
5100
|
if (String(num).length < 2) return "0" + num;
|
|
5033
5101
|
return String(num);
|
|
5034
5102
|
};
|
|
5035
|
-
|
|
5036
5103
|
var secondsToHours = function secondsToHours(seconds) {
|
|
5037
5104
|
if (seconds <= 0) return '00:00:00';
|
|
5038
5105
|
var h = Math.floor(seconds / 3600);
|
|
@@ -5463,7 +5530,6 @@ function Input(props) {
|
|
|
5463
5530
|
}
|
|
5464
5531
|
|
|
5465
5532
|
Input.defaultProps = {
|
|
5466
|
-
onChange: function onChange() {},
|
|
5467
5533
|
value: '',
|
|
5468
5534
|
loading: false,
|
|
5469
5535
|
error: false,
|
|
@@ -5769,6 +5835,7 @@ var NotificationType;
|
|
|
5769
5835
|
NotificationType["PrimaryInvert"] = "primary-invert";
|
|
5770
5836
|
NotificationType["Error"] = "error";
|
|
5771
5837
|
NotificationType["Default"] = "default";
|
|
5838
|
+
NotificationType["Disabled"] = "disabled";
|
|
5772
5839
|
})(NotificationType || (NotificationType = {}));
|
|
5773
5840
|
|
|
5774
5841
|
var rootClassName$1S = 'component-notification';
|
|
@@ -5780,14 +5847,13 @@ function Notification(props) {
|
|
|
5780
5847
|
return p;
|
|
5781
5848
|
};
|
|
5782
5849
|
|
|
5783
|
-
var
|
|
5784
|
-
if (
|
|
5850
|
+
var label = useMemo(function () {
|
|
5851
|
+
if (!props.count) return 0;
|
|
5785
5852
|
if (props.count < 0) return '!';
|
|
5786
5853
|
return props.count;
|
|
5787
|
-
};
|
|
5788
|
-
|
|
5854
|
+
}, [props.count]);
|
|
5789
5855
|
return React.createElement("div", Object.assign({}, getProps()), props.children, React.createElement(CSSTransition, {
|
|
5790
|
-
"in":
|
|
5856
|
+
"in": !!label,
|
|
5791
5857
|
classNames: rootClassName$1S,
|
|
5792
5858
|
timeout: 300,
|
|
5793
5859
|
unmountOnExit: true
|
|
@@ -5799,7 +5865,7 @@ function Notification(props) {
|
|
|
5799
5865
|
left: String(props.position).match(/left/) ? 0 - (props.horizontalOuter || 0) + "px" : 'unset',
|
|
5800
5866
|
bottom: String(props.position).match(/bottom/) ? 0 - (props.verticalOuter || 0) + "px" : 'unset'
|
|
5801
5867
|
}
|
|
5802
|
-
},
|
|
5868
|
+
}, label)));
|
|
5803
5869
|
}
|
|
5804
5870
|
Notification.defaultProps = {
|
|
5805
5871
|
type: NotificationType.Error,
|
|
@@ -6190,7 +6256,10 @@ function smoothScrollTo(endX, endY, duration, element) {
|
|
|
6190
6256
|
var newY = easeInOutQuart(time, startY, distanceY, duration);
|
|
6191
6257
|
|
|
6192
6258
|
if (time > duration) {
|
|
6193
|
-
|
|
6259
|
+
if (timer) {
|
|
6260
|
+
clearInterval(timer);
|
|
6261
|
+
}
|
|
6262
|
+
|
|
6194
6263
|
setTimeout(function () {
|
|
6195
6264
|
if (element) element.style.scrollSnapType = '';
|
|
6196
6265
|
}, 50);
|
|
@@ -7883,12 +7952,12 @@ var numberToMoeda = function numberToMoeda(num, simbolo, delimitadorCentesimal,
|
|
|
7883
7952
|
}
|
|
7884
7953
|
|
|
7885
7954
|
if (isNaN(num)) return 'NaN';
|
|
7886
|
-
num = parseFloat(num);
|
|
7955
|
+
num = parseFloat(String(num));
|
|
7887
7956
|
var negativo = num < 0;
|
|
7888
7957
|
var numeroInteiro = parseInt(String(Math.abs(num)));
|
|
7889
7958
|
var numeroAbsoluto = Math.abs(numeroInteiro);
|
|
7890
7959
|
var numerosDecimais = (parseFloat((Math.abs(num) - numeroInteiro).toFixed(2)) * 100).toFixed(0);
|
|
7891
|
-
if (numerosDecimais < 10) numerosDecimais = "0" + numerosDecimais;
|
|
7960
|
+
if (parseInt(numerosDecimais) < 10) numerosDecimais = "0" + numerosDecimais;
|
|
7892
7961
|
return "" + simbolo + (negativo ? '- ' : '') + String(numeroAbsoluto).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimitadorCentesimal) + delimitadorDecimal + numerosDecimais;
|
|
7893
7962
|
};
|
|
7894
7963
|
|
|
@@ -8120,6 +8189,9 @@ function Col(props) {
|
|
|
8120
8189
|
});
|
|
8121
8190
|
|
|
8122
8191
|
var rp = _extends({}, props, {
|
|
8192
|
+
style: _extends({}, props.style || {}, {
|
|
8193
|
+
gap: props.gap
|
|
8194
|
+
}),
|
|
8123
8195
|
className: getMergedClassNames([props.className, rootClassName$22].concat(getSizes, [props.centralized ? 'centralized' : '', props.end ? 'end' : '', props.noPadding ? 'no-padding' : '', props.noPaddingTop ? 'no-padding-top' : '', props.buttonActionsCol ? 'button-actions-col' : '']))
|
|
8124
8196
|
});
|
|
8125
8197
|
|
|
@@ -8177,6 +8249,57 @@ Container.defaultProps = {
|
|
|
8177
8249
|
};
|
|
8178
8250
|
var Container$1 = memo(Container);
|
|
8179
8251
|
|
|
8252
|
+
var CalendarView;
|
|
8253
|
+
|
|
8254
|
+
(function (CalendarView) {
|
|
8255
|
+
CalendarView["Mensal"] = "mensal";
|
|
8256
|
+
CalendarView["Semanal"] = "semanal";
|
|
8257
|
+
CalendarView["Diario"] = "diario";
|
|
8258
|
+
})(CalendarView || (CalendarView = {}));
|
|
8259
|
+
|
|
8260
|
+
var ptbrCalendarLanguage = {
|
|
8261
|
+
addNew: 'Inserir novo',
|
|
8262
|
+
daysOfWeek: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
|
|
8263
|
+
daysOfWeekAbrev: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sab'],
|
|
8264
|
+
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
8265
|
+
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
8266
|
+
};
|
|
8267
|
+
var ptbrInlineMonthPickerLabelGenerator = function ptbrInlineMonthPickerLabelGenerator(date) {
|
|
8268
|
+
return ptbrCalendarLanguage.months[date.getMonth()] + " de " + date.getFullYear();
|
|
8269
|
+
};
|
|
8270
|
+
function getWeekInMonth(diaOuData, mes, ano) {
|
|
8271
|
+
var arr = typeof diaOuData === 'number' ? [new Date(ano, mes, diaOuData)] : [diaOuData];
|
|
8272
|
+
|
|
8273
|
+
while (arr[0].getDay() > 0) {
|
|
8274
|
+
arr.unshift(new Date(arr[0].getTime() - 24 * 60 * 60 * 1000));
|
|
8275
|
+
}
|
|
8276
|
+
|
|
8277
|
+
while (arr[arr.length - 1].getDay() < 6) {
|
|
8278
|
+
arr.push(new Date(arr[arr.length - 1].getTime() + 24 * 60 * 60 * 1000));
|
|
8279
|
+
}
|
|
8280
|
+
|
|
8281
|
+
return arr;
|
|
8282
|
+
}
|
|
8283
|
+
function getDaysInMonth(mesOuData, _ano) {
|
|
8284
|
+
var mes = typeof mesOuData === 'number' ? mesOuData : mesOuData.getMonth();
|
|
8285
|
+
var ano = typeof mesOuData === 'number' ? _ano : mesOuData.getFullYear();
|
|
8286
|
+
var arr = new Array(31).fill('').map(function (_, i) {
|
|
8287
|
+
return new Date(ano, mes, i + 1);
|
|
8288
|
+
}).filter(function (v) {
|
|
8289
|
+
return v.getMonth() === mes;
|
|
8290
|
+
});
|
|
8291
|
+
|
|
8292
|
+
while (arr[0].getDay() > 0) {
|
|
8293
|
+
arr.unshift(new Date(arr[0].getTime() - 24 * 60 * 60 * 1000));
|
|
8294
|
+
}
|
|
8295
|
+
|
|
8296
|
+
while (arr[arr.length - 1].getDay() < 6) {
|
|
8297
|
+
arr.push(new Date(arr[arr.length - 1].getTime() + 24 * 60 * 60 * 1000));
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8300
|
+
return arr;
|
|
8301
|
+
}
|
|
8302
|
+
|
|
8180
8303
|
var rootClassName$24 = 'component-date-picker-calendar';
|
|
8181
8304
|
|
|
8182
8305
|
function DatePickerCalendar(props) {
|
|
@@ -8194,44 +8317,17 @@ function DatePickerCalendar(props) {
|
|
|
8194
8317
|
useEffect(function () {
|
|
8195
8318
|
if (props.value) {
|
|
8196
8319
|
var d = stringToDate(props.value);
|
|
8197
|
-
|
|
8198
|
-
|
|
8320
|
+
|
|
8321
|
+
if (d) {
|
|
8322
|
+
setMonth(d === null || d === void 0 ? void 0 : d.getMonth());
|
|
8323
|
+
setYear(d === null || d === void 0 ? void 0 : d.getFullYear());
|
|
8324
|
+
}
|
|
8199
8325
|
} else {
|
|
8200
8326
|
setMonth(today.getMonth());
|
|
8201
8327
|
setYear(today.getFullYear());
|
|
8202
8328
|
}
|
|
8203
8329
|
}, [props.value]);
|
|
8204
8330
|
|
|
8205
|
-
var getDaysInMonth = function getDaysInMonth(mes, ano) {
|
|
8206
|
-
var arr = new Array(31).fill('').map(function (_, i) {
|
|
8207
|
-
return new Date(ano, mes, i + 1);
|
|
8208
|
-
}).filter(function (v) {
|
|
8209
|
-
return v.getMonth() === mes;
|
|
8210
|
-
});
|
|
8211
|
-
|
|
8212
|
-
if (arr[0].getDay() > 0) {
|
|
8213
|
-
var aux = new Date(arr[0].getTime() - 24 * 60 * 60 * 1000);
|
|
8214
|
-
|
|
8215
|
-
while (true) {
|
|
8216
|
-
arr = [aux].concat(arr);
|
|
8217
|
-
if (aux.getDay() === 0) break;
|
|
8218
|
-
aux = new Date(aux.getTime() - 24 * 60 * 60 * 1000);
|
|
8219
|
-
}
|
|
8220
|
-
}
|
|
8221
|
-
|
|
8222
|
-
if (arr[arr.length - 1].getDay() < 6) {
|
|
8223
|
-
var _aux = new Date(arr[arr.length - 1].getTime() + 24 * 60 * 60 * 1000);
|
|
8224
|
-
|
|
8225
|
-
while (true) {
|
|
8226
|
-
arr = [].concat(arr, [_aux]);
|
|
8227
|
-
if (_aux.getDay() === 6) break;
|
|
8228
|
-
_aux = new Date(_aux.getTime() + 24 * 60 * 60 * 1000);
|
|
8229
|
-
}
|
|
8230
|
-
}
|
|
8231
|
-
|
|
8232
|
-
return arr;
|
|
8233
|
-
};
|
|
8234
|
-
|
|
8235
8331
|
var _useState4 = useState(false),
|
|
8236
8332
|
monthPage = _useState4[0],
|
|
8237
8333
|
setMonthPage = _useState4[1];
|
|
@@ -8549,23 +8645,35 @@ var Doughnut$1 = memo(Doughnut);
|
|
|
8549
8645
|
var rootClassName$27 = 'component-dropdown-item';
|
|
8550
8646
|
|
|
8551
8647
|
function DropdownItem(props) {
|
|
8648
|
+
var classNames = useMemo(function () {
|
|
8649
|
+
return getMergedClassNames([rootClassName$27, props.alignRight ? 'right' : '', props.loading ? 'loading' : '']);
|
|
8650
|
+
}, [props.alignRight, props.loading]);
|
|
8552
8651
|
return React.createElement("button", {
|
|
8553
8652
|
id: props.id,
|
|
8554
8653
|
disabled: props.disabled,
|
|
8555
8654
|
"aria-disabled": props.disabled,
|
|
8556
|
-
className:
|
|
8655
|
+
className: classNames,
|
|
8557
8656
|
onClick: function onClick(evt) {
|
|
8558
|
-
if (typeof props.onClick === 'function' && !props.disabled) {
|
|
8657
|
+
if (typeof props.onClick === 'function' && !props.loading && !props.disabled) {
|
|
8559
8658
|
props.onClick(evt);
|
|
8560
8659
|
}
|
|
8561
8660
|
}
|
|
8562
|
-
},
|
|
8661
|
+
}, React.createElement("div", {
|
|
8662
|
+
className: rootClassName$27 + "-content"
|
|
8663
|
+
}, React.createElement(CSSTransition, {
|
|
8664
|
+
"in": props.loading,
|
|
8665
|
+
timeout: 300,
|
|
8666
|
+
unmountOnExit: true,
|
|
8667
|
+
classNames: rootClassName$27 + "-fade"
|
|
8668
|
+
}, React.createElement("div", {
|
|
8669
|
+
className: rootClassName$27 + "-loader"
|
|
8670
|
+
}, React.createElement(PercentLoaderIcon, {
|
|
8671
|
+
indefinido: true
|
|
8672
|
+
}))), props.icon ? React.createElement("div", {
|
|
8563
8673
|
className: rootClassName$27 + "-icon"
|
|
8564
8674
|
}, props.icon) : undefined, React.createElement("div", {
|
|
8565
8675
|
className: rootClassName$27 + "-label"
|
|
8566
|
-
}, props.label)
|
|
8567
|
-
className: rootClassName$27 + "-icon right"
|
|
8568
|
-
}, props.icon) : undefined);
|
|
8676
|
+
}, props.label)));
|
|
8569
8677
|
}
|
|
8570
8678
|
|
|
8571
8679
|
var DropdownItem$1 = memo(DropdownItem);
|
|
@@ -9205,7 +9313,7 @@ var Row$1 = memo(Row);
|
|
|
9205
9313
|
var rootClassName$2f = 'footer-sicredi';
|
|
9206
9314
|
|
|
9207
9315
|
function FooterSicredi(props) {
|
|
9208
|
-
var colSize = [12,
|
|
9316
|
+
var colSize = [12, 12, 3, 3, 3];
|
|
9209
9317
|
var qrCodeColor = useMemo(function () {
|
|
9210
9318
|
switch (props.theme) {
|
|
9211
9319
|
case 'dark':
|
|
@@ -9316,7 +9424,7 @@ function FooterSicredi(props) {
|
|
|
9316
9424
|
className: rootClassName$2f + "-space"
|
|
9317
9425
|
}), React.createElement("div", {
|
|
9318
9426
|
className: rootClassName$2f + "-title"
|
|
9319
|
-
}, "Atendimento
|
|
9427
|
+
}, "Atendimento \xE0 pessoas com defici\xEAncia"), React.createElement("div", {
|
|
9320
9428
|
className: rootClassName$2f + "-subtitle nunito"
|
|
9321
9429
|
}, "Auditivos ou de fala"), React.createElement("div", {
|
|
9322
9430
|
className: rootClassName$2f + "-number"
|
|
@@ -10071,7 +10179,7 @@ function Modal(props) {
|
|
|
10071
10179
|
}, [props.footer]);
|
|
10072
10180
|
|
|
10073
10181
|
var handleClose = function handleClose() {
|
|
10074
|
-
props.onClose(props.modalKey);
|
|
10182
|
+
if (typeof props.onClose === 'function') props.onClose(props.modalKey);
|
|
10075
10183
|
};
|
|
10076
10184
|
|
|
10077
10185
|
return React.createElement("div", Object.assign({}, filteredProps), React.createElement("div", {
|
|
@@ -10091,7 +10199,7 @@ function Modal(props) {
|
|
|
10091
10199
|
}
|
|
10092
10200
|
Modal.defaultProps = {
|
|
10093
10201
|
title: 'Title',
|
|
10094
|
-
onClose:
|
|
10202
|
+
onClose: undefined,
|
|
10095
10203
|
size: 'large'
|
|
10096
10204
|
};
|
|
10097
10205
|
|
|
@@ -10150,7 +10258,9 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
10150
10258
|
var closeModalByKey = function closeModalByKey(modalKey) {
|
|
10151
10259
|
var arr = refModals.current.slice();
|
|
10152
10260
|
arr = arr.filter(function (obj) {
|
|
10153
|
-
|
|
10261
|
+
var _obj$props;
|
|
10262
|
+
|
|
10263
|
+
return String((_obj$props = obj.props) === null || _obj$props === void 0 ? void 0 : _obj$props.modalKey) !== String(modalKey);
|
|
10154
10264
|
});
|
|
10155
10265
|
setArrayOfModal(arr);
|
|
10156
10266
|
};
|
|
@@ -10204,30 +10314,31 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
10204
10314
|
return React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
10205
10315
|
className: getClassNames()
|
|
10206
10316
|
}, arrayOfModal.map(function (obj) {
|
|
10207
|
-
var _obj$
|
|
10317
|
+
var _obj$props2, _obj$props3, _obj$props4;
|
|
10208
10318
|
|
|
10209
|
-
var
|
|
10319
|
+
var ModalComponent = React.createElement(obj.component, obj.props);
|
|
10210
10320
|
return React.createElement(CSSTransition, {
|
|
10211
10321
|
timeout: 300,
|
|
10212
|
-
classNames: (_obj$
|
|
10213
|
-
key: (_obj$
|
|
10322
|
+
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$2u + "-mask-mobile-on-xs" : rootClassName$2u + "-mask",
|
|
10323
|
+
key: (_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.modalKey,
|
|
10214
10324
|
unmountOnExit: true
|
|
10215
10325
|
}, React.createElement(ModalMask, {
|
|
10216
|
-
mobileOnXS: Boolean((_obj$
|
|
10326
|
+
mobileOnXS: Boolean((_obj$props4 = obj.props) === null || _obj$props4 === void 0 ? void 0 : _obj$props4.mobileOnXS),
|
|
10217
10327
|
onClick: function onClick(evt) {
|
|
10218
10328
|
if (evt.target.classList.contains(maskRootClassName)) {
|
|
10219
|
-
var _obj$
|
|
10329
|
+
var _obj$props5, _obj$props6;
|
|
10220
10330
|
|
|
10221
|
-
if (typeof ((_obj$
|
|
10222
|
-
var _obj$
|
|
10331
|
+
if (typeof ((_obj$props5 = obj.props) === null || _obj$props5 === void 0 ? void 0 : _obj$props5.onClose) === 'function' && !((_obj$props6 = obj.props) !== null && _obj$props6 !== void 0 && _obj$props6.preventMaskExit)) {
|
|
10332
|
+
var _obj$props7, _obj$props8;
|
|
10223
10333
|
|
|
10224
|
-
(_obj$
|
|
10334
|
+
(_obj$props7 = obj.props) === null || _obj$props7 === void 0 ? void 0 : _obj$props7.onClose((_obj$props8 = obj.props) === null || _obj$props8 === void 0 ? void 0 : _obj$props8.modalKey);
|
|
10225
10335
|
}
|
|
10226
10336
|
}
|
|
10227
10337
|
}
|
|
10228
|
-
},
|
|
10338
|
+
}, ModalComponent));
|
|
10229
10339
|
})));
|
|
10230
10340
|
});
|
|
10341
|
+
ModalManager.displayName = 'ModalManager';
|
|
10231
10342
|
|
|
10232
10343
|
var rootClassName$2v = 'component-nota-edit';
|
|
10233
10344
|
function NotaEdit(props) {
|
|
@@ -10509,7 +10620,7 @@ SearchBlocoDeNotas.defaultProps = {
|
|
|
10509
10620
|
var rootClassName$2A = 'component-select';
|
|
10510
10621
|
|
|
10511
10622
|
function Select(props) {
|
|
10512
|
-
var _props$options3
|
|
10623
|
+
var _props$options3;
|
|
10513
10624
|
|
|
10514
10625
|
var _useState = useState(getUniqueKey()),
|
|
10515
10626
|
id = _useState[0];
|
|
@@ -10539,7 +10650,7 @@ function Select(props) {
|
|
|
10539
10650
|
var getKey = function getKey(option) {
|
|
10540
10651
|
if (option) {
|
|
10541
10652
|
if (option.key) return option.key;
|
|
10542
|
-
if (option.value) return option.value;
|
|
10653
|
+
if (option.value && typeof option.value !== 'boolean') return option.value;
|
|
10543
10654
|
}
|
|
10544
10655
|
|
|
10545
10656
|
return getUniqueKey();
|
|
@@ -10547,24 +10658,20 @@ function Select(props) {
|
|
|
10547
10658
|
|
|
10548
10659
|
useEffect(function () {
|
|
10549
10660
|
var func = function func(evt) {
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
} else {
|
|
10553
|
-
var aux = evt.target;
|
|
10554
|
-
var deveFechar = true;
|
|
10661
|
+
var aux = evt.target;
|
|
10662
|
+
var deveFechar = true;
|
|
10555
10663
|
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
}
|
|
10561
|
-
|
|
10562
|
-
aux = aux.parentElement;
|
|
10664
|
+
while (aux && aux.id !== 'root') {
|
|
10665
|
+
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2A + "-outer")) {
|
|
10666
|
+
deveFechar = false;
|
|
10667
|
+
break;
|
|
10563
10668
|
}
|
|
10564
10669
|
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10670
|
+
aux = aux.parentElement;
|
|
10671
|
+
}
|
|
10672
|
+
|
|
10673
|
+
if (deveFechar) {
|
|
10674
|
+
setPanelOpened(false);
|
|
10568
10675
|
}
|
|
10569
10676
|
};
|
|
10570
10677
|
|
|
@@ -10572,6 +10679,7 @@ function Select(props) {
|
|
|
10572
10679
|
if (evt.key === 'Escape') {
|
|
10573
10680
|
setPanelOpened(false);
|
|
10574
10681
|
evt.preventDefault();
|
|
10682
|
+
evt.stopPropagation();
|
|
10575
10683
|
}
|
|
10576
10684
|
};
|
|
10577
10685
|
|
|
@@ -10603,7 +10711,7 @@ function Select(props) {
|
|
|
10603
10711
|
|
|
10604
10712
|
var position = function position() {
|
|
10605
10713
|
var trigger = document.querySelector("#" + id);
|
|
10606
|
-
var panel = document.
|
|
10714
|
+
var panel = document.querySelector("#" + panelId + ".panel-fade-enter-active, #" + panelId + ".panel-fade-enter-done, #" + panelId + ".panel-fade-exit-active");
|
|
10607
10715
|
if (!trigger || !panel) return;
|
|
10608
10716
|
var triggerBound = trigger.getBoundingClientRect();
|
|
10609
10717
|
panel.style.width = triggerBound.width + "px";
|
|
@@ -10612,37 +10720,31 @@ function Select(props) {
|
|
|
10612
10720
|
var fitBottom = panelHeight + triggerBound.bottom < windowHeight;
|
|
10613
10721
|
var fitTop = triggerBound.top - panelHeight > 0;
|
|
10614
10722
|
|
|
10615
|
-
if (
|
|
10616
|
-
panel.style.top =
|
|
10617
|
-
panel.style.bottom = '0';
|
|
10618
|
-
panel.style.left = '0';
|
|
10619
|
-
panel.style.width = '100%';
|
|
10620
|
-
panel.style.borderRadius = '8px 8px 0 0';
|
|
10621
|
-
panel.style.boxShadow = '0 -1px 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10622
|
-
} else if (fitTop && !fitBottom) {
|
|
10723
|
+
if (fitBottom && !props.bottomPanel) {
|
|
10724
|
+
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10623
10725
|
panel.style.left = 'unset';
|
|
10624
|
-
panel.style.borderRadius = '8px';
|
|
10625
|
-
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10626
10726
|
panel.style.bottom = 'unset';
|
|
10727
|
+
panel.style.borderRadius = '0 0 8px 8px';
|
|
10627
10728
|
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10628
|
-
} else if (
|
|
10729
|
+
} else if (fitTop && !props.bottomPanel) {
|
|
10730
|
+
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10629
10731
|
panel.style.left = 'unset';
|
|
10630
|
-
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10631
10732
|
panel.style.bottom = 'unset';
|
|
10632
|
-
panel.style.borderRadius = '
|
|
10733
|
+
panel.style.borderRadius = '8px';
|
|
10734
|
+
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10633
10735
|
} else {
|
|
10634
10736
|
panel.style.top = 'unset';
|
|
10635
|
-
panel.style.bottom = '0';
|
|
10636
10737
|
panel.style.left = '0';
|
|
10738
|
+
panel.style.bottom = '0';
|
|
10637
10739
|
panel.style.width = '100%';
|
|
10638
10740
|
panel.style.borderRadius = '8px 8px 0 0';
|
|
10639
|
-
panel.style.boxShadow = '0 -
|
|
10741
|
+
panel.style.boxShadow = '0 -10px 0 5000px rgba(0, 0, 0, 0.5)';
|
|
10640
10742
|
}
|
|
10641
10743
|
};
|
|
10642
10744
|
|
|
10643
10745
|
if (panelOpened) {
|
|
10644
10746
|
position();
|
|
10645
|
-
setInter(setInterval(position,
|
|
10747
|
+
setInter(setInterval(position, 20));
|
|
10646
10748
|
}
|
|
10647
10749
|
|
|
10648
10750
|
return function () {
|
|
@@ -10654,8 +10756,12 @@ function Select(props) {
|
|
|
10654
10756
|
}, [panelOpened]);
|
|
10655
10757
|
var opcoes = JSON.stringify(props.options);
|
|
10656
10758
|
useEffect(function () {
|
|
10657
|
-
if (props.preSelectUniqueOption && props.options && props.options.length === 1
|
|
10658
|
-
|
|
10759
|
+
if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
|
|
10760
|
+
if (props.multiple && props.value && Array.isArray(props.value) && props.value.length !== 1) {
|
|
10761
|
+
props.onChange([props.options[0].value]);
|
|
10762
|
+
} else if (!props.multiple && props.value !== props.options[0].value) {
|
|
10763
|
+
props.onChange(props.options[0].value);
|
|
10764
|
+
}
|
|
10659
10765
|
}
|
|
10660
10766
|
}, [opcoes]);
|
|
10661
10767
|
|
|
@@ -10668,7 +10774,11 @@ function Select(props) {
|
|
|
10668
10774
|
className: rootClassName$2A + "-clear-button",
|
|
10669
10775
|
icon: React.createElement(CloseIcon, null),
|
|
10670
10776
|
onClick: function onClick() {
|
|
10671
|
-
|
|
10777
|
+
if (props.multiple) {
|
|
10778
|
+
props.onChange([]);
|
|
10779
|
+
} else {
|
|
10780
|
+
props.onChange(null);
|
|
10781
|
+
}
|
|
10672
10782
|
}
|
|
10673
10783
|
}) : undefined, React.createElement(IconButton$1, {
|
|
10674
10784
|
disabled: props.disabled || false,
|
|
@@ -10692,7 +10802,7 @@ function Select(props) {
|
|
|
10692
10802
|
onClick: function onClick() {
|
|
10693
10803
|
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2A + "-select-fake");
|
|
10694
10804
|
|
|
10695
|
-
if (!props.multiple &&
|
|
10805
|
+
if (!props.multiple && isiPhone() && selectFake) {
|
|
10696
10806
|
selectFake.focus();
|
|
10697
10807
|
} else {
|
|
10698
10808
|
setPanelOpened(!panelOpened);
|
|
@@ -10701,7 +10811,7 @@ function Select(props) {
|
|
|
10701
10811
|
onFocus: function onFocus(evt) {
|
|
10702
10812
|
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2A + "-select-fake");
|
|
10703
10813
|
|
|
10704
|
-
if (!props.multiple &&
|
|
10814
|
+
if (!props.multiple && isiPhone() && selectFake) {
|
|
10705
10815
|
selectFake.focus();
|
|
10706
10816
|
} else {
|
|
10707
10817
|
evt.target.setSelectionRange(0, 0);
|
|
@@ -10737,6 +10847,7 @@ function Select(props) {
|
|
|
10737
10847
|
});
|
|
10738
10848
|
|
|
10739
10849
|
delete p.showPanelFooter;
|
|
10850
|
+
delete p.bottomPanel;
|
|
10740
10851
|
delete p.clearButton;
|
|
10741
10852
|
delete p.multiplePlaceholder;
|
|
10742
10853
|
delete p.multiple;
|
|
@@ -10754,6 +10865,7 @@ function Select(props) {
|
|
|
10754
10865
|
|
|
10755
10866
|
var handleChange = function handleChange() {
|
|
10756
10867
|
if (props.readOnly) return;
|
|
10868
|
+
if (!props.multiple) return;
|
|
10757
10869
|
|
|
10758
10870
|
if (!checked) {
|
|
10759
10871
|
var val = Array.isArray(props.value) ? props.value.slice() : [];
|
|
@@ -10847,6 +10959,8 @@ function Select(props) {
|
|
|
10847
10959
|
};
|
|
10848
10960
|
|
|
10849
10961
|
var getSingleOption = function getSingleOption(option) {
|
|
10962
|
+
if (props.multiple) return;
|
|
10963
|
+
|
|
10850
10964
|
var handleChange = function handleChange() {
|
|
10851
10965
|
if (!props.readOnly && props.value !== option.value) {
|
|
10852
10966
|
setPanelOpened(false);
|
|
@@ -10914,24 +11028,22 @@ function Select(props) {
|
|
|
10914
11028
|
}, option.label);
|
|
10915
11029
|
};
|
|
10916
11030
|
|
|
10917
|
-
var
|
|
11031
|
+
var noOptionsMessage = useMemo(function () {
|
|
10918
11032
|
return React.createElement("div", {
|
|
10919
11033
|
className: rootClassName$2A + "-no-result"
|
|
10920
11034
|
}, props.noOptionMessage);
|
|
10921
|
-
};
|
|
10922
|
-
|
|
10923
|
-
var getOptionsFiltered = function getOptionsFiltered() {
|
|
11035
|
+
}, [props.noOptionMessage]);
|
|
11036
|
+
var optionsFiltered = useMemo(function () {
|
|
10924
11037
|
var _props$options2;
|
|
10925
11038
|
|
|
10926
|
-
return (_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
|
|
11039
|
+
return ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
|
|
10927
11040
|
return getStringWithoutSpecialChar(op.label).toLowerCase().match(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10928
|
-
});
|
|
10929
|
-
};
|
|
10930
|
-
|
|
11041
|
+
})) || [];
|
|
11042
|
+
}, [props.options, filterInput]);
|
|
10931
11043
|
return React.createElement("div", {
|
|
10932
11044
|
id: id,
|
|
10933
11045
|
className: rootClassName$2A + "-outer"
|
|
10934
|
-
}, !props.multiple &&
|
|
11046
|
+
}, !props.multiple && isiPhone() && React.createElement("select", {
|
|
10935
11047
|
className: rootClassName$2A + "-select-fake",
|
|
10936
11048
|
value: props.value ? String(props.value) : '',
|
|
10937
11049
|
onChange: function onChange(evt) {
|
|
@@ -10950,7 +11062,7 @@ function Select(props) {
|
|
|
10950
11062
|
}, languageValues.components.select.single.fakeOption), (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt) {
|
|
10951
11063
|
return React.createElement("option", {
|
|
10952
11064
|
key: getKey(opt),
|
|
10953
|
-
value: opt.value
|
|
11065
|
+
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10954
11066
|
}, opt.label);
|
|
10955
11067
|
})), React.createElement(Input$1, Object.assign({}, getInputProps())), React.createElement(CSSTransition, {
|
|
10956
11068
|
"in": panelOpened,
|
|
@@ -10967,7 +11079,7 @@ function Select(props) {
|
|
|
10967
11079
|
|
|
10968
11080
|
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2A + "-panel-input input");
|
|
10969
11081
|
|
|
10970
|
-
if (firstInput && !
|
|
11082
|
+
if (firstInput && !isiPhone()) {
|
|
10971
11083
|
setTimeout(function () {
|
|
10972
11084
|
firstInput.focus();
|
|
10973
11085
|
}, 50);
|
|
@@ -11006,7 +11118,7 @@ function Select(props) {
|
|
|
11006
11118
|
onExit: function onExit() {
|
|
11007
11119
|
var inputElement = document.querySelector("#" + id + " input");
|
|
11008
11120
|
|
|
11009
|
-
if (inputElement && !
|
|
11121
|
+
if (inputElement && !isiPhone()) {
|
|
11010
11122
|
inputElement.focus();
|
|
11011
11123
|
}
|
|
11012
11124
|
}
|
|
@@ -11034,13 +11146,13 @@ function Select(props) {
|
|
|
11034
11146
|
}
|
|
11035
11147
|
})), React.createElement("div", {
|
|
11036
11148
|
className: rootClassName$2A + "-options scroll-white"
|
|
11037
|
-
}, props.options && props.options.length ?
|
|
11149
|
+
}, props.options && props.options.length ? optionsFiltered.map(function (option) {
|
|
11038
11150
|
if (props.multiple) {
|
|
11039
11151
|
return getMultipleOption(option);
|
|
11040
11152
|
}
|
|
11041
11153
|
|
|
11042
11154
|
return getSingleOption(option);
|
|
11043
|
-
}) :
|
|
11155
|
+
}) : noOptionsMessage), props.multiple && props.showPanelFooter && props.options && !!props.options.length && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
11044
11156
|
className: rootClassName$2A + "-panel-footer-clearfix"
|
|
11045
11157
|
}), React.createElement("div", {
|
|
11046
11158
|
className: rootClassName$2A + "-panel-footer"
|
|
@@ -11049,9 +11161,7 @@ function Select(props) {
|
|
|
11049
11161
|
disabled: props.readOnly,
|
|
11050
11162
|
className: rootClassName$2A + "-footer-button",
|
|
11051
11163
|
onClick: function onClick() {
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
return props.onChange((_getOptionsFiltered2 = getOptionsFiltered()) === null || _getOptionsFiltered2 === void 0 ? void 0 : _getOptionsFiltered2.map(function (op) {
|
|
11164
|
+
return props.onChange(optionsFiltered.map(function (op) {
|
|
11055
11165
|
return op.value;
|
|
11056
11166
|
}));
|
|
11057
11167
|
},
|
|
@@ -11068,7 +11178,7 @@ function Select(props) {
|
|
|
11068
11178
|
}
|
|
11069
11179
|
|
|
11070
11180
|
Select.defaultProps = {
|
|
11071
|
-
onChange:
|
|
11181
|
+
onChange: undefined,
|
|
11072
11182
|
value: '',
|
|
11073
11183
|
multiple: false,
|
|
11074
11184
|
options: [],
|
|
@@ -11163,17 +11273,15 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
11163
11273
|
disabled: props.disabled,
|
|
11164
11274
|
onChange: props.onChange,
|
|
11165
11275
|
theme: props.theme
|
|
11166
|
-
})), React.createElement("span", Object.assign({}, props.spanProps, {
|
|
11276
|
+
})), React.createElement("span", Object.assign({}, props.spanProps || {}, {
|
|
11167
11277
|
className: getMergedClassNames([rootClassName$2D + "-label-wrapper", ((_props$spanProps2 = props.spanProps) === null || _props$spanProps2 === void 0 ? void 0 : _props$spanProps2.className) || '']),
|
|
11168
11278
|
style: style,
|
|
11169
11279
|
onClick: function onClick(evt) {
|
|
11170
|
-
var _props$spanProps3;
|
|
11171
|
-
|
|
11172
11280
|
if (props.anchorLabelToCheckbox) {
|
|
11173
11281
|
props.onChange(!props.value, evt);
|
|
11174
11282
|
}
|
|
11175
11283
|
|
|
11176
|
-
if (props.spanProps && typeof props.spanProps.onClick === 'function')
|
|
11284
|
+
if (props.spanProps && typeof props.spanProps.onClick === 'function') props.spanProps.onClick(evt);
|
|
11177
11285
|
}
|
|
11178
11286
|
}), props.label));
|
|
11179
11287
|
};
|
|
@@ -11200,9 +11308,9 @@ function Table(props) {
|
|
|
11200
11308
|
document.body.classList.remove('document-grabbing');
|
|
11201
11309
|
|
|
11202
11310
|
if (typeof props.confirmSort === 'function' && typeof props.onSort === 'function' && evt.oldIndex !== evt.newIndex) {
|
|
11203
|
-
var _props$confirmSort
|
|
11311
|
+
var _props$confirmSort$th;
|
|
11204
11312
|
|
|
11205
|
-
|
|
11313
|
+
(_props$confirmSort$th = props.confirmSort(evt).then(function () {
|
|
11206
11314
|
if (typeof props.onSort === 'function') {
|
|
11207
11315
|
props.onSort({
|
|
11208
11316
|
oldIndex: evt.oldIndex - 1,
|
|
@@ -11514,6 +11622,11 @@ function TableWithOverflow(props) {
|
|
|
11514
11622
|
}
|
|
11515
11623
|
};
|
|
11516
11624
|
|
|
11625
|
+
var someAbsoluteColumn = useMemo(function () {
|
|
11626
|
+
return props.columns.some(function (c) {
|
|
11627
|
+
return c.absolute;
|
|
11628
|
+
});
|
|
11629
|
+
}, [props.columns]);
|
|
11517
11630
|
var atLeastOneStaticColumn = useMemo(function () {
|
|
11518
11631
|
return props.columns.some(function (c) {
|
|
11519
11632
|
return !c.absolute;
|
|
@@ -11543,14 +11656,14 @@ function TableWithOverflow(props) {
|
|
|
11543
11656
|
|
|
11544
11657
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
11545
11658
|
return React.createElement("th", Object.assign({
|
|
11546
|
-
key: "header-" + column.key + "-" + atLeastOneStaticColumn,
|
|
11547
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
11659
|
+
key: "header-" + column.key + "-" + atLeastOneStaticColumn + "-" + someAbsoluteColumn,
|
|
11660
|
+
"data-draggable": someAbsoluteColumn && atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
11548
11661
|
}, column.props, {
|
|
11549
11662
|
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
11550
11663
|
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
11551
11664
|
}), column.value);
|
|
11552
11665
|
});
|
|
11553
|
-
}, [props.columns, atLeastOneStaticColumn]);
|
|
11666
|
+
}, [props.columns, atLeastOneStaticColumn, someAbsoluteColumn]);
|
|
11554
11667
|
var lines = useMemo(function () {
|
|
11555
11668
|
var _props$lines;
|
|
11556
11669
|
|
|
@@ -11569,8 +11682,8 @@ function TableWithOverflow(props) {
|
|
|
11569
11682
|
|
|
11570
11683
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
11571
11684
|
return React.createElement("td", Object.assign({
|
|
11572
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
11573
|
-
key: k + "-" + column.key + "-" + atLeastOneStaticColumn
|
|
11685
|
+
"data-draggable": someAbsoluteColumn && atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
11686
|
+
key: k + "-" + column.key + "-" + atLeastOneStaticColumn + "-" + someAbsoluteColumn
|
|
11574
11687
|
}, column.props, {
|
|
11575
11688
|
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
11576
11689
|
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
@@ -11579,7 +11692,7 @@ function TableWithOverflow(props) {
|
|
|
11579
11692
|
className: 'absolute right-0'
|
|
11580
11693
|
}));
|
|
11581
11694
|
});
|
|
11582
|
-
}, [props.
|
|
11695
|
+
}, [props.lines, props.columns, atLeastOneStaticColumn, someAbsoluteColumn]);
|
|
11583
11696
|
return React.createElement("div", {
|
|
11584
11697
|
className: rootClassName$2H
|
|
11585
11698
|
}, props.upperHeader ? React.createElement("div", {
|
|
@@ -12902,7 +13015,632 @@ VideoModal.defaultProps = {
|
|
|
12902
13015
|
size: 'md'
|
|
12903
13016
|
};
|
|
12904
13017
|
|
|
12905
|
-
var rootClassName$2Y = '
|
|
13018
|
+
var rootClassName$2Y = 'icon-component';
|
|
13019
|
+
var PhonePlusIcon = function PhonePlusIcon() {
|
|
13020
|
+
return React.createElement("svg", {
|
|
13021
|
+
className: rootClassName$2Y,
|
|
13022
|
+
viewBox: '0 0 24 24',
|
|
13023
|
+
fill: 'currentColor',
|
|
13024
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
13025
|
+
}, React.createElement("path", {
|
|
13026
|
+
fillRule: 'evenodd',
|
|
13027
|
+
clipRule: 'evenodd',
|
|
13028
|
+
d: 'M16.1844 22.137V12.314C19.3561 12.0595 21.8514 9.40447 21.8514 6.167C21.8514 2.76119 19.0899 0 15.6844 0C15.2701 0 14.8653 0.0408457 14.4739 0.118732C14.3867 0.0446762 14.2738 0 14.1504 0H4.01339C2.98425 0 2.15039 0.833858 2.15039 1.863V22.137C2.15039 23.1661 2.98425 24 4.01339 24H14.3214C15.3505 24 16.1844 23.1661 16.1844 22.137ZM15.1844 22.137V12.314C12.0119 12.0595 9.51639 9.40467 9.51639 6.167C9.51639 4.0038 10.6304 2.10076 12.316 1H4.01339C3.53653 1 3.15039 1.38614 3.15039 1.863V22.137C3.15039 22.6139 3.53653 23 4.01339 23H14.3214C14.7982 23 15.1844 22.6139 15.1844 22.137ZM20.8514 6.167C20.8514 9.0205 18.5376 11.334 15.6844 11.334C12.8303 11.334 10.5164 9.02064 10.5164 6.167C10.5164 3.31336 12.8303 1 15.6844 1C18.5376 1 20.8514 3.3135 20.8514 6.167ZM12.877 5.667H15.1844V3.3606C15.1844 3.08446 15.4082 2.8606 15.6844 2.8606C15.9605 2.8606 16.1844 3.08446 16.1844 3.3606V5.667H18.491C18.7671 5.667 18.991 5.89086 18.991 6.167C18.991 6.44314 18.7671 6.667 18.491 6.667H16.1844V8.9736C16.1844 9.24974 15.9605 9.4736 15.6844 9.4736C15.4082 9.4736 15.1844 9.24974 15.1844 8.9736V6.667H12.877C12.6008 6.667 12.377 6.44314 12.377 6.167C12.377 5.89086 12.6008 5.667 12.877 5.667ZM9.16709 21.3356C9.78109 21.3356 10.2791 20.8376 10.2791 20.2236C10.2791 19.6096 9.78109 19.1126 9.16709 19.1126C8.55309 19.1126 8.05509 19.6096 8.05509 20.2236C8.05509 20.8376 8.55309 21.3356 9.16709 21.3356Z'
|
|
13029
|
+
}));
|
|
13030
|
+
};
|
|
13031
|
+
|
|
13032
|
+
var rootClassName$2Z = 'calendar-header';
|
|
13033
|
+
function CalendarHeader(props) {
|
|
13034
|
+
var size = useScreenSize();
|
|
13035
|
+
var days = useMemo(function () {
|
|
13036
|
+
if (props.language.daysOfWeekAbrev && ['xs', 'sm'].includes(String(size))) {
|
|
13037
|
+
return props.language.daysOfWeekAbrev;
|
|
13038
|
+
}
|
|
13039
|
+
|
|
13040
|
+
return props.language.daysOfWeek;
|
|
13041
|
+
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
13042
|
+
return React.createElement("div", {
|
|
13043
|
+
className: rootClassName$2Z
|
|
13044
|
+
}, days.map(function (d, i) {
|
|
13045
|
+
return React.createElement("div", {
|
|
13046
|
+
className: rootClassName$2Z + "-day",
|
|
13047
|
+
key: i
|
|
13048
|
+
}, d);
|
|
13049
|
+
}));
|
|
13050
|
+
}
|
|
13051
|
+
|
|
13052
|
+
var rootClassName$2_ = 'evento-calendario';
|
|
13053
|
+
|
|
13054
|
+
function CalendarEvent(props) {
|
|
13055
|
+
var _useState = useState(props.forceExpanded || false),
|
|
13056
|
+
expanded = _useState[0],
|
|
13057
|
+
setExpanded = _useState[1];
|
|
13058
|
+
|
|
13059
|
+
var ref = createRef();
|
|
13060
|
+
var outClick = useCallback(function (evt) {
|
|
13061
|
+
if (!ref.current) return;
|
|
13062
|
+
|
|
13063
|
+
if (!evt.composedPath().includes(ref.current)) {
|
|
13064
|
+
setExpanded(false);
|
|
13065
|
+
evt.preventDefault();
|
|
13066
|
+
}
|
|
13067
|
+
}, [ref]);
|
|
13068
|
+
useEffect(function () {
|
|
13069
|
+
if (!props.forceExpanded && expanded) {
|
|
13070
|
+
window.addEventListener('click', outClick, false);
|
|
13071
|
+
}
|
|
13072
|
+
|
|
13073
|
+
return function () {
|
|
13074
|
+
if (!props.forceExpanded && expanded) {
|
|
13075
|
+
window.removeEventListener('click', outClick, false);
|
|
13076
|
+
}
|
|
13077
|
+
};
|
|
13078
|
+
}, [expanded, outClick, props.forceExpanded]);
|
|
13079
|
+
var content = useMemo(function () {
|
|
13080
|
+
switch (props.size) {
|
|
13081
|
+
case 'large':
|
|
13082
|
+
return React.createElement(Fragment$1, null, "large");
|
|
13083
|
+
|
|
13084
|
+
case 'medium':
|
|
13085
|
+
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
13086
|
+
className: rootClassName$2_ + "-tipo",
|
|
13087
|
+
style: {
|
|
13088
|
+
borderColor: props.color
|
|
13089
|
+
}
|
|
13090
|
+
}, props.tipoEvento), React.createElement("div", {
|
|
13091
|
+
className: rootClassName$2_ + "-label"
|
|
13092
|
+
}, React.createElement(CSSTransition, {
|
|
13093
|
+
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
13094
|
+
timeout: 300,
|
|
13095
|
+
classNames: 'label',
|
|
13096
|
+
unmountOnExit: true
|
|
13097
|
+
}, React.createElement("span", null, props.label)), React.createElement(Collapse$1, {
|
|
13098
|
+
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
13099
|
+
animateOpacity: true
|
|
13100
|
+
}, React.createElement(Fragment$1, null, React.createElement("span", null, props.expandedLabel), React.createElement("div", {
|
|
13101
|
+
className: rootClassName$2_ + "-date-label"
|
|
13102
|
+
}, props.expandedDate)))), React.createElement("div", {
|
|
13103
|
+
className: rootClassName$2_ + "-modalidade"
|
|
13104
|
+
}, React.createElement("div", {
|
|
13105
|
+
className: rootClassName$2_ + "-icon"
|
|
13106
|
+
}, props.icon), React.createElement("div", {
|
|
13107
|
+
className: rootClassName$2_ + "-modalidade-label nunito"
|
|
13108
|
+
}, props.iconLabel)));
|
|
13109
|
+
|
|
13110
|
+
case 'small':
|
|
13111
|
+
default:
|
|
13112
|
+
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
13113
|
+
className: rootClassName$2_ + "-icon"
|
|
13114
|
+
}, props.icon), React.createElement("div", {
|
|
13115
|
+
className: rootClassName$2_ + "-label nunito"
|
|
13116
|
+
}, props.tipoEvento, " | ", props.label));
|
|
13117
|
+
}
|
|
13118
|
+
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
13119
|
+
return React.createElement("button", {
|
|
13120
|
+
ref: ref,
|
|
13121
|
+
className: useMergedClassNames([rootClassName$2_, props.size, props.borderStyle]),
|
|
13122
|
+
disabled: props.disabled,
|
|
13123
|
+
onClick: function onClick() {
|
|
13124
|
+
if (typeof props.onClick === 'function') {
|
|
13125
|
+
props.onClick();
|
|
13126
|
+
}
|
|
13127
|
+
|
|
13128
|
+
if (!props.forceExpanded && props.expansible) {
|
|
13129
|
+
setExpanded(!expanded);
|
|
13130
|
+
}
|
|
13131
|
+
},
|
|
13132
|
+
style: {
|
|
13133
|
+
color: props.color,
|
|
13134
|
+
borderColor: props.color,
|
|
13135
|
+
borderStyle: props.borderStyle,
|
|
13136
|
+
width: props.width
|
|
13137
|
+
}
|
|
13138
|
+
}, content);
|
|
13139
|
+
}
|
|
13140
|
+
|
|
13141
|
+
CalendarEvent.defaultProps = {
|
|
13142
|
+
size: 'small',
|
|
13143
|
+
color: '#3fa110',
|
|
13144
|
+
borderStyle: 'solid'
|
|
13145
|
+
};
|
|
13146
|
+
var CalendarEvent$1 = memo(CalendarEvent);
|
|
13147
|
+
|
|
13148
|
+
var rootClassName$2$ = 'calendar-chip';
|
|
13149
|
+
|
|
13150
|
+
function CalendarChip(props) {
|
|
13151
|
+
return React.createElement("button", {
|
|
13152
|
+
className: useMergedClassNames([rootClassName$2$, 'nunito']),
|
|
13153
|
+
onClick: props.onClick,
|
|
13154
|
+
disabled: props.disabled,
|
|
13155
|
+
style: {
|
|
13156
|
+
borderStyle: props.borderStyle,
|
|
13157
|
+
color: props.color
|
|
13158
|
+
}
|
|
13159
|
+
}, "+", props.num);
|
|
13160
|
+
}
|
|
13161
|
+
|
|
13162
|
+
CalendarChip.defaultProps = {
|
|
13163
|
+
color: '#3fa110',
|
|
13164
|
+
borderStyle: 'solid'
|
|
13165
|
+
};
|
|
13166
|
+
var CalendarChip$1 = memo(CalendarChip);
|
|
13167
|
+
|
|
13168
|
+
var rootClassName$30 = 'calendar-month-day';
|
|
13169
|
+
|
|
13170
|
+
function CalendarMonthDay(props) {
|
|
13171
|
+
var _props$eventos, _props$eventos2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
13172
|
+
|
|
13173
|
+
var classNames = useMemo(function () {
|
|
13174
|
+
return getMergedClassNames([rootClassName$30, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
13175
|
+
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
13176
|
+
return React.createElement("div", {
|
|
13177
|
+
className: classNames
|
|
13178
|
+
}, React.createElement("div", {
|
|
13179
|
+
className: rootClassName$30 + "-label-line"
|
|
13180
|
+
}, React.createElement("div", {
|
|
13181
|
+
className: rootClassName$30 + "-day nunito",
|
|
13182
|
+
onClick: function onClick(evt) {
|
|
13183
|
+
if (props.pocket && !props.disabled && typeof props.onAddButtonClick === 'function') {
|
|
13184
|
+
props.onAddButtonClick(props.day, evt);
|
|
13185
|
+
}
|
|
13186
|
+
}
|
|
13187
|
+
}, React.createElement(Notification, {
|
|
13188
|
+
count: props.pocket ? (_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.length : 0,
|
|
13189
|
+
type: props.disabled ? NotificationType.Disabled : NotificationType.Primary,
|
|
13190
|
+
verticalOuter: 11,
|
|
13191
|
+
horizontalOuter: 14
|
|
13192
|
+
}, getTwoNumbersIfNotTen(props.day.getDate()))), React.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$eventos2 = props.eventos) === null || _props$eventos2 === void 0 ? void 0 : _props$eventos2.length) > 2 ? React.createElement(CalendarChip$1, {
|
|
13193
|
+
num: ((_props$eventos3 = props.eventos) === null || _props$eventos3 === void 0 ? void 0 : _props$eventos3.length) - 2,
|
|
13194
|
+
onClick: function onClick(evt) {
|
|
13195
|
+
if (typeof props.onPlusButtonClick === 'function') {
|
|
13196
|
+
props.onPlusButtonClick(props.day, evt);
|
|
13197
|
+
}
|
|
13198
|
+
},
|
|
13199
|
+
disabled: props.disabled
|
|
13200
|
+
}) : undefined)), !props.pocket ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
13201
|
+
className: rootClassName$30 + "-eventos"
|
|
13202
|
+
}, (_props$eventos4 = props.eventos) === null || _props$eventos4 === void 0 ? void 0 : (_props$eventos4$slice = _props$eventos4.slice(0, 2)) === null || _props$eventos4$slice === void 0 ? void 0 : _props$eventos4$slice.map(function (e) {
|
|
13203
|
+
return React.createElement(CalendarEvent$1, Object.assign({
|
|
13204
|
+
key: e.id
|
|
13205
|
+
}, e, {
|
|
13206
|
+
disabled: props.disabled
|
|
13207
|
+
}));
|
|
13208
|
+
})), props.showAddButton ? React.createElement("button", {
|
|
13209
|
+
disabled: props.disabled,
|
|
13210
|
+
className: rootClassName$30 + "-button",
|
|
13211
|
+
onClick: function onClick(evt) {
|
|
13212
|
+
if (typeof props.onAddButtonClick === 'function') {
|
|
13213
|
+
props.onAddButtonClick(props.day, evt);
|
|
13214
|
+
}
|
|
13215
|
+
}
|
|
13216
|
+
}, React.createElement("span", null, React.createElement(AddCircleIcon, null), props.language.addNew)) : undefined) : undefined);
|
|
13217
|
+
}
|
|
13218
|
+
|
|
13219
|
+
var CalendarMonthDay$1 = memo(CalendarMonthDay);
|
|
13220
|
+
|
|
13221
|
+
var rootClassName$31 = 'calendar-days';
|
|
13222
|
+
|
|
13223
|
+
function CalendarDays(props) {
|
|
13224
|
+
var today = useMemo(function () {
|
|
13225
|
+
return new Date();
|
|
13226
|
+
}, []);
|
|
13227
|
+
var days = useMemo(function () {
|
|
13228
|
+
return props.visao === CalendarView.Semanal ? getWeekInMonth(props.referencia) : getDaysInMonth(props.referencia);
|
|
13229
|
+
}, [props.referencia, props.visao]);
|
|
13230
|
+
var disabledDay = useCallback(function (date) {
|
|
13231
|
+
if (props.disabledPrevMonth && (date.getFullYear() < props.referencia.getFullYear() || date.getMonth() < props.referencia.getMonth())) {
|
|
13232
|
+
return true;
|
|
13233
|
+
}
|
|
13234
|
+
|
|
13235
|
+
if (props.disabledNextMonth && (date.getFullYear() > props.referencia.getFullYear() || date.getMonth() > props.referencia.getMonth())) {
|
|
13236
|
+
return true;
|
|
13237
|
+
}
|
|
13238
|
+
|
|
13239
|
+
return false;
|
|
13240
|
+
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
13241
|
+
return React.createElement("div", {
|
|
13242
|
+
className: rootClassName$31
|
|
13243
|
+
}, days.map(function (d) {
|
|
13244
|
+
var _props$eventos;
|
|
13245
|
+
|
|
13246
|
+
var k = "" + d.getFullYear() + (d.getMonth() + 1) + d.getDate();
|
|
13247
|
+
var eventos = (_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.get(k);
|
|
13248
|
+
return React.createElement(CalendarMonthDay$1, {
|
|
13249
|
+
pocket: props.pocket,
|
|
13250
|
+
language: props.language,
|
|
13251
|
+
key: d.getTime(),
|
|
13252
|
+
day: d,
|
|
13253
|
+
eventos: eventos,
|
|
13254
|
+
isToday: d.getDate() === today.getDate() && d.getMonth() === today.getMonth() && d.getFullYear() === today.getFullYear(),
|
|
13255
|
+
disabled: disabledDay(d) || props.loading,
|
|
13256
|
+
showAddButton: props.showAddButton,
|
|
13257
|
+
onAddButtonClick: props.onAddButtonClick,
|
|
13258
|
+
showPlusIcon: props.showPlusIcon,
|
|
13259
|
+
onPlusButtonClick: props.onPlusButtonClick,
|
|
13260
|
+
highlightWeekends: props.highlightWeekends
|
|
13261
|
+
});
|
|
13262
|
+
}));
|
|
13263
|
+
}
|
|
13264
|
+
|
|
13265
|
+
var CalendarDays$1 = memo(CalendarDays);
|
|
13266
|
+
|
|
13267
|
+
var rootClassName$32 = 'calendar';
|
|
13268
|
+
|
|
13269
|
+
function Calendar(props) {
|
|
13270
|
+
var id = useMemo(getUniqueKey, []);
|
|
13271
|
+
|
|
13272
|
+
var _useState = useState(false),
|
|
13273
|
+
pocket = _useState[0],
|
|
13274
|
+
setPocket = _useState[1];
|
|
13275
|
+
|
|
13276
|
+
var pocketRef = useRef(pocket);
|
|
13277
|
+
pocketRef.current = pocket;
|
|
13278
|
+
var classNames = useMemo(function () {
|
|
13279
|
+
return getMergedClassNames([rootClassName$32, props.loading ? 'loading' : '']);
|
|
13280
|
+
}, [props.loading]);
|
|
13281
|
+
var cbResize = useCallback(function (evt) {
|
|
13282
|
+
if (pocketRef.current) {
|
|
13283
|
+
if (evt[0].contentBoxSize[0].inlineSize > 805) {
|
|
13284
|
+
setPocket(false);
|
|
13285
|
+
}
|
|
13286
|
+
} else {
|
|
13287
|
+
if (evt[0].contentBoxSize[0].inlineSize < 794) {
|
|
13288
|
+
setPocket(true);
|
|
13289
|
+
}
|
|
13290
|
+
}
|
|
13291
|
+
}, []);
|
|
13292
|
+
useEffect(function () {
|
|
13293
|
+
var calendar = document.querySelector("#" + id);
|
|
13294
|
+
var observer = new window.ResizeObserver(cbResize);
|
|
13295
|
+
|
|
13296
|
+
if (calendar) {
|
|
13297
|
+
observer.observe(calendar);
|
|
13298
|
+
}
|
|
13299
|
+
|
|
13300
|
+
return function () {
|
|
13301
|
+
observer.disconnect();
|
|
13302
|
+
};
|
|
13303
|
+
}, [id, pocket]);
|
|
13304
|
+
return React.createElement("div", {
|
|
13305
|
+
id: id,
|
|
13306
|
+
className: classNames
|
|
13307
|
+
}, React.createElement(CalendarHeader, {
|
|
13308
|
+
language: props.language
|
|
13309
|
+
}), React.createElement(CalendarDays$1, {
|
|
13310
|
+
pocket: pocket,
|
|
13311
|
+
visao: props.visao,
|
|
13312
|
+
referencia: props.referencia,
|
|
13313
|
+
disabledNextMonth: props.disabledNextMonth,
|
|
13314
|
+
disabledPrevMonth: props.disabledPrevMonth,
|
|
13315
|
+
language: props.language,
|
|
13316
|
+
showAddButton: props.showAddButton,
|
|
13317
|
+
onAddButtonClick: props.onAddButtonClick,
|
|
13318
|
+
showPlusIcon: props.showPlusIcon,
|
|
13319
|
+
onPlusButtonClick: props.onPlusButtonClick,
|
|
13320
|
+
highlightWeekends: props.highlightWeekends,
|
|
13321
|
+
loading: props.loading,
|
|
13322
|
+
eventos: props.eventos
|
|
13323
|
+
}));
|
|
13324
|
+
}
|
|
13325
|
+
|
|
13326
|
+
Calendar.defaultProps = {
|
|
13327
|
+
language: ptbrCalendarLanguage,
|
|
13328
|
+
loading: false,
|
|
13329
|
+
disabledNextMonth: true,
|
|
13330
|
+
disabledPrevMonth: true,
|
|
13331
|
+
highlightWeekends: true,
|
|
13332
|
+
showAddButton: true,
|
|
13333
|
+
showPlusIcon: true,
|
|
13334
|
+
visao: CalendarView.Mensal,
|
|
13335
|
+
referencia: new Date()
|
|
13336
|
+
};
|
|
13337
|
+
var Calendar$1 = memo(Calendar);
|
|
13338
|
+
|
|
13339
|
+
var rootClassName$33 = 'floating-panel';
|
|
13340
|
+
|
|
13341
|
+
function FloatingPanel(props) {
|
|
13342
|
+
var id = useMemo(getUniqueKey, []);
|
|
13343
|
+
var onClick = useCallback(function (evt) {
|
|
13344
|
+
var wrapper = document.getElementById(id);
|
|
13345
|
+
if (!wrapper) return;
|
|
13346
|
+
|
|
13347
|
+
if (!evt.composedPath().includes(wrapper)) {
|
|
13348
|
+
props.setOpened(false);
|
|
13349
|
+
evt.preventDefault();
|
|
13350
|
+
}
|
|
13351
|
+
}, [id, props]);
|
|
13352
|
+
var onEsc = useCallback(function (evt) {
|
|
13353
|
+
if (evt.key === 'Escape') {
|
|
13354
|
+
evt.preventDefault();
|
|
13355
|
+
evt.stopPropagation();
|
|
13356
|
+
props.setOpened(false);
|
|
13357
|
+
}
|
|
13358
|
+
}, [props]);
|
|
13359
|
+
var updatePosition = useCallback(function () {
|
|
13360
|
+
var wrapper = document.getElementById(id);
|
|
13361
|
+
if (!wrapper) return;
|
|
13362
|
+
var computedStyle = wrapper.getBoundingClientRect();
|
|
13363
|
+
var panel = document.querySelector("#" + id + " ." + rootClassName$33);
|
|
13364
|
+
if (!panel) return;
|
|
13365
|
+
panel.style.top = computedStyle.top + computedStyle.height + "px";
|
|
13366
|
+
panel.style.left = computedStyle.left + "px";
|
|
13367
|
+
}, [id]);
|
|
13368
|
+
var updateSize = useCallback(function () {
|
|
13369
|
+
var _document$getElementB;
|
|
13370
|
+
|
|
13371
|
+
var anchor = (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.parentElement;
|
|
13372
|
+
var panel = document.querySelector("#" + id + " ." + rootClassName$33);
|
|
13373
|
+
if (!panel || !anchor) return;
|
|
13374
|
+
var computedStyle = window.getComputedStyle(anchor);
|
|
13375
|
+
panel.style.width = computedStyle.width;
|
|
13376
|
+
}, [id]);
|
|
13377
|
+
useEffect(function () {
|
|
13378
|
+
var wrapper = document.getElementById(id);
|
|
13379
|
+
var scrollableElements = getParents(wrapper);
|
|
13380
|
+
|
|
13381
|
+
var positionAndSize = function positionAndSize() {
|
|
13382
|
+
updatePosition();
|
|
13383
|
+
updateSize();
|
|
13384
|
+
};
|
|
13385
|
+
|
|
13386
|
+
var observer = new window.MutationObserver(positionAndSize);
|
|
13387
|
+
|
|
13388
|
+
if (props.opened) {
|
|
13389
|
+
positionAndSize();
|
|
13390
|
+
observer.observe(document.body, {
|
|
13391
|
+
attributes: true,
|
|
13392
|
+
childList: true,
|
|
13393
|
+
characterData: true,
|
|
13394
|
+
subtree: true
|
|
13395
|
+
});
|
|
13396
|
+
|
|
13397
|
+
for (var _iterator = _createForOfIteratorHelperLoose(scrollableElements), _step; !(_step = _iterator()).done;) {
|
|
13398
|
+
var el = _step.value;
|
|
13399
|
+
el.addEventListener('scroll', updatePosition, false);
|
|
13400
|
+
}
|
|
13401
|
+
|
|
13402
|
+
window.addEventListener('resize', positionAndSize, false);
|
|
13403
|
+
document.addEventListener('keydown', onEsc, false);
|
|
13404
|
+
document.addEventListener('click', onClick, false);
|
|
13405
|
+
}
|
|
13406
|
+
|
|
13407
|
+
return function () {
|
|
13408
|
+
if (props.opened) {
|
|
13409
|
+
observer.disconnect();
|
|
13410
|
+
document.removeEventListener('keydown', onEsc, false);
|
|
13411
|
+
document.removeEventListener('click', onClick, false);
|
|
13412
|
+
window.removeEventListener('resize', positionAndSize, false);
|
|
13413
|
+
|
|
13414
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(scrollableElements), _step2; !(_step2 = _iterator2()).done;) {
|
|
13415
|
+
var _el = _step2.value;
|
|
13416
|
+
|
|
13417
|
+
_el.removeEventListener('scroll', updatePosition, false);
|
|
13418
|
+
}
|
|
13419
|
+
}
|
|
13420
|
+
};
|
|
13421
|
+
}, [props.opened]);
|
|
13422
|
+
return React.createElement("div", {
|
|
13423
|
+
id: id,
|
|
13424
|
+
className: rootClassName$33 + "-wrapper",
|
|
13425
|
+
style: {
|
|
13426
|
+
bottom: props.bottom
|
|
13427
|
+
}
|
|
13428
|
+
}, React.createElement(CSSTransition, {
|
|
13429
|
+
"in": props.opened,
|
|
13430
|
+
classNames: rootClassName$33,
|
|
13431
|
+
timeout: 300,
|
|
13432
|
+
unmountOnExit: true
|
|
13433
|
+
}, React.createElement("div", {
|
|
13434
|
+
className: useMergedClassNames([rootClassName$33, props.className, props.boxShadow ? 'shadow' : '', props.radiusStyle])
|
|
13435
|
+
}, props.children)));
|
|
13436
|
+
}
|
|
13437
|
+
|
|
13438
|
+
FloatingPanel.defaultProps = {
|
|
13439
|
+
boxShadow: true,
|
|
13440
|
+
radiusStyle: 'only-bottom'
|
|
13441
|
+
};
|
|
13442
|
+
var FloatingPanel$1 = memo(FloatingPanel);
|
|
13443
|
+
|
|
13444
|
+
var rootClassName$34 = 'scroll-arrow-overflow';
|
|
13445
|
+
|
|
13446
|
+
function ScrollArrowOverflow(props) {
|
|
13447
|
+
var ref = createRef();
|
|
13448
|
+
var atualRef = useRef(0);
|
|
13449
|
+
|
|
13450
|
+
var _useState = useState(true),
|
|
13451
|
+
end = _useState[0],
|
|
13452
|
+
setEnd = _useState[1];
|
|
13453
|
+
|
|
13454
|
+
var atEnd = useRef(end);
|
|
13455
|
+
atEnd.current = end;
|
|
13456
|
+
|
|
13457
|
+
var _useState2 = useState(true),
|
|
13458
|
+
start = _useState2[0],
|
|
13459
|
+
setStart = _useState2[1];
|
|
13460
|
+
|
|
13461
|
+
var atStart = useRef(start);
|
|
13462
|
+
atStart.current = start;
|
|
13463
|
+
var handleScroll = useCallback(function (delta) {
|
|
13464
|
+
if (!ref.current) return;
|
|
13465
|
+
var container = ref.current;
|
|
13466
|
+
var unitSize = container.scrollWidth / container.childElementCount;
|
|
13467
|
+
atualRef.current = Math.ceil(container.scrollLeft / unitSize);
|
|
13468
|
+
var newLeft = (atualRef.current + delta) * unitSize;
|
|
13469
|
+
scrollSmooth({
|
|
13470
|
+
element: container,
|
|
13471
|
+
top: 0,
|
|
13472
|
+
left: newLeft,
|
|
13473
|
+
duration: 300,
|
|
13474
|
+
behavior: 'smooth'
|
|
13475
|
+
});
|
|
13476
|
+
}, [ref]);
|
|
13477
|
+
var stickToAtual = useCallback(function () {
|
|
13478
|
+
if (!ref.current) return;
|
|
13479
|
+
var container = ref.current;
|
|
13480
|
+
var unitSize = container.scrollWidth / container.childElementCount;
|
|
13481
|
+
atualRef.current = Math.ceil(container.scrollLeft / unitSize);
|
|
13482
|
+
var newLeft = atualRef.current * unitSize;
|
|
13483
|
+
container.scrollLeft = newLeft;
|
|
13484
|
+
}, [ref]);
|
|
13485
|
+
useEffect(function () {
|
|
13486
|
+
window.addEventListener('resize', stickToAtual, false);
|
|
13487
|
+
return function () {
|
|
13488
|
+
window.removeEventListener('resize', stickToAtual, false);
|
|
13489
|
+
};
|
|
13490
|
+
}, []);
|
|
13491
|
+
var t = useCallback(function (evt) {
|
|
13492
|
+
var target = evt.target;
|
|
13493
|
+
|
|
13494
|
+
if (target.scrollLeft === 0) {
|
|
13495
|
+
if (!atStart.current) {
|
|
13496
|
+
setStart(true);
|
|
13497
|
+
}
|
|
13498
|
+
} else if (atStart.current) {
|
|
13499
|
+
setStart(false);
|
|
13500
|
+
}
|
|
13501
|
+
|
|
13502
|
+
if (target.offsetWidth + target.scrollLeft >= target.scrollWidth) {
|
|
13503
|
+
if (!atEnd.current) {
|
|
13504
|
+
setEnd(true);
|
|
13505
|
+
}
|
|
13506
|
+
} else if (atEnd.current) {
|
|
13507
|
+
setEnd(false);
|
|
13508
|
+
}
|
|
13509
|
+
}, []);
|
|
13510
|
+
useEffect(function () {
|
|
13511
|
+
var element = ref.current;
|
|
13512
|
+
t({
|
|
13513
|
+
target: element
|
|
13514
|
+
});
|
|
13515
|
+
element === null || element === void 0 ? void 0 : element.addEventListener('scroll', t, false);
|
|
13516
|
+
return function () {
|
|
13517
|
+
element === null || element === void 0 ? void 0 : element.removeEventListener('scroll', t, false);
|
|
13518
|
+
};
|
|
13519
|
+
}, []);
|
|
13520
|
+
return React.createElement("div", {
|
|
13521
|
+
className: useMergedClassNames([rootClassName$34, props.arrows])
|
|
13522
|
+
}, React.createElement("div", {
|
|
13523
|
+
className: rootClassName$34 + "-navigation"
|
|
13524
|
+
}, React.createElement(IconButton$1, {
|
|
13525
|
+
disabled: start,
|
|
13526
|
+
icon: React.createElement(CircleArrowLeft, null),
|
|
13527
|
+
onClick: function onClick() {
|
|
13528
|
+
handleScroll(-1);
|
|
13529
|
+
}
|
|
13530
|
+
}), React.createElement(IconButton$1, {
|
|
13531
|
+
disabled: end,
|
|
13532
|
+
icon: React.createElement(CircleArrowRight, null),
|
|
13533
|
+
onClick: function onClick() {
|
|
13534
|
+
handleScroll(+1);
|
|
13535
|
+
}
|
|
13536
|
+
})), React.createElement("div", {
|
|
13537
|
+
ref: ref,
|
|
13538
|
+
className: rootClassName$34 + "-overflow"
|
|
13539
|
+
}, props.children));
|
|
13540
|
+
}
|
|
13541
|
+
|
|
13542
|
+
ScrollArrowOverflow.defaultProps = {
|
|
13543
|
+
arrows: 'left',
|
|
13544
|
+
defaultOpened: true
|
|
13545
|
+
};
|
|
13546
|
+
var ScrollArrowOverflow$1 = memo(ScrollArrowOverflow);
|
|
13547
|
+
|
|
13548
|
+
var rootClassName$35 = 'hour-events';
|
|
13549
|
+
|
|
13550
|
+
function HourEvents(props) {
|
|
13551
|
+
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
13552
|
+
|
|
13553
|
+
var _useState = useState(props.defaultOpened),
|
|
13554
|
+
opened = _useState[0],
|
|
13555
|
+
setOpened = _useState[1];
|
|
13556
|
+
|
|
13557
|
+
return React.createElement("div", {
|
|
13558
|
+
className: rootClassName$35
|
|
13559
|
+
}, React.createElement("div", {
|
|
13560
|
+
className: rootClassName$35 + "-first-line"
|
|
13561
|
+
}, React.createElement("div", {
|
|
13562
|
+
className: rootClassName$35 + "-hour"
|
|
13563
|
+
}, props.hour), React.createElement("div", {
|
|
13564
|
+
className: rootClassName$35 + "-line"
|
|
13565
|
+
}), !props.events || !props.events.length ? React.createElement("div", {
|
|
13566
|
+
className: rootClassName$35 + "-no-events nunito"
|
|
13567
|
+
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React.createElement("div", {
|
|
13568
|
+
className: rootClassName$35 + "-counter nunito"
|
|
13569
|
+
}, (_props$language2 = props.language) === null || _props$language2 === void 0 ? void 0 : _props$language2.events((_props$events = props.events) === null || _props$events === void 0 ? void 0 : _props$events.length))), (_props$events2 = props.events) !== null && _props$events2 !== void 0 && _props$events2.length ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
13570
|
+
className: rootClassName$35 + "-toggle"
|
|
13571
|
+
}, React.createElement(Button$1, {
|
|
13572
|
+
theme: ButtonThemes.DefaultPrimary,
|
|
13573
|
+
onClick: function onClick() {
|
|
13574
|
+
setOpened(!opened);
|
|
13575
|
+
}
|
|
13576
|
+
}, (_props$language3 = props.language) === null || _props$language3 === void 0 ? void 0 : _props$language3.label[opened ? 'opened' : 'closed'])), React.createElement(Collapse$1, {
|
|
13577
|
+
opened: opened,
|
|
13578
|
+
animateOpacity: true
|
|
13579
|
+
}, React.createElement(ScrollArrowOverflow$1, {
|
|
13580
|
+
arrows: props.arrows
|
|
13581
|
+
}, (_props$events3 = props.events) === null || _props$events3 === void 0 ? void 0 : _props$events3.map(function (e, index) {
|
|
13582
|
+
return React.createElement(Col$1, {
|
|
13583
|
+
cols: props.eventCols,
|
|
13584
|
+
key: e.id || index
|
|
13585
|
+
}, React.createElement(CalendarEvent$1, Object.assign({}, e)));
|
|
13586
|
+
})))) : undefined);
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
HourEvents.defaultProps = {
|
|
13590
|
+
eventCols: [6, 6, 5, 3, 3],
|
|
13591
|
+
events: [],
|
|
13592
|
+
defaultOpened: true,
|
|
13593
|
+
language: {
|
|
13594
|
+
events: function events(n) {
|
|
13595
|
+
return n + " evento" + (n !== 1 ? 's' : '');
|
|
13596
|
+
},
|
|
13597
|
+
label: {
|
|
13598
|
+
opened: 'Ver menos',
|
|
13599
|
+
closed: 'Ver mais'
|
|
13600
|
+
},
|
|
13601
|
+
noEvent: 'Nenhum evento'
|
|
13602
|
+
}
|
|
13603
|
+
};
|
|
13604
|
+
var HourEvents$1 = memo(HourEvents);
|
|
13605
|
+
|
|
13606
|
+
var rootClassName$36 = 'inline-month-picker';
|
|
13607
|
+
|
|
13608
|
+
function InlineMonthPicker(props) {
|
|
13609
|
+
return React.createElement("div", {
|
|
13610
|
+
className: rootClassName$36
|
|
13611
|
+
}, React.createElement("div", {
|
|
13612
|
+
className: rootClassName$36 + "-icon"
|
|
13613
|
+
}, React.createElement(CalendarCheckIcon, null)), React.createElement("div", {
|
|
13614
|
+
className: rootClassName$36 + "-label"
|
|
13615
|
+
}, props.labelGen(props.value)), React.createElement("div", {
|
|
13616
|
+
className: rootClassName$36 + "-actions"
|
|
13617
|
+
}, React.createElement(IconButton$1, {
|
|
13618
|
+
icon: React.createElement(ChevronArrowLeftIcon, null),
|
|
13619
|
+
onClick: function onClick() {
|
|
13620
|
+
var d = new Date(props.value.getTime());
|
|
13621
|
+
d.setMonth(d.getMonth() - 1);
|
|
13622
|
+
props.onChange(d);
|
|
13623
|
+
},
|
|
13624
|
+
disabled: props.disabled
|
|
13625
|
+
}), React.createElement(IconButton$1, {
|
|
13626
|
+
icon: React.createElement(ChevronArrowRightIcon, null),
|
|
13627
|
+
onClick: function onClick() {
|
|
13628
|
+
var d = new Date(props.value.getTime());
|
|
13629
|
+
d.setMonth(d.getMonth() + 1);
|
|
13630
|
+
props.onChange(d);
|
|
13631
|
+
},
|
|
13632
|
+
disabled: props.disabled
|
|
13633
|
+
})));
|
|
13634
|
+
}
|
|
13635
|
+
|
|
13636
|
+
InlineMonthPicker.defaultProps = {
|
|
13637
|
+
value: new Date(),
|
|
13638
|
+
language: ptbrCalendarLanguage,
|
|
13639
|
+
labelGen: ptbrInlineMonthPickerLabelGenerator
|
|
13640
|
+
};
|
|
13641
|
+
var InlineMonthPicker$1 = memo(InlineMonthPicker);
|
|
13642
|
+
|
|
13643
|
+
var rootClassName$37 = 'qrcode';
|
|
12906
13644
|
|
|
12907
13645
|
function QRCode(props) {
|
|
12908
13646
|
var ref = createRef();
|
|
@@ -12922,7 +13660,7 @@ function QRCode(props) {
|
|
|
12922
13660
|
});
|
|
12923
13661
|
}, [props, ref]);
|
|
12924
13662
|
var className = useMemo(function () {
|
|
12925
|
-
return getMergedClassNames([rootClassName$
|
|
13663
|
+
return getMergedClassNames([rootClassName$37, props.button ? 'button' : '']);
|
|
12926
13664
|
}, [props.button]);
|
|
12927
13665
|
return React.createElement("div", {
|
|
12928
13666
|
className: className,
|
|
@@ -12973,276 +13711,6 @@ function useDropOpened(initialState) {
|
|
|
12973
13711
|
return [opened, toggleOpened];
|
|
12974
13712
|
}
|
|
12975
13713
|
|
|
12976
|
-
var rootClassName$2Z = 'comp-modal-manager';
|
|
12977
|
-
var maskRootClassName$1 = 'component-modal-mask';
|
|
12978
|
-
|
|
12979
|
-
var hackFocus$1 = function hackFocus() {
|
|
12980
|
-
var tmp = document.createElement('input');
|
|
12981
|
-
document.body.appendChild(tmp);
|
|
12982
|
-
tmp.focus();
|
|
12983
|
-
document.body.removeChild(tmp);
|
|
12984
|
-
};
|
|
12985
|
-
|
|
12986
|
-
function useModalManager() {
|
|
12987
|
-
var _useState = useState([]),
|
|
12988
|
-
arrayOfModal = _useState[0],
|
|
12989
|
-
setArrayOfModal = _useState[1];
|
|
12990
|
-
|
|
12991
|
-
var refModals = useRef(arrayOfModal);
|
|
12992
|
-
refModals.current = arrayOfModal;
|
|
12993
|
-
useEffect(function () {
|
|
12994
|
-
var escapeCall = function escapeCall(evt) {
|
|
12995
|
-
if (evt.key === 'Escape' && refModals.current.length) {
|
|
12996
|
-
var mprops = refModals.current[refModals.current.length - 1].props;
|
|
12997
|
-
|
|
12998
|
-
if (!(mprops !== null && mprops !== void 0 && mprops.preventEscExit)) {
|
|
12999
|
-
closeModalByKey(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
13000
|
-
|
|
13001
|
-
if (typeof (mprops === null || mprops === void 0 ? void 0 : mprops.onClose) === 'function') {
|
|
13002
|
-
mprops === null || mprops === void 0 ? void 0 : mprops.onClose(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
13003
|
-
}
|
|
13004
|
-
}
|
|
13005
|
-
}
|
|
13006
|
-
};
|
|
13007
|
-
|
|
13008
|
-
document.addEventListener('keydown', escapeCall);
|
|
13009
|
-
return function () {
|
|
13010
|
-
document.removeEventListener('keydown', escapeCall);
|
|
13011
|
-
};
|
|
13012
|
-
}, []);
|
|
13013
|
-
|
|
13014
|
-
var closeModalByKey = function closeModalByKey(modalKey) {
|
|
13015
|
-
var arr = refModals.current.slice();
|
|
13016
|
-
arr = arr.filter(function (obj) {
|
|
13017
|
-
return String(obj.props.modalKey) !== String(modalKey);
|
|
13018
|
-
});
|
|
13019
|
-
setArrayOfModal(arr);
|
|
13020
|
-
};
|
|
13021
|
-
|
|
13022
|
-
var openModal = function openModal(component, modalProps) {
|
|
13023
|
-
var modalKey = modalProps.modalKey ? modalProps.modalKey : getUniqueKey();
|
|
13024
|
-
|
|
13025
|
-
if (typeof component === 'function') {
|
|
13026
|
-
var arr = refModals.current.slice();
|
|
13027
|
-
|
|
13028
|
-
var p = _extends({}, modalProps, {
|
|
13029
|
-
modalKey: modalKey,
|
|
13030
|
-
onClose: function onClose(modalKey) {
|
|
13031
|
-
closeModalByKey(modalKey);
|
|
13032
|
-
|
|
13033
|
-
if (typeof modalProps.onClose === 'function') {
|
|
13034
|
-
modalProps.onClose(modalKey);
|
|
13035
|
-
}
|
|
13036
|
-
}
|
|
13037
|
-
});
|
|
13038
|
-
|
|
13039
|
-
arr.push({
|
|
13040
|
-
component: component,
|
|
13041
|
-
props: p
|
|
13042
|
-
});
|
|
13043
|
-
setArrayOfModal(arr);
|
|
13044
|
-
hackFocus$1();
|
|
13045
|
-
return modalKey;
|
|
13046
|
-
}
|
|
13047
|
-
|
|
13048
|
-
return '';
|
|
13049
|
-
};
|
|
13050
|
-
|
|
13051
|
-
var closeModal = function closeModal(modalKey) {
|
|
13052
|
-
if (modalKey) {
|
|
13053
|
-
closeModalByKey(modalKey);
|
|
13054
|
-
} else if (refModals.current.length) {
|
|
13055
|
-
var _refModals$current, _refModals$current$pr;
|
|
13056
|
-
|
|
13057
|
-
closeModalByKey((_refModals$current = refModals.current[refModals.current.length - 1]) === null || _refModals$current === void 0 ? void 0 : (_refModals$current$pr = _refModals$current.props) === null || _refModals$current$pr === void 0 ? void 0 : _refModals$current$pr.modalKey);
|
|
13058
|
-
}
|
|
13059
|
-
};
|
|
13060
|
-
|
|
13061
|
-
return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
13062
|
-
className: rootClassName$2Z + "-modals"
|
|
13063
|
-
}, arrayOfModal.map(function (obj) {
|
|
13064
|
-
var _obj$props, _obj$props2, _obj$props3;
|
|
13065
|
-
|
|
13066
|
-
var M = obj.component;
|
|
13067
|
-
return React.createElement(CSSTransition, {
|
|
13068
|
-
timeout: 300,
|
|
13069
|
-
classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$2Z + "-mask-mobile-on-xs" : rootClassName$2Z + "-mask",
|
|
13070
|
-
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
13071
|
-
unmountOnExit: true
|
|
13072
|
-
}, React.createElement(ModalMask, {
|
|
13073
|
-
mobileOnXS: Boolean((_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.mobileOnXS),
|
|
13074
|
-
onClick: function onClick(evt) {
|
|
13075
|
-
if (evt.target.classList.contains(maskRootClassName$1)) {
|
|
13076
|
-
var _obj$props4, _obj$props5;
|
|
13077
|
-
|
|
13078
|
-
if (typeof ((_obj$props4 = obj.props) === null || _obj$props4 === void 0 ? void 0 : _obj$props4.onClose) === 'function' && !((_obj$props5 = obj.props) !== null && _obj$props5 !== void 0 && _obj$props5.preventMaskExit)) {
|
|
13079
|
-
var _obj$props6, _obj$props7;
|
|
13080
|
-
|
|
13081
|
-
(_obj$props6 = obj.props) === null || _obj$props6 === void 0 ? void 0 : _obj$props6.onClose((_obj$props7 = obj.props) === null || _obj$props7 === void 0 ? void 0 : _obj$props7.modalKey);
|
|
13082
|
-
}
|
|
13083
|
-
}
|
|
13084
|
-
}
|
|
13085
|
-
}, React.createElement(M, Object.assign({}, obj.props))));
|
|
13086
|
-
}))), openModal, closeModal];
|
|
13087
|
-
}
|
|
13088
|
-
|
|
13089
|
-
function useStorageState(storage, key, initialValue) {
|
|
13090
|
-
var _useState = useState(initialValue),
|
|
13091
|
-
value = _useState[0],
|
|
13092
|
-
setValue = _useState[1];
|
|
13093
|
-
|
|
13094
|
-
useEffect(function () {
|
|
13095
|
-
if (!initialValue && storage.getItem(key) && storage.getItem(key) !== 'undefined') {
|
|
13096
|
-
try {
|
|
13097
|
-
setValue(JSON.parse(storage.getItem(key)));
|
|
13098
|
-
} catch (e) {
|
|
13099
|
-
console.error(e);
|
|
13100
|
-
}
|
|
13101
|
-
}
|
|
13102
|
-
}, []);
|
|
13103
|
-
useEffect(function () {
|
|
13104
|
-
storage.setItem(key, JSON.stringify(value));
|
|
13105
|
-
}, [key, storage, value]);
|
|
13106
|
-
return [value, setValue];
|
|
13107
|
-
}
|
|
13108
|
-
|
|
13109
|
-
var rootClassName$2_ = 'comp-toast-manager';
|
|
13110
|
-
var count$1 = 0;
|
|
13111
|
-
function useToastManager(props) {
|
|
13112
|
-
var _useState = useState([]),
|
|
13113
|
-
arrayOfToast = _useState[0],
|
|
13114
|
-
setArrayOfToast = _useState[1];
|
|
13115
|
-
|
|
13116
|
-
var toastsRef = useRef(arrayOfToast);
|
|
13117
|
-
toastsRef.current = arrayOfToast;
|
|
13118
|
-
var verticalPosition = (props === null || props === void 0 ? void 0 : props.verticalPosition) || 'top';
|
|
13119
|
-
var horizontalPosition = (props === null || props === void 0 ? void 0 : props.horizontalPosition) || 'right';
|
|
13120
|
-
var max = (props === null || props === void 0 ? void 0 : props.max) || undefined;
|
|
13121
|
-
var reverse = (props === null || props === void 0 ? void 0 : props.reverse) || false;
|
|
13122
|
-
var animateSize = (props === null || props === void 0 ? void 0 : props.animateSize) || false;
|
|
13123
|
-
|
|
13124
|
-
var closeById = function closeById(id) {
|
|
13125
|
-
var arr = toastsRef.current.filter(function (a) {
|
|
13126
|
-
return a.id !== id;
|
|
13127
|
-
});
|
|
13128
|
-
setArrayOfToast(arr);
|
|
13129
|
-
};
|
|
13130
|
-
|
|
13131
|
-
var showToast = function showToast(toast) {
|
|
13132
|
-
var id = "toaster-" + count$1;
|
|
13133
|
-
var arr = toastsRef.current.slice();
|
|
13134
|
-
var obj = {};
|
|
13135
|
-
|
|
13136
|
-
if (toast.prevent && arr.some(function (t) {
|
|
13137
|
-
return t.label === toast.label;
|
|
13138
|
-
})) {
|
|
13139
|
-
return;
|
|
13140
|
-
}
|
|
13141
|
-
|
|
13142
|
-
obj = _extends({
|
|
13143
|
-
id: id
|
|
13144
|
-
}, toast);
|
|
13145
|
-
|
|
13146
|
-
if (!max || arr.length < max) {
|
|
13147
|
-
arr.push(obj);
|
|
13148
|
-
setArrayOfToast(arr);
|
|
13149
|
-
count$1++;
|
|
13150
|
-
}
|
|
13151
|
-
};
|
|
13152
|
-
|
|
13153
|
-
var clearToast = useCallback(function () {
|
|
13154
|
-
setArrayOfToast([]);
|
|
13155
|
-
}, []);
|
|
13156
|
-
var classNames = useMemo(function () {
|
|
13157
|
-
return getMergedClassNames([rootClassName$2_ + "-toasts", rootClassName$2_ + "-" + verticalPosition, rootClassName$2_ + "-" + horizontalPosition, reverse ? rootClassName$2_ + "-reverse" : '', animateSize ? rootClassName$2_ + "-animate-size" : '']);
|
|
13158
|
-
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
13159
|
-
useLayoutEffect(function () {
|
|
13160
|
-
var wrapper = document.querySelector("." + rootClassName$2_ + "-toasts");
|
|
13161
|
-
|
|
13162
|
-
if (wrapper && wrapper.childElementCount > 0) {
|
|
13163
|
-
var somaDasAlturas = 0;
|
|
13164
|
-
|
|
13165
|
-
if (verticalPosition === 'top' && !reverse) {
|
|
13166
|
-
somaDasAlturas = 12;
|
|
13167
|
-
|
|
13168
|
-
for (var i = 0; i < wrapper.children.length; i++) {
|
|
13169
|
-
var el = wrapper.children[i];
|
|
13170
|
-
|
|
13171
|
-
if (!el.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13172
|
-
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
13173
|
-
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
13174
|
-
}
|
|
13175
|
-
}
|
|
13176
|
-
} else if (verticalPosition === 'top') {
|
|
13177
|
-
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
13178
|
-
var _el = wrapper.children[_i];
|
|
13179
|
-
|
|
13180
|
-
if (!_el.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13181
|
-
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
13182
|
-
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
13183
|
-
}
|
|
13184
|
-
}
|
|
13185
|
-
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
13186
|
-
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
13187
|
-
var _el2 = wrapper.children[_i2];
|
|
13188
|
-
|
|
13189
|
-
if (!_el2.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13190
|
-
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
13191
|
-
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
13192
|
-
}
|
|
13193
|
-
}
|
|
13194
|
-
} else {
|
|
13195
|
-
somaDasAlturas = 12;
|
|
13196
|
-
|
|
13197
|
-
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
13198
|
-
var _el3 = wrapper.children[_i3];
|
|
13199
|
-
|
|
13200
|
-
if (!_el3.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13201
|
-
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
13202
|
-
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
13203
|
-
}
|
|
13204
|
-
}
|
|
13205
|
-
}
|
|
13206
|
-
}
|
|
13207
|
-
}, [arrayOfToast, reverse, verticalPosition]);
|
|
13208
|
-
return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
13209
|
-
className: classNames
|
|
13210
|
-
}, arrayOfToast.map(function (toast) {
|
|
13211
|
-
return React.createElement(CSSTransition, {
|
|
13212
|
-
timeout: 300,
|
|
13213
|
-
classNames: rootClassName$2_ + "-toast",
|
|
13214
|
-
key: toast.id,
|
|
13215
|
-
unmountOnExit: true
|
|
13216
|
-
}, React.createElement("div", {
|
|
13217
|
-
className: rootClassName$2_ + "-toastzin"
|
|
13218
|
-
}, React.createElement(Toast, {
|
|
13219
|
-
theme: toast.theme,
|
|
13220
|
-
label: toast.label,
|
|
13221
|
-
onClose: function onClose() {
|
|
13222
|
-
return closeById(toast.id);
|
|
13223
|
-
},
|
|
13224
|
-
timeout: toast.timeout,
|
|
13225
|
-
showStatusBar: toast.showStatusBar,
|
|
13226
|
-
showActionButton: toast.showActionButton,
|
|
13227
|
-
onActionButtonClick: toast.onActionButtonClick,
|
|
13228
|
-
actionButtonText: toast.actionButtonText,
|
|
13229
|
-
pauseOnFocusLoss: props === null || props === void 0 ? void 0 : props.pauseOnFocusLoss
|
|
13230
|
-
})));
|
|
13231
|
-
}))), showToast, clearToast];
|
|
13232
|
-
}
|
|
13233
|
-
useToastManager.defaultProps = {
|
|
13234
|
-
verticalPosition: 'top',
|
|
13235
|
-
horizontalPosition: 'right'
|
|
13236
|
-
};
|
|
13237
|
-
|
|
13238
|
-
function useValidatedState(validation, initialValue) {
|
|
13239
|
-
var _useState = useState(initialValue),
|
|
13240
|
-
value = _useState[0],
|
|
13241
|
-
setValue = _useState[1];
|
|
13242
|
-
|
|
13243
|
-
return [value, setValue, validation(value)];
|
|
13244
|
-
}
|
|
13245
|
-
|
|
13246
13714
|
var scheduler_production_min = createCommonjsModule(function (module, exports) {
|
|
13247
13715
|
var f,g,h,k,l;
|
|
13248
13716
|
if("undefined"===typeof window||"function"!==typeof MessageChannel){var p=null,q=null,t=function(){if(null!==p)try{var a=exports.unstable_now();p(!0,a);p=null;}catch(b){throw setTimeout(t,0),b;}},u=Date.now();exports.unstable_now=function(){return Date.now()-u};f=function(a){null!==p?setTimeout(f,0,a):(p=a,setTimeout(t,0));};g=function(a,b){q=setTimeout(a,b);};h=function(){clearTimeout(q);};k=function(){return !1};l=exports.unstable_forceFrameRate=function(){};}else {var w=window.performance,x=window.Date,
|
|
@@ -39946,6 +40414,274 @@ function useHTMLShare() {
|
|
|
39946
40414
|
};
|
|
39947
40415
|
}
|
|
39948
40416
|
|
|
40417
|
+
var rootClassName$38 = 'comp-modal-manager';
|
|
40418
|
+
var maskRootClassName$1 = 'component-modal-mask';
|
|
40419
|
+
|
|
40420
|
+
var hackFocus$1 = function hackFocus() {
|
|
40421
|
+
var tmp = document.createElement('input');
|
|
40422
|
+
document.body.appendChild(tmp);
|
|
40423
|
+
tmp.focus();
|
|
40424
|
+
document.body.removeChild(tmp);
|
|
40425
|
+
};
|
|
40426
|
+
|
|
40427
|
+
function useModalManager() {
|
|
40428
|
+
var _useState = useState([]),
|
|
40429
|
+
arrayOfModal = _useState[0],
|
|
40430
|
+
setArrayOfModal = _useState[1];
|
|
40431
|
+
|
|
40432
|
+
var refModals = useRef(arrayOfModal);
|
|
40433
|
+
refModals.current = arrayOfModal;
|
|
40434
|
+
|
|
40435
|
+
var closeModalByKey = function closeModalByKey(modalKey) {
|
|
40436
|
+
setArrayOfModal([].concat(refModals.current).filter(function (obj) {
|
|
40437
|
+
var _obj$props;
|
|
40438
|
+
|
|
40439
|
+
return String((_obj$props = obj.props) === null || _obj$props === void 0 ? void 0 : _obj$props.modalKey) !== String(modalKey);
|
|
40440
|
+
}));
|
|
40441
|
+
};
|
|
40442
|
+
|
|
40443
|
+
useEffect(function () {
|
|
40444
|
+
var escapeCall = function escapeCall(evt) {
|
|
40445
|
+
if (evt.key === 'Escape' && refModals.current.length) {
|
|
40446
|
+
var mprops = refModals.current[refModals.current.length - 1].props;
|
|
40447
|
+
|
|
40448
|
+
if (!(mprops !== null && mprops !== void 0 && mprops.preventEscExit)) {
|
|
40449
|
+
closeModalByKey(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
40450
|
+
|
|
40451
|
+
if (typeof (mprops === null || mprops === void 0 ? void 0 : mprops.onClose) === 'function') {
|
|
40452
|
+
mprops === null || mprops === void 0 ? void 0 : mprops.onClose(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
40453
|
+
}
|
|
40454
|
+
}
|
|
40455
|
+
}
|
|
40456
|
+
};
|
|
40457
|
+
|
|
40458
|
+
document.addEventListener('keydown', escapeCall);
|
|
40459
|
+
return function () {
|
|
40460
|
+
document.removeEventListener('keydown', escapeCall);
|
|
40461
|
+
};
|
|
40462
|
+
}, []);
|
|
40463
|
+
|
|
40464
|
+
var openModal = function openModal(component, modalProps) {
|
|
40465
|
+
var modalKey = modalProps.modalKey ? modalProps.modalKey : getUniqueKey();
|
|
40466
|
+
var arr = refModals.current.slice();
|
|
40467
|
+
|
|
40468
|
+
var p = _extends({}, modalProps, {
|
|
40469
|
+
modalKey: modalKey,
|
|
40470
|
+
onClose: function onClose(modalKey) {
|
|
40471
|
+
closeModalByKey(modalKey);
|
|
40472
|
+
|
|
40473
|
+
if (typeof modalProps.onClose === 'function') {
|
|
40474
|
+
modalProps.onClose(modalKey);
|
|
40475
|
+
}
|
|
40476
|
+
}
|
|
40477
|
+
});
|
|
40478
|
+
|
|
40479
|
+
arr.push({
|
|
40480
|
+
component: component,
|
|
40481
|
+
props: p
|
|
40482
|
+
});
|
|
40483
|
+
setArrayOfModal(arr);
|
|
40484
|
+
hackFocus$1();
|
|
40485
|
+
return modalKey;
|
|
40486
|
+
};
|
|
40487
|
+
|
|
40488
|
+
var closeModal = function closeModal(modalKey) {
|
|
40489
|
+
if (modalKey) {
|
|
40490
|
+
closeModalByKey(modalKey);
|
|
40491
|
+
} else if (refModals.current.length) {
|
|
40492
|
+
var _refModals$current, _refModals$current$pr;
|
|
40493
|
+
|
|
40494
|
+
closeModalByKey((_refModals$current = refModals.current[refModals.current.length - 1]) === null || _refModals$current === void 0 ? void 0 : (_refModals$current$pr = _refModals$current.props) === null || _refModals$current$pr === void 0 ? void 0 : _refModals$current$pr.modalKey);
|
|
40495
|
+
}
|
|
40496
|
+
};
|
|
40497
|
+
|
|
40498
|
+
return [React.createElement(React.Fragment, {
|
|
40499
|
+
key: 1
|
|
40500
|
+
}, React.createElement(TransitionGroup, {
|
|
40501
|
+
className: rootClassName$38 + "-modals"
|
|
40502
|
+
}, arrayOfModal.map(function (obj) {
|
|
40503
|
+
var _obj$props2, _obj$props3, _obj$props4;
|
|
40504
|
+
|
|
40505
|
+
var ModalComponent = React.createElement(obj.component, obj.props);
|
|
40506
|
+
return React.createElement(CSSTransition, {
|
|
40507
|
+
timeout: 300,
|
|
40508
|
+
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$38 + "-mask-mobile-on-xs" : rootClassName$38 + "-mask",
|
|
40509
|
+
key: (_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.modalKey,
|
|
40510
|
+
unmountOnExit: true
|
|
40511
|
+
}, React.createElement(ModalMask, {
|
|
40512
|
+
mobileOnXS: Boolean((_obj$props4 = obj.props) === null || _obj$props4 === void 0 ? void 0 : _obj$props4.mobileOnXS),
|
|
40513
|
+
onClick: function onClick(evt) {
|
|
40514
|
+
if (evt.target.classList.contains(maskRootClassName$1)) {
|
|
40515
|
+
var _obj$props5, _obj$props6;
|
|
40516
|
+
|
|
40517
|
+
if (typeof ((_obj$props5 = obj.props) === null || _obj$props5 === void 0 ? void 0 : _obj$props5.onClose) === 'function' && !((_obj$props6 = obj.props) !== null && _obj$props6 !== void 0 && _obj$props6.preventMaskExit)) {
|
|
40518
|
+
var _obj$props7, _obj$props8;
|
|
40519
|
+
|
|
40520
|
+
(_obj$props7 = obj.props) === null || _obj$props7 === void 0 ? void 0 : _obj$props7.onClose((_obj$props8 = obj.props) === null || _obj$props8 === void 0 ? void 0 : _obj$props8.modalKey);
|
|
40521
|
+
}
|
|
40522
|
+
}
|
|
40523
|
+
}
|
|
40524
|
+
}, ModalComponent));
|
|
40525
|
+
}))), openModal, closeModal];
|
|
40526
|
+
}
|
|
40527
|
+
|
|
40528
|
+
function useStorageState(storage, key, initialValue) {
|
|
40529
|
+
var _useState = useState(initialValue),
|
|
40530
|
+
value = _useState[0],
|
|
40531
|
+
setValue = _useState[1];
|
|
40532
|
+
|
|
40533
|
+
useEffect(function () {
|
|
40534
|
+
if (!initialValue && storage.getItem(key) && storage.getItem(key) !== 'undefined') {
|
|
40535
|
+
try {
|
|
40536
|
+
setValue(JSON.parse(storage.getItem(key)));
|
|
40537
|
+
} catch (e) {
|
|
40538
|
+
console.error(e);
|
|
40539
|
+
}
|
|
40540
|
+
}
|
|
40541
|
+
}, []);
|
|
40542
|
+
useEffect(function () {
|
|
40543
|
+
storage.setItem(key, JSON.stringify(value));
|
|
40544
|
+
}, [key, storage, value]);
|
|
40545
|
+
return [value, setValue];
|
|
40546
|
+
}
|
|
40547
|
+
|
|
40548
|
+
var rootClassName$39 = 'comp-toast-manager';
|
|
40549
|
+
var count$1 = 0;
|
|
40550
|
+
function useToastManager(props) {
|
|
40551
|
+
var _useState = useState([]),
|
|
40552
|
+
arrayOfToast = _useState[0],
|
|
40553
|
+
setArrayOfToast = _useState[1];
|
|
40554
|
+
|
|
40555
|
+
var toastsRef = useRef(arrayOfToast);
|
|
40556
|
+
toastsRef.current = arrayOfToast;
|
|
40557
|
+
var verticalPosition = (props === null || props === void 0 ? void 0 : props.verticalPosition) || 'top';
|
|
40558
|
+
var horizontalPosition = (props === null || props === void 0 ? void 0 : props.horizontalPosition) || 'right';
|
|
40559
|
+
var max = (props === null || props === void 0 ? void 0 : props.max) || undefined;
|
|
40560
|
+
var reverse = (props === null || props === void 0 ? void 0 : props.reverse) || false;
|
|
40561
|
+
var animateSize = (props === null || props === void 0 ? void 0 : props.animateSize) || false;
|
|
40562
|
+
|
|
40563
|
+
var closeById = function closeById(id) {
|
|
40564
|
+
var arr = toastsRef.current.filter(function (a) {
|
|
40565
|
+
return a.id !== id;
|
|
40566
|
+
});
|
|
40567
|
+
setArrayOfToast(arr);
|
|
40568
|
+
};
|
|
40569
|
+
|
|
40570
|
+
var showToast = function showToast(toast) {
|
|
40571
|
+
var id = "toaster-" + count$1;
|
|
40572
|
+
var arr = toastsRef.current.slice();
|
|
40573
|
+
var obj = {};
|
|
40574
|
+
|
|
40575
|
+
if (toast.prevent && arr.some(function (t) {
|
|
40576
|
+
return t.label === toast.label;
|
|
40577
|
+
})) {
|
|
40578
|
+
return;
|
|
40579
|
+
}
|
|
40580
|
+
|
|
40581
|
+
obj = _extends({
|
|
40582
|
+
id: id
|
|
40583
|
+
}, toast);
|
|
40584
|
+
|
|
40585
|
+
if (!max || arr.length < max) {
|
|
40586
|
+
arr.push(obj);
|
|
40587
|
+
setArrayOfToast(arr);
|
|
40588
|
+
count$1++;
|
|
40589
|
+
}
|
|
40590
|
+
};
|
|
40591
|
+
|
|
40592
|
+
var clearToast = useCallback(function () {
|
|
40593
|
+
setArrayOfToast([]);
|
|
40594
|
+
}, []);
|
|
40595
|
+
var classNames = useMemo(function () {
|
|
40596
|
+
return getMergedClassNames([rootClassName$39 + "-toasts", rootClassName$39 + "-" + verticalPosition, rootClassName$39 + "-" + horizontalPosition, reverse ? rootClassName$39 + "-reverse" : '', animateSize ? rootClassName$39 + "-animate-size" : '']);
|
|
40597
|
+
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
40598
|
+
useLayoutEffect(function () {
|
|
40599
|
+
var wrapper = document.querySelector("." + rootClassName$39 + "-toasts");
|
|
40600
|
+
|
|
40601
|
+
if (wrapper && wrapper.childElementCount > 0) {
|
|
40602
|
+
var somaDasAlturas = 0;
|
|
40603
|
+
|
|
40604
|
+
if (verticalPosition === 'top' && !reverse) {
|
|
40605
|
+
somaDasAlturas = 12;
|
|
40606
|
+
|
|
40607
|
+
for (var i = 0; i < wrapper.children.length; i++) {
|
|
40608
|
+
var el = wrapper.children[i];
|
|
40609
|
+
|
|
40610
|
+
if (!el.classList.contains(rootClassName$39 + "-toast-exit")) {
|
|
40611
|
+
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
40612
|
+
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
40613
|
+
}
|
|
40614
|
+
}
|
|
40615
|
+
} else if (verticalPosition === 'top') {
|
|
40616
|
+
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
40617
|
+
var _el = wrapper.children[_i];
|
|
40618
|
+
|
|
40619
|
+
if (!_el.classList.contains(rootClassName$39 + "-toast-exit")) {
|
|
40620
|
+
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
40621
|
+
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
40622
|
+
}
|
|
40623
|
+
}
|
|
40624
|
+
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
40625
|
+
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
40626
|
+
var _el2 = wrapper.children[_i2];
|
|
40627
|
+
|
|
40628
|
+
if (!_el2.classList.contains(rootClassName$39 + "-toast-exit")) {
|
|
40629
|
+
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
40630
|
+
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
40631
|
+
}
|
|
40632
|
+
}
|
|
40633
|
+
} else {
|
|
40634
|
+
somaDasAlturas = 12;
|
|
40635
|
+
|
|
40636
|
+
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
40637
|
+
var _el3 = wrapper.children[_i3];
|
|
40638
|
+
|
|
40639
|
+
if (!_el3.classList.contains(rootClassName$39 + "-toast-exit")) {
|
|
40640
|
+
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
40641
|
+
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
40642
|
+
}
|
|
40643
|
+
}
|
|
40644
|
+
}
|
|
40645
|
+
}
|
|
40646
|
+
}, [arrayOfToast, reverse, verticalPosition]);
|
|
40647
|
+
return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
40648
|
+
className: classNames
|
|
40649
|
+
}, arrayOfToast.map(function (toast) {
|
|
40650
|
+
return React.createElement(CSSTransition, {
|
|
40651
|
+
timeout: 300,
|
|
40652
|
+
classNames: rootClassName$39 + "-toast",
|
|
40653
|
+
key: toast.id,
|
|
40654
|
+
unmountOnExit: true
|
|
40655
|
+
}, React.createElement("div", {
|
|
40656
|
+
className: rootClassName$39 + "-toastzin"
|
|
40657
|
+
}, React.createElement(Toast, {
|
|
40658
|
+
theme: toast.theme,
|
|
40659
|
+
label: toast.label,
|
|
40660
|
+
onClose: function onClose() {
|
|
40661
|
+
return closeById(toast.id);
|
|
40662
|
+
},
|
|
40663
|
+
timeout: toast.timeout,
|
|
40664
|
+
showStatusBar: toast.showStatusBar,
|
|
40665
|
+
showActionButton: toast.showActionButton,
|
|
40666
|
+
onActionButtonClick: toast.onActionButtonClick,
|
|
40667
|
+
actionButtonText: toast.actionButtonText,
|
|
40668
|
+
pauseOnFocusLoss: props === null || props === void 0 ? void 0 : props.pauseOnFocusLoss
|
|
40669
|
+
})));
|
|
40670
|
+
}))), showToast, clearToast];
|
|
40671
|
+
}
|
|
40672
|
+
useToastManager.defaultProps = {
|
|
40673
|
+
verticalPosition: 'top',
|
|
40674
|
+
horizontalPosition: 'right'
|
|
40675
|
+
};
|
|
40676
|
+
|
|
40677
|
+
function useValidatedState(validation, initialValue) {
|
|
40678
|
+
var _useState = useState(initialValue),
|
|
40679
|
+
value = _useState[0],
|
|
40680
|
+
setValue = _useState[1];
|
|
40681
|
+
|
|
40682
|
+
return [value, setValue, validation(value)];
|
|
40683
|
+
}
|
|
40684
|
+
|
|
39949
40685
|
function AlertModal(props) {
|
|
39950
40686
|
var _useState = useState(false),
|
|
39951
40687
|
loading = _useState[0],
|
|
@@ -40097,5 +40833,5 @@ var ModalSizes;
|
|
|
40097
40833
|
ModalSizes["ExtraLarge"] = "extra-large";
|
|
40098
40834
|
})(ModalSizes || (ModalSizes = {}));
|
|
40099
40835
|
|
|
40100
|
-
export { ATMIcon, Accordion, Aconteceu, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddCircleIcon, AddIcon, AdvancedSemiHeader, AgencyIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, AssembleiasIcon, BackOfficeIcon, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BarChartIcon, BeeIcon, BigBlockButton, BigPlayIcon, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, CalendarCheckIcon, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, EditIcon, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileUpload, FilesIcon, FilterIcon, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, HomeIcon, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformationIcon, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, Modal, ModalManager, ModalSizes, Title as ModulosTitle, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotaEdit, NotebookIcon, Notification, NotificationPosition, NotificationType, OptionsIcon, PageSubTitle, PageTitle, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, ProgressBar, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, SearchBlocoDeNotas, SearchIcon, Select$1 as Select, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, UnderlineIcon, UndoIcon, UserIcon, VideoItem, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useHTMLShare, useModalManager, useProgressiveCount, useScreenSize, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
|
|
40836
|
+
export { ATMIcon, Accordion, Aconteceu, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddCircleIcon, AddIcon, AdvancedSemiHeader, AgencyIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, AssembleiasIcon, BackOfficeIcon, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BarChartIcon, BeeIcon, BigBlockButton, BigPlayIcon, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Calendar$1 as Calendar, CalendarCheckIcon, CalendarEvent$1 as CalendarEvent, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, EditIcon, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileUpload, FilesIcon, FilterIcon, FloatingPanel$1 as FloatingPanel, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, HomeIcon, HourEvents$1 as HourEvents, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformationIcon, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, InlineMonthPicker$1 as InlineMonthPicker, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, Modal, ModalManager, ModalSizes, Title as ModulosTitle, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotaEdit, NotebookIcon, Notification, NotificationPosition, NotificationType, OptionsIcon, PageSubTitle, PageTitle, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PhonePlusIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, ProgressBar, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, ScrollArrowOverflow$1 as ScrollArrowOverflow, SearchBlocoDeNotas, SearchIcon, Select$1 as Select, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, UnderlineIcon, UndoIcon, UserIcon, VideoItem, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useHTMLShare, useModalManager, useProgressiveCount, useScreenSize, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
|
|
40101
40837
|
//# sourceMappingURL=index.modern.js.map
|