plataforma-fundacao-componentes 2.23.9 → 2.23.12
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/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 +4 -4
- package/dist/components/modal/Modal.stories.d.ts +12 -12
- 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 +2126 -10922
- package/dist/index.d.ts +12 -4
- package/dist/index.js +1147 -421
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1142 -423
- 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];
|
|
@@ -9217,7 +9313,7 @@ var Row$1 = memo(Row);
|
|
|
9217
9313
|
var rootClassName$2f = 'footer-sicredi';
|
|
9218
9314
|
|
|
9219
9315
|
function FooterSicredi(props) {
|
|
9220
|
-
var colSize = [12,
|
|
9316
|
+
var colSize = [12, 12, 3, 3, 3];
|
|
9221
9317
|
var qrCodeColor = useMemo(function () {
|
|
9222
9318
|
switch (props.theme) {
|
|
9223
9319
|
case 'dark':
|
|
@@ -9328,7 +9424,7 @@ function FooterSicredi(props) {
|
|
|
9328
9424
|
className: rootClassName$2f + "-space"
|
|
9329
9425
|
}), React.createElement("div", {
|
|
9330
9426
|
className: rootClassName$2f + "-title"
|
|
9331
|
-
}, "Atendimento
|
|
9427
|
+
}, "Atendimento \xE0 pessoas com defici\xEAncia"), React.createElement("div", {
|
|
9332
9428
|
className: rootClassName$2f + "-subtitle nunito"
|
|
9333
9429
|
}, "Auditivos ou de fala"), React.createElement("div", {
|
|
9334
9430
|
className: rootClassName$2f + "-number"
|
|
@@ -10083,7 +10179,7 @@ function Modal(props) {
|
|
|
10083
10179
|
}, [props.footer]);
|
|
10084
10180
|
|
|
10085
10181
|
var handleClose = function handleClose() {
|
|
10086
|
-
props.onClose(props.modalKey);
|
|
10182
|
+
if (typeof props.onClose === 'function') props.onClose(props.modalKey);
|
|
10087
10183
|
};
|
|
10088
10184
|
|
|
10089
10185
|
return React.createElement("div", Object.assign({}, filteredProps), React.createElement("div", {
|
|
@@ -10103,7 +10199,7 @@ function Modal(props) {
|
|
|
10103
10199
|
}
|
|
10104
10200
|
Modal.defaultProps = {
|
|
10105
10201
|
title: 'Title',
|
|
10106
|
-
onClose:
|
|
10202
|
+
onClose: undefined,
|
|
10107
10203
|
size: 'large'
|
|
10108
10204
|
};
|
|
10109
10205
|
|
|
@@ -10162,7 +10258,9 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
10162
10258
|
var closeModalByKey = function closeModalByKey(modalKey) {
|
|
10163
10259
|
var arr = refModals.current.slice();
|
|
10164
10260
|
arr = arr.filter(function (obj) {
|
|
10165
|
-
|
|
10261
|
+
var _obj$props;
|
|
10262
|
+
|
|
10263
|
+
return String((_obj$props = obj.props) === null || _obj$props === void 0 ? void 0 : _obj$props.modalKey) !== String(modalKey);
|
|
10166
10264
|
});
|
|
10167
10265
|
setArrayOfModal(arr);
|
|
10168
10266
|
};
|
|
@@ -10216,30 +10314,31 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
10216
10314
|
return React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
10217
10315
|
className: getClassNames()
|
|
10218
10316
|
}, arrayOfModal.map(function (obj) {
|
|
10219
|
-
var _obj$
|
|
10317
|
+
var _obj$props2, _obj$props3, _obj$props4;
|
|
10220
10318
|
|
|
10221
|
-
var
|
|
10319
|
+
var ModalComponent = React.createElement(obj.component, obj.props);
|
|
10222
10320
|
return React.createElement(CSSTransition, {
|
|
10223
10321
|
timeout: 300,
|
|
10224
|
-
classNames: (_obj$
|
|
10225
|
-
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,
|
|
10226
10324
|
unmountOnExit: true
|
|
10227
10325
|
}, React.createElement(ModalMask, {
|
|
10228
|
-
mobileOnXS: Boolean((_obj$
|
|
10326
|
+
mobileOnXS: Boolean((_obj$props4 = obj.props) === null || _obj$props4 === void 0 ? void 0 : _obj$props4.mobileOnXS),
|
|
10229
10327
|
onClick: function onClick(evt) {
|
|
10230
10328
|
if (evt.target.classList.contains(maskRootClassName)) {
|
|
10231
|
-
var _obj$
|
|
10329
|
+
var _obj$props5, _obj$props6;
|
|
10232
10330
|
|
|
10233
|
-
if (typeof ((_obj$
|
|
10234
|
-
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;
|
|
10235
10333
|
|
|
10236
|
-
(_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);
|
|
10237
10335
|
}
|
|
10238
10336
|
}
|
|
10239
10337
|
}
|
|
10240
|
-
},
|
|
10338
|
+
}, ModalComponent));
|
|
10241
10339
|
})));
|
|
10242
10340
|
});
|
|
10341
|
+
ModalManager.displayName = 'ModalManager';
|
|
10243
10342
|
|
|
10244
10343
|
var rootClassName$2v = 'component-nota-edit';
|
|
10245
10344
|
function NotaEdit(props) {
|
|
@@ -10521,7 +10620,7 @@ SearchBlocoDeNotas.defaultProps = {
|
|
|
10521
10620
|
var rootClassName$2A = 'component-select';
|
|
10522
10621
|
|
|
10523
10622
|
function Select(props) {
|
|
10524
|
-
var _props$options3
|
|
10623
|
+
var _props$options3;
|
|
10525
10624
|
|
|
10526
10625
|
var _useState = useState(getUniqueKey()),
|
|
10527
10626
|
id = _useState[0];
|
|
@@ -10551,7 +10650,7 @@ function Select(props) {
|
|
|
10551
10650
|
var getKey = function getKey(option) {
|
|
10552
10651
|
if (option) {
|
|
10553
10652
|
if (option.key) return option.key;
|
|
10554
|
-
if (option.value) return option.value;
|
|
10653
|
+
if (option.value && typeof option.value !== 'boolean') return option.value;
|
|
10555
10654
|
}
|
|
10556
10655
|
|
|
10557
10656
|
return getUniqueKey();
|
|
@@ -10559,24 +10658,20 @@ function Select(props) {
|
|
|
10559
10658
|
|
|
10560
10659
|
useEffect(function () {
|
|
10561
10660
|
var func = function func(evt) {
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
} else {
|
|
10565
|
-
var aux = evt.target;
|
|
10566
|
-
var deveFechar = true;
|
|
10567
|
-
|
|
10568
|
-
while (aux && aux.id !== 'root') {
|
|
10569
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2A + "-outer")) {
|
|
10570
|
-
deveFechar = false;
|
|
10571
|
-
break;
|
|
10572
|
-
}
|
|
10661
|
+
var aux = evt.target;
|
|
10662
|
+
var deveFechar = true;
|
|
10573
10663
|
|
|
10574
|
-
|
|
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;
|
|
10575
10668
|
}
|
|
10576
10669
|
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10670
|
+
aux = aux.parentElement;
|
|
10671
|
+
}
|
|
10672
|
+
|
|
10673
|
+
if (deveFechar) {
|
|
10674
|
+
setPanelOpened(false);
|
|
10580
10675
|
}
|
|
10581
10676
|
};
|
|
10582
10677
|
|
|
@@ -10584,6 +10679,7 @@ function Select(props) {
|
|
|
10584
10679
|
if (evt.key === 'Escape') {
|
|
10585
10680
|
setPanelOpened(false);
|
|
10586
10681
|
evt.preventDefault();
|
|
10682
|
+
evt.stopPropagation();
|
|
10587
10683
|
}
|
|
10588
10684
|
};
|
|
10589
10685
|
|
|
@@ -10615,7 +10711,7 @@ function Select(props) {
|
|
|
10615
10711
|
|
|
10616
10712
|
var position = function position() {
|
|
10617
10713
|
var trigger = document.querySelector("#" + id);
|
|
10618
|
-
var panel = document.
|
|
10714
|
+
var panel = document.querySelector("#" + panelId + ".panel-fade-enter-active, #" + panelId + ".panel-fade-enter-done, #" + panelId + ".panel-fade-exit-active");
|
|
10619
10715
|
if (!trigger || !panel) return;
|
|
10620
10716
|
var triggerBound = trigger.getBoundingClientRect();
|
|
10621
10717
|
panel.style.width = triggerBound.width + "px";
|
|
@@ -10624,37 +10720,31 @@ function Select(props) {
|
|
|
10624
10720
|
var fitBottom = panelHeight + triggerBound.bottom < windowHeight;
|
|
10625
10721
|
var fitTop = triggerBound.top - panelHeight > 0;
|
|
10626
10722
|
|
|
10627
|
-
if (
|
|
10628
|
-
panel.style.top =
|
|
10629
|
-
panel.style.bottom = '0';
|
|
10630
|
-
panel.style.left = '0';
|
|
10631
|
-
panel.style.width = '100%';
|
|
10632
|
-
panel.style.borderRadius = '8px 8px 0 0';
|
|
10633
|
-
panel.style.boxShadow = '0 -1px 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10634
|
-
} else if (fitTop && !fitBottom) {
|
|
10723
|
+
if (fitBottom && !props.bottomPanel) {
|
|
10724
|
+
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10635
10725
|
panel.style.left = 'unset';
|
|
10636
|
-
panel.style.borderRadius = '8px';
|
|
10637
|
-
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10638
10726
|
panel.style.bottom = 'unset';
|
|
10727
|
+
panel.style.borderRadius = '0 0 8px 8px';
|
|
10639
10728
|
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10640
|
-
} else if (
|
|
10729
|
+
} else if (fitTop && !props.bottomPanel) {
|
|
10730
|
+
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10641
10731
|
panel.style.left = 'unset';
|
|
10642
|
-
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10643
10732
|
panel.style.bottom = 'unset';
|
|
10644
|
-
panel.style.borderRadius = '
|
|
10733
|
+
panel.style.borderRadius = '8px';
|
|
10734
|
+
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10645
10735
|
} else {
|
|
10646
10736
|
panel.style.top = 'unset';
|
|
10647
|
-
panel.style.bottom = '0';
|
|
10648
10737
|
panel.style.left = '0';
|
|
10738
|
+
panel.style.bottom = '0';
|
|
10649
10739
|
panel.style.width = '100%';
|
|
10650
10740
|
panel.style.borderRadius = '8px 8px 0 0';
|
|
10651
|
-
panel.style.boxShadow = '0 -
|
|
10741
|
+
panel.style.boxShadow = '0 -10px 0 5000px rgba(0, 0, 0, 0.5)';
|
|
10652
10742
|
}
|
|
10653
10743
|
};
|
|
10654
10744
|
|
|
10655
10745
|
if (panelOpened) {
|
|
10656
10746
|
position();
|
|
10657
|
-
setInter(setInterval(position,
|
|
10747
|
+
setInter(setInterval(position, 20));
|
|
10658
10748
|
}
|
|
10659
10749
|
|
|
10660
10750
|
return function () {
|
|
@@ -10666,8 +10756,12 @@ function Select(props) {
|
|
|
10666
10756
|
}, [panelOpened]);
|
|
10667
10757
|
var opcoes = JSON.stringify(props.options);
|
|
10668
10758
|
useEffect(function () {
|
|
10669
|
-
if (props.preSelectUniqueOption && props.options && props.options.length === 1
|
|
10670
|
-
|
|
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
|
+
}
|
|
10671
10765
|
}
|
|
10672
10766
|
}, [opcoes]);
|
|
10673
10767
|
|
|
@@ -10680,7 +10774,11 @@ function Select(props) {
|
|
|
10680
10774
|
className: rootClassName$2A + "-clear-button",
|
|
10681
10775
|
icon: React.createElement(CloseIcon, null),
|
|
10682
10776
|
onClick: function onClick() {
|
|
10683
|
-
|
|
10777
|
+
if (props.multiple) {
|
|
10778
|
+
props.onChange([]);
|
|
10779
|
+
} else {
|
|
10780
|
+
props.onChange(null);
|
|
10781
|
+
}
|
|
10684
10782
|
}
|
|
10685
10783
|
}) : undefined, React.createElement(IconButton$1, {
|
|
10686
10784
|
disabled: props.disabled || false,
|
|
@@ -10704,7 +10802,7 @@ function Select(props) {
|
|
|
10704
10802
|
onClick: function onClick() {
|
|
10705
10803
|
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2A + "-select-fake");
|
|
10706
10804
|
|
|
10707
|
-
if (!props.multiple &&
|
|
10805
|
+
if (!props.multiple && isiPhone() && selectFake) {
|
|
10708
10806
|
selectFake.focus();
|
|
10709
10807
|
} else {
|
|
10710
10808
|
setPanelOpened(!panelOpened);
|
|
@@ -10713,7 +10811,7 @@ function Select(props) {
|
|
|
10713
10811
|
onFocus: function onFocus(evt) {
|
|
10714
10812
|
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2A + "-select-fake");
|
|
10715
10813
|
|
|
10716
|
-
if (!props.multiple &&
|
|
10814
|
+
if (!props.multiple && isiPhone() && selectFake) {
|
|
10717
10815
|
selectFake.focus();
|
|
10718
10816
|
} else {
|
|
10719
10817
|
evt.target.setSelectionRange(0, 0);
|
|
@@ -10749,6 +10847,7 @@ function Select(props) {
|
|
|
10749
10847
|
});
|
|
10750
10848
|
|
|
10751
10849
|
delete p.showPanelFooter;
|
|
10850
|
+
delete p.bottomPanel;
|
|
10752
10851
|
delete p.clearButton;
|
|
10753
10852
|
delete p.multiplePlaceholder;
|
|
10754
10853
|
delete p.multiple;
|
|
@@ -10766,6 +10865,7 @@ function Select(props) {
|
|
|
10766
10865
|
|
|
10767
10866
|
var handleChange = function handleChange() {
|
|
10768
10867
|
if (props.readOnly) return;
|
|
10868
|
+
if (!props.multiple) return;
|
|
10769
10869
|
|
|
10770
10870
|
if (!checked) {
|
|
10771
10871
|
var val = Array.isArray(props.value) ? props.value.slice() : [];
|
|
@@ -10859,6 +10959,8 @@ function Select(props) {
|
|
|
10859
10959
|
};
|
|
10860
10960
|
|
|
10861
10961
|
var getSingleOption = function getSingleOption(option) {
|
|
10962
|
+
if (props.multiple) return;
|
|
10963
|
+
|
|
10862
10964
|
var handleChange = function handleChange() {
|
|
10863
10965
|
if (!props.readOnly && props.value !== option.value) {
|
|
10864
10966
|
setPanelOpened(false);
|
|
@@ -10926,24 +11028,22 @@ function Select(props) {
|
|
|
10926
11028
|
}, option.label);
|
|
10927
11029
|
};
|
|
10928
11030
|
|
|
10929
|
-
var
|
|
11031
|
+
var noOptionsMessage = useMemo(function () {
|
|
10930
11032
|
return React.createElement("div", {
|
|
10931
11033
|
className: rootClassName$2A + "-no-result"
|
|
10932
11034
|
}, props.noOptionMessage);
|
|
10933
|
-
};
|
|
10934
|
-
|
|
10935
|
-
var getOptionsFiltered = function getOptionsFiltered() {
|
|
11035
|
+
}, [props.noOptionMessage]);
|
|
11036
|
+
var optionsFiltered = useMemo(function () {
|
|
10936
11037
|
var _props$options2;
|
|
10937
11038
|
|
|
10938
|
-
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) {
|
|
10939
11040
|
return getStringWithoutSpecialChar(op.label).toLowerCase().match(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10940
|
-
});
|
|
10941
|
-
};
|
|
10942
|
-
|
|
11041
|
+
})) || [];
|
|
11042
|
+
}, [props.options, filterInput]);
|
|
10943
11043
|
return React.createElement("div", {
|
|
10944
11044
|
id: id,
|
|
10945
11045
|
className: rootClassName$2A + "-outer"
|
|
10946
|
-
}, !props.multiple &&
|
|
11046
|
+
}, !props.multiple && isiPhone() && React.createElement("select", {
|
|
10947
11047
|
className: rootClassName$2A + "-select-fake",
|
|
10948
11048
|
value: props.value ? String(props.value) : '',
|
|
10949
11049
|
onChange: function onChange(evt) {
|
|
@@ -10962,7 +11062,7 @@ function Select(props) {
|
|
|
10962
11062
|
}, languageValues.components.select.single.fakeOption), (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt) {
|
|
10963
11063
|
return React.createElement("option", {
|
|
10964
11064
|
key: getKey(opt),
|
|
10965
|
-
value: opt.value
|
|
11065
|
+
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10966
11066
|
}, opt.label);
|
|
10967
11067
|
})), React.createElement(Input$1, Object.assign({}, getInputProps())), React.createElement(CSSTransition, {
|
|
10968
11068
|
"in": panelOpened,
|
|
@@ -10979,7 +11079,7 @@ function Select(props) {
|
|
|
10979
11079
|
|
|
10980
11080
|
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2A + "-panel-input input");
|
|
10981
11081
|
|
|
10982
|
-
if (firstInput && !
|
|
11082
|
+
if (firstInput && !isiPhone()) {
|
|
10983
11083
|
setTimeout(function () {
|
|
10984
11084
|
firstInput.focus();
|
|
10985
11085
|
}, 50);
|
|
@@ -11018,7 +11118,7 @@ function Select(props) {
|
|
|
11018
11118
|
onExit: function onExit() {
|
|
11019
11119
|
var inputElement = document.querySelector("#" + id + " input");
|
|
11020
11120
|
|
|
11021
|
-
if (inputElement && !
|
|
11121
|
+
if (inputElement && !isiPhone()) {
|
|
11022
11122
|
inputElement.focus();
|
|
11023
11123
|
}
|
|
11024
11124
|
}
|
|
@@ -11046,13 +11146,13 @@ function Select(props) {
|
|
|
11046
11146
|
}
|
|
11047
11147
|
})), React.createElement("div", {
|
|
11048
11148
|
className: rootClassName$2A + "-options scroll-white"
|
|
11049
|
-
}, props.options && props.options.length ?
|
|
11149
|
+
}, props.options && props.options.length ? optionsFiltered.map(function (option) {
|
|
11050
11150
|
if (props.multiple) {
|
|
11051
11151
|
return getMultipleOption(option);
|
|
11052
11152
|
}
|
|
11053
11153
|
|
|
11054
11154
|
return getSingleOption(option);
|
|
11055
|
-
}) :
|
|
11155
|
+
}) : noOptionsMessage), props.multiple && props.showPanelFooter && props.options && !!props.options.length && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
11056
11156
|
className: rootClassName$2A + "-panel-footer-clearfix"
|
|
11057
11157
|
}), React.createElement("div", {
|
|
11058
11158
|
className: rootClassName$2A + "-panel-footer"
|
|
@@ -11061,9 +11161,7 @@ function Select(props) {
|
|
|
11061
11161
|
disabled: props.readOnly,
|
|
11062
11162
|
className: rootClassName$2A + "-footer-button",
|
|
11063
11163
|
onClick: function onClick() {
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
return props.onChange((_getOptionsFiltered2 = getOptionsFiltered()) === null || _getOptionsFiltered2 === void 0 ? void 0 : _getOptionsFiltered2.map(function (op) {
|
|
11164
|
+
return props.onChange(optionsFiltered.map(function (op) {
|
|
11067
11165
|
return op.value;
|
|
11068
11166
|
}));
|
|
11069
11167
|
},
|
|
@@ -11080,7 +11178,7 @@ function Select(props) {
|
|
|
11080
11178
|
}
|
|
11081
11179
|
|
|
11082
11180
|
Select.defaultProps = {
|
|
11083
|
-
onChange:
|
|
11181
|
+
onChange: undefined,
|
|
11084
11182
|
value: '',
|
|
11085
11183
|
multiple: false,
|
|
11086
11184
|
options: [],
|
|
@@ -11175,17 +11273,15 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
11175
11273
|
disabled: props.disabled,
|
|
11176
11274
|
onChange: props.onChange,
|
|
11177
11275
|
theme: props.theme
|
|
11178
|
-
})), React.createElement("span", Object.assign({}, props.spanProps, {
|
|
11276
|
+
})), React.createElement("span", Object.assign({}, props.spanProps || {}, {
|
|
11179
11277
|
className: getMergedClassNames([rootClassName$2D + "-label-wrapper", ((_props$spanProps2 = props.spanProps) === null || _props$spanProps2 === void 0 ? void 0 : _props$spanProps2.className) || '']),
|
|
11180
11278
|
style: style,
|
|
11181
11279
|
onClick: function onClick(evt) {
|
|
11182
|
-
var _props$spanProps3;
|
|
11183
|
-
|
|
11184
11280
|
if (props.anchorLabelToCheckbox) {
|
|
11185
11281
|
props.onChange(!props.value, evt);
|
|
11186
11282
|
}
|
|
11187
11283
|
|
|
11188
|
-
if (props.spanProps && typeof props.spanProps.onClick === 'function')
|
|
11284
|
+
if (props.spanProps && typeof props.spanProps.onClick === 'function') props.spanProps.onClick(evt);
|
|
11189
11285
|
}
|
|
11190
11286
|
}), props.label));
|
|
11191
11287
|
};
|
|
@@ -11212,9 +11308,9 @@ function Table(props) {
|
|
|
11212
11308
|
document.body.classList.remove('document-grabbing');
|
|
11213
11309
|
|
|
11214
11310
|
if (typeof props.confirmSort === 'function' && typeof props.onSort === 'function' && evt.oldIndex !== evt.newIndex) {
|
|
11215
|
-
var _props$confirmSort
|
|
11311
|
+
var _props$confirmSort$th;
|
|
11216
11312
|
|
|
11217
|
-
|
|
11313
|
+
(_props$confirmSort$th = props.confirmSort(evt).then(function () {
|
|
11218
11314
|
if (typeof props.onSort === 'function') {
|
|
11219
11315
|
props.onSort({
|
|
11220
11316
|
oldIndex: evt.oldIndex - 1,
|
|
@@ -12919,7 +13015,632 @@ VideoModal.defaultProps = {
|
|
|
12919
13015
|
size: 'md'
|
|
12920
13016
|
};
|
|
12921
13017
|
|
|
12922
|
-
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';
|
|
12923
13644
|
|
|
12924
13645
|
function QRCode(props) {
|
|
12925
13646
|
var ref = createRef();
|
|
@@ -12939,7 +13660,7 @@ function QRCode(props) {
|
|
|
12939
13660
|
});
|
|
12940
13661
|
}, [props, ref]);
|
|
12941
13662
|
var className = useMemo(function () {
|
|
12942
|
-
return getMergedClassNames([rootClassName$
|
|
13663
|
+
return getMergedClassNames([rootClassName$37, props.button ? 'button' : '']);
|
|
12943
13664
|
}, [props.button]);
|
|
12944
13665
|
return React.createElement("div", {
|
|
12945
13666
|
className: className,
|
|
@@ -12990,276 +13711,6 @@ function useDropOpened(initialState) {
|
|
|
12990
13711
|
return [opened, toggleOpened];
|
|
12991
13712
|
}
|
|
12992
13713
|
|
|
12993
|
-
var rootClassName$2Z = 'comp-modal-manager';
|
|
12994
|
-
var maskRootClassName$1 = 'component-modal-mask';
|
|
12995
|
-
|
|
12996
|
-
var hackFocus$1 = function hackFocus() {
|
|
12997
|
-
var tmp = document.createElement('input');
|
|
12998
|
-
document.body.appendChild(tmp);
|
|
12999
|
-
tmp.focus();
|
|
13000
|
-
document.body.removeChild(tmp);
|
|
13001
|
-
};
|
|
13002
|
-
|
|
13003
|
-
function useModalManager() {
|
|
13004
|
-
var _useState = useState([]),
|
|
13005
|
-
arrayOfModal = _useState[0],
|
|
13006
|
-
setArrayOfModal = _useState[1];
|
|
13007
|
-
|
|
13008
|
-
var refModals = useRef(arrayOfModal);
|
|
13009
|
-
refModals.current = arrayOfModal;
|
|
13010
|
-
useEffect(function () {
|
|
13011
|
-
var escapeCall = function escapeCall(evt) {
|
|
13012
|
-
if (evt.key === 'Escape' && refModals.current.length) {
|
|
13013
|
-
var mprops = refModals.current[refModals.current.length - 1].props;
|
|
13014
|
-
|
|
13015
|
-
if (!(mprops !== null && mprops !== void 0 && mprops.preventEscExit)) {
|
|
13016
|
-
closeModalByKey(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
13017
|
-
|
|
13018
|
-
if (typeof (mprops === null || mprops === void 0 ? void 0 : mprops.onClose) === 'function') {
|
|
13019
|
-
mprops === null || mprops === void 0 ? void 0 : mprops.onClose(mprops === null || mprops === void 0 ? void 0 : mprops.modalKey);
|
|
13020
|
-
}
|
|
13021
|
-
}
|
|
13022
|
-
}
|
|
13023
|
-
};
|
|
13024
|
-
|
|
13025
|
-
document.addEventListener('keydown', escapeCall);
|
|
13026
|
-
return function () {
|
|
13027
|
-
document.removeEventListener('keydown', escapeCall);
|
|
13028
|
-
};
|
|
13029
|
-
}, []);
|
|
13030
|
-
|
|
13031
|
-
var closeModalByKey = function closeModalByKey(modalKey) {
|
|
13032
|
-
var arr = refModals.current.slice();
|
|
13033
|
-
arr = arr.filter(function (obj) {
|
|
13034
|
-
return String(obj.props.modalKey) !== String(modalKey);
|
|
13035
|
-
});
|
|
13036
|
-
setArrayOfModal(arr);
|
|
13037
|
-
};
|
|
13038
|
-
|
|
13039
|
-
var openModal = function openModal(component, modalProps) {
|
|
13040
|
-
var modalKey = modalProps.modalKey ? modalProps.modalKey : getUniqueKey();
|
|
13041
|
-
|
|
13042
|
-
if (typeof component === 'function') {
|
|
13043
|
-
var arr = refModals.current.slice();
|
|
13044
|
-
|
|
13045
|
-
var p = _extends({}, modalProps, {
|
|
13046
|
-
modalKey: modalKey,
|
|
13047
|
-
onClose: function onClose(modalKey) {
|
|
13048
|
-
closeModalByKey(modalKey);
|
|
13049
|
-
|
|
13050
|
-
if (typeof modalProps.onClose === 'function') {
|
|
13051
|
-
modalProps.onClose(modalKey);
|
|
13052
|
-
}
|
|
13053
|
-
}
|
|
13054
|
-
});
|
|
13055
|
-
|
|
13056
|
-
arr.push({
|
|
13057
|
-
component: component,
|
|
13058
|
-
props: p
|
|
13059
|
-
});
|
|
13060
|
-
setArrayOfModal(arr);
|
|
13061
|
-
hackFocus$1();
|
|
13062
|
-
return modalKey;
|
|
13063
|
-
}
|
|
13064
|
-
|
|
13065
|
-
return '';
|
|
13066
|
-
};
|
|
13067
|
-
|
|
13068
|
-
var closeModal = function closeModal(modalKey) {
|
|
13069
|
-
if (modalKey) {
|
|
13070
|
-
closeModalByKey(modalKey);
|
|
13071
|
-
} else if (refModals.current.length) {
|
|
13072
|
-
var _refModals$current, _refModals$current$pr;
|
|
13073
|
-
|
|
13074
|
-
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);
|
|
13075
|
-
}
|
|
13076
|
-
};
|
|
13077
|
-
|
|
13078
|
-
return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
13079
|
-
className: rootClassName$2Z + "-modals"
|
|
13080
|
-
}, arrayOfModal.map(function (obj) {
|
|
13081
|
-
var _obj$props, _obj$props2, _obj$props3;
|
|
13082
|
-
|
|
13083
|
-
var M = obj.component;
|
|
13084
|
-
return React.createElement(CSSTransition, {
|
|
13085
|
-
timeout: 300,
|
|
13086
|
-
classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$2Z + "-mask-mobile-on-xs" : rootClassName$2Z + "-mask",
|
|
13087
|
-
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
13088
|
-
unmountOnExit: true
|
|
13089
|
-
}, React.createElement(ModalMask, {
|
|
13090
|
-
mobileOnXS: Boolean((_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.mobileOnXS),
|
|
13091
|
-
onClick: function onClick(evt) {
|
|
13092
|
-
if (evt.target.classList.contains(maskRootClassName$1)) {
|
|
13093
|
-
var _obj$props4, _obj$props5;
|
|
13094
|
-
|
|
13095
|
-
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)) {
|
|
13096
|
-
var _obj$props6, _obj$props7;
|
|
13097
|
-
|
|
13098
|
-
(_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);
|
|
13099
|
-
}
|
|
13100
|
-
}
|
|
13101
|
-
}
|
|
13102
|
-
}, React.createElement(M, Object.assign({}, obj.props))));
|
|
13103
|
-
}))), openModal, closeModal];
|
|
13104
|
-
}
|
|
13105
|
-
|
|
13106
|
-
function useStorageState(storage, key, initialValue) {
|
|
13107
|
-
var _useState = useState(initialValue),
|
|
13108
|
-
value = _useState[0],
|
|
13109
|
-
setValue = _useState[1];
|
|
13110
|
-
|
|
13111
|
-
useEffect(function () {
|
|
13112
|
-
if (!initialValue && storage.getItem(key) && storage.getItem(key) !== 'undefined') {
|
|
13113
|
-
try {
|
|
13114
|
-
setValue(JSON.parse(storage.getItem(key)));
|
|
13115
|
-
} catch (e) {
|
|
13116
|
-
console.error(e);
|
|
13117
|
-
}
|
|
13118
|
-
}
|
|
13119
|
-
}, []);
|
|
13120
|
-
useEffect(function () {
|
|
13121
|
-
storage.setItem(key, JSON.stringify(value));
|
|
13122
|
-
}, [key, storage, value]);
|
|
13123
|
-
return [value, setValue];
|
|
13124
|
-
}
|
|
13125
|
-
|
|
13126
|
-
var rootClassName$2_ = 'comp-toast-manager';
|
|
13127
|
-
var count$1 = 0;
|
|
13128
|
-
function useToastManager(props) {
|
|
13129
|
-
var _useState = useState([]),
|
|
13130
|
-
arrayOfToast = _useState[0],
|
|
13131
|
-
setArrayOfToast = _useState[1];
|
|
13132
|
-
|
|
13133
|
-
var toastsRef = useRef(arrayOfToast);
|
|
13134
|
-
toastsRef.current = arrayOfToast;
|
|
13135
|
-
var verticalPosition = (props === null || props === void 0 ? void 0 : props.verticalPosition) || 'top';
|
|
13136
|
-
var horizontalPosition = (props === null || props === void 0 ? void 0 : props.horizontalPosition) || 'right';
|
|
13137
|
-
var max = (props === null || props === void 0 ? void 0 : props.max) || undefined;
|
|
13138
|
-
var reverse = (props === null || props === void 0 ? void 0 : props.reverse) || false;
|
|
13139
|
-
var animateSize = (props === null || props === void 0 ? void 0 : props.animateSize) || false;
|
|
13140
|
-
|
|
13141
|
-
var closeById = function closeById(id) {
|
|
13142
|
-
var arr = toastsRef.current.filter(function (a) {
|
|
13143
|
-
return a.id !== id;
|
|
13144
|
-
});
|
|
13145
|
-
setArrayOfToast(arr);
|
|
13146
|
-
};
|
|
13147
|
-
|
|
13148
|
-
var showToast = function showToast(toast) {
|
|
13149
|
-
var id = "toaster-" + count$1;
|
|
13150
|
-
var arr = toastsRef.current.slice();
|
|
13151
|
-
var obj = {};
|
|
13152
|
-
|
|
13153
|
-
if (toast.prevent && arr.some(function (t) {
|
|
13154
|
-
return t.label === toast.label;
|
|
13155
|
-
})) {
|
|
13156
|
-
return;
|
|
13157
|
-
}
|
|
13158
|
-
|
|
13159
|
-
obj = _extends({
|
|
13160
|
-
id: id
|
|
13161
|
-
}, toast);
|
|
13162
|
-
|
|
13163
|
-
if (!max || arr.length < max) {
|
|
13164
|
-
arr.push(obj);
|
|
13165
|
-
setArrayOfToast(arr);
|
|
13166
|
-
count$1++;
|
|
13167
|
-
}
|
|
13168
|
-
};
|
|
13169
|
-
|
|
13170
|
-
var clearToast = useCallback(function () {
|
|
13171
|
-
setArrayOfToast([]);
|
|
13172
|
-
}, []);
|
|
13173
|
-
var classNames = useMemo(function () {
|
|
13174
|
-
return getMergedClassNames([rootClassName$2_ + "-toasts", rootClassName$2_ + "-" + verticalPosition, rootClassName$2_ + "-" + horizontalPosition, reverse ? rootClassName$2_ + "-reverse" : '', animateSize ? rootClassName$2_ + "-animate-size" : '']);
|
|
13175
|
-
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
13176
|
-
useLayoutEffect(function () {
|
|
13177
|
-
var wrapper = document.querySelector("." + rootClassName$2_ + "-toasts");
|
|
13178
|
-
|
|
13179
|
-
if (wrapper && wrapper.childElementCount > 0) {
|
|
13180
|
-
var somaDasAlturas = 0;
|
|
13181
|
-
|
|
13182
|
-
if (verticalPosition === 'top' && !reverse) {
|
|
13183
|
-
somaDasAlturas = 12;
|
|
13184
|
-
|
|
13185
|
-
for (var i = 0; i < wrapper.children.length; i++) {
|
|
13186
|
-
var el = wrapper.children[i];
|
|
13187
|
-
|
|
13188
|
-
if (!el.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13189
|
-
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
13190
|
-
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
13191
|
-
}
|
|
13192
|
-
}
|
|
13193
|
-
} else if (verticalPosition === 'top') {
|
|
13194
|
-
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
13195
|
-
var _el = wrapper.children[_i];
|
|
13196
|
-
|
|
13197
|
-
if (!_el.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13198
|
-
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
13199
|
-
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
13200
|
-
}
|
|
13201
|
-
}
|
|
13202
|
-
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
13203
|
-
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
13204
|
-
var _el2 = wrapper.children[_i2];
|
|
13205
|
-
|
|
13206
|
-
if (!_el2.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13207
|
-
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
13208
|
-
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
13209
|
-
}
|
|
13210
|
-
}
|
|
13211
|
-
} else {
|
|
13212
|
-
somaDasAlturas = 12;
|
|
13213
|
-
|
|
13214
|
-
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
13215
|
-
var _el3 = wrapper.children[_i3];
|
|
13216
|
-
|
|
13217
|
-
if (!_el3.classList.contains(rootClassName$2_ + "-toast-exit")) {
|
|
13218
|
-
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
13219
|
-
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
13220
|
-
}
|
|
13221
|
-
}
|
|
13222
|
-
}
|
|
13223
|
-
}
|
|
13224
|
-
}, [arrayOfToast, reverse, verticalPosition]);
|
|
13225
|
-
return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
|
|
13226
|
-
className: classNames
|
|
13227
|
-
}, arrayOfToast.map(function (toast) {
|
|
13228
|
-
return React.createElement(CSSTransition, {
|
|
13229
|
-
timeout: 300,
|
|
13230
|
-
classNames: rootClassName$2_ + "-toast",
|
|
13231
|
-
key: toast.id,
|
|
13232
|
-
unmountOnExit: true
|
|
13233
|
-
}, React.createElement("div", {
|
|
13234
|
-
className: rootClassName$2_ + "-toastzin"
|
|
13235
|
-
}, React.createElement(Toast, {
|
|
13236
|
-
theme: toast.theme,
|
|
13237
|
-
label: toast.label,
|
|
13238
|
-
onClose: function onClose() {
|
|
13239
|
-
return closeById(toast.id);
|
|
13240
|
-
},
|
|
13241
|
-
timeout: toast.timeout,
|
|
13242
|
-
showStatusBar: toast.showStatusBar,
|
|
13243
|
-
showActionButton: toast.showActionButton,
|
|
13244
|
-
onActionButtonClick: toast.onActionButtonClick,
|
|
13245
|
-
actionButtonText: toast.actionButtonText,
|
|
13246
|
-
pauseOnFocusLoss: props === null || props === void 0 ? void 0 : props.pauseOnFocusLoss
|
|
13247
|
-
})));
|
|
13248
|
-
}))), showToast, clearToast];
|
|
13249
|
-
}
|
|
13250
|
-
useToastManager.defaultProps = {
|
|
13251
|
-
verticalPosition: 'top',
|
|
13252
|
-
horizontalPosition: 'right'
|
|
13253
|
-
};
|
|
13254
|
-
|
|
13255
|
-
function useValidatedState(validation, initialValue) {
|
|
13256
|
-
var _useState = useState(initialValue),
|
|
13257
|
-
value = _useState[0],
|
|
13258
|
-
setValue = _useState[1];
|
|
13259
|
-
|
|
13260
|
-
return [value, setValue, validation(value)];
|
|
13261
|
-
}
|
|
13262
|
-
|
|
13263
13714
|
var scheduler_production_min = createCommonjsModule(function (module, exports) {
|
|
13264
13715
|
var f,g,h,k,l;
|
|
13265
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,
|
|
@@ -39963,6 +40414,274 @@ function useHTMLShare() {
|
|
|
39963
40414
|
};
|
|
39964
40415
|
}
|
|
39965
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
|
+
|
|
39966
40685
|
function AlertModal(props) {
|
|
39967
40686
|
var _useState = useState(false),
|
|
39968
40687
|
loading = _useState[0],
|
|
@@ -40114,5 +40833,5 @@ var ModalSizes;
|
|
|
40114
40833
|
ModalSizes["ExtraLarge"] = "extra-large";
|
|
40115
40834
|
})(ModalSizes || (ModalSizes = {}));
|
|
40116
40835
|
|
|
40117
|
-
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 };
|
|
40118
40837
|
//# sourceMappingURL=index.modern.js.map
|